No, the frequency is calculated at Compile-Time by the assembler.
As is ... you cannot change the frequency at Run-Time, and all channels run at the same frequency.
The number of channels are also fixed at Compile-Time.Also, what is the best way to disable unused PWM channels to free some processing time? Is it enough to set duty cycle to 0?
It takes the same amount of processing when the dutycycle is 0 as it does at any other value.
Bookmarks