This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: Can I synchronize the beginning (count=0) of both the PWM-outputs and the N2HET-outputs?

Part Number: TMS570LC4357

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