Tool/software:
Hi,
I’m working on a TMS320F28379D-based project where I trigger ADC conversions using ePWM1 SOCA, and read ADC results in the epwm_isr_1() interrupt. The setup involves:
ePWM1 configured in up-down count mode with SOCA triggered on CTR = PRD/Zero
ADC-A configured with multiple SOCs (SOC0–SOC5), all triggered by ePWM1 SOCA
ADCINT1 enabled and mapped to EOC5 (INT1SEL = 5)
In epwm_isr_1(), I wait for ADCINT1 flag, clear it, and then read ADCRESULT4
Despite the interrupt executing correctly and ePWM frequency being correct, the ADC values appear stale or not updated in the ISR.
What is the recommended method to safely synchronize SOC and result reading in epwm_isr_1()?
Screen shots are attached for your reference.
Thanks and best Regards,
Sameer


