Hello,
I'm trying to operate the C6747 EHRPWM peropheral as 4 independent PWM channels (2 channels on EPWM0, 2 channels on EPWM1).
Unfortunately, it did not work.
Looking at the EPWM0 registers I noticed that the counter of the PWM does not advance.
I verified that the SYSCLK2 is activated (PLLDIV2=0x8001). So the 150 MHz SYSCLK2 is supposed to be there.
I did call
Psc_ModuleClkCtrl(Psc_DevId_1, PSC_LPSC_eHRPWM, TRUE); /* PSC_LPSC_eHRPWM=17 */ to enable the PWM clock.
The TBCTL value is set to 0xA038, so it is supposed to run as up counter.
Is there any source code example how to use the EHRPWM peripheral?