We are trying to have the ADC SOCs to be generated at half the PWM frequency. We configured the Event Generator to trigger every second event by setting SOCAPRD to 2.
In this scenario, we would like to synchronize the SOCs of multiple Piccolos. The problem is that the SYNCI pulse only resets the TBCNTR to TBPHS; the event counter doesn’t get reset. As a result, depending on when the SYNCI arrives, the SOCs between two Piccolos can be off by one PWM cycle.
Do you have any suggestions on how to address this? Is there a way to force the event counter to 0 when SYNCI arrives?
Thanks,
Stuart