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.
Tool/software:
Hi,
I am using ePWM1 for High Resolution and ePWM2 for standard resolution as ePWM2 does not support HR.
- when ePWM1 HRPCTL HRPE is clear (HR Period enable = 0, using HR COMPA or HR duty cycle), it seems that ePWM2 is sync with ePWM1.
- Because I need to change PWMs into a different mode of operation (HR variable frequency), I set ePWM1 HRPCTL.HRPE = 1, then ePWM2 is totally out of sync with ePWM1.
- How can we synchronized a HR and no-HR ePWM? They need to be same frequency. (frequency is variable)
See below for EPWM2 time Base configuration:
Thanks,
Arnaud
Hi Ahugron,
If you're trying to Synchronize ePWM2 to ePWM1 you'll need to enable TBCTL.PHEN on ePWM2. And configure ePWM2's SYNCIN to be ePWM1's syncout signal. Then configure ePWM2's TBPHS to some non zero value that you want to syncrhonizer ePWM2's TBCTR to.
Best,
Ryan Ma