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.

CCS/TMS320F28069: ePWM event issue

Part Number: TMS320F28069
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: Code Composer Studio

I am tring to generate ePWM3 pulse to trigger ADC sampling with the following config

    EPwm3Regs.ETSEL.bit.SOCAEN   = 1;        // Enable SOC on A group
    EPwm3Regs.ETSEL.bit.SOCASEL  = 4;        // Select SOC from CMPA on upcount
    EPwm3Regs.ETPS.bit.SOCAPRD   = 1;        // Generate pulse on 1st event
    EPwm3Regs.CMPA.half.CMPA     = 0x0080;   // Set compare A value
    EPwm3Regs.TBPRD              = 0xAFC8;   //TBCLK=SYSCLK/(HSPCLKDIV*CLKDIV)=45MHz this gives 1KHz pulse
    EPwm3Regs.TBCTL.bit.CTRMODE  = 0;        // count up and start

but ADC is not triggered, I also config GPIO04 to observed if ePWM3A, no pulse seen

    GpioCtrlRegs.GPAPUD.bit.GPIO4 = 0;   // Enable pullup on GPIO4
    GpioCtrlRegs.GPAMUX1.bit.GPIO4 = 1;    // 0=GPIO,  1=EPWM3A,  2=Resv,  3=Resv

I have checked the epwm3 clock is enabled.

Can anyone see what causes the problem?