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.

TMS320F28075: Outputting ADCSOCA0 pulse on a GPIO

Part Number: TMS320F28075

Hi,

Your help would be highly appreciated. I am outputting ADCSOCA0 pulse on GPIO4 using below lines of code, which works perfectly fine as long as SOC is triggered on first event ( s_pEpwm7Regs->ETPS.bit.SOCAPRD = ET_1ST; // trigger on every 1st event )

s_pSyncSocRegs->ADCSOCOUTSELECT.bit.PWM7SOCAEN = 0x01;
OutputXbarRegs.OUTPUT3MUX0TO15CFG.bit.MUX13 = 1;
OutputXbarRegs.OUTPUT3MUXENABLE.bit.MUX13 = 1;

Pulse does not get generated correctly if soc is configured for 2nd or 3rd hit. any idea?