Atmel Start has a driver for PWM that allows you to control up to 4 PWM channels. The configuration lets you set the initial period and duty cycle for the PWM channels. I can now set the PWM duty cycle for all channels to the same value. But I want to control each channel independently.
The ASF4 API Reference manual has the pwm_set_parameters() function to change the pwm duty cycle and period during program operation. However, this function changes all PWM channels with the same value. It does not let you pass in a channel number to set a specific PWM channel. Atmel Start lets you set the initial values for each channel.
How do I change each PWM channel independently at run time?