I'd like to start ADC and its connected DMA as soon as the PWM clock is enabled (SysCtrlRegs.PCLKCR0.bit.TBCLKSYNC = 1;).
This does not work:
EPwm3Regs.ETSEL.bit.SOCASEL = ET_CTR_ZERO;
My work around is using the CMPA register and setting it to 1 because 0 does not work there either:
EPwm3Regs.CMPA.half.CMPA = 1; EPwm3Regs.ETSEL.bit.SOCASEL = ET_CTRU_CMPA;
PWM frequency is 100 MHz.
Did anybody come across a similar issue?
Best wishes,
Günter