We primarily use the EPWM peripheral for motor control, but occasionally we need a 4th phase output (for bipolar stepper motors). I have both the EPWM and N2HET PWMing at 40Khz (25us period), but on an oscilloscope, the frequencies are slightly off; I cannot even measure the difference, as both appear visually to be exactly 25us periods, but the oscilloscope will trigger on one and the other drifts, so the frequencies are a little different. I expect this is because of the different clock domains, but can I synchronize both start-of-PWM-cycles somehow (like using the sync-output on the EPWM)? I did not see anything like this in the TRM.
Thanks,
Jim