I am using a PIC16F15345 which has 4 10-bit PWM modules. In order to minimize electromagnetic interference I tried to use the PWM-modules on different frequencies working simultaneously, but it did not work.
According to the data sheet (page 328) "each module has an independent selection of clock source."
However, the Timer2 is shared by all 4 modules and the PWM period value is stored in the T2PR (PR2) register. As the Timer2 require FOSC/4 as the clock source for PWM I don't see how I can vary the PWM period, via T2PR register, individually per PWM module.
In my trials, the PWM period changes for all 4 modules each time T2PR changes.
Any ideas how to do it or is it not possible?