Quote Originally Posted by dran11 View Post
Is it possible to change SPWM frequency when code is running, like with SSPWM?
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.

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?
The number of channels are also fixed at Compile-Time.
It takes the same amount of processing when the dutycycle is 0 as it does at any other value.