Other Parts Discussed in Thread: C2000WARE
I have EPWM3 configured for up-count and triggering an ADC by SOCA on CMPB.
CMPB is configured for immediate load mode (EPwm3Regs.CMPCTL.bit.SHDWBMODE = CC_IMMEDIATE;)
Initially, I have SOCA disabled, so no conversions should be happening. CMPB is '0' at this point.
At the start of an EPWM period (TBCNT=0), in the ISR:
I set CMPB = somevalue, for example, 500
I enable SOCA
Because CMPB load mode is immediate, my expectation is that the SOCA/ADC trigger will happen later in the EPWM period at CMPB (TBCNT=500)
Instead, what I see is that the SOCA/ADC trigger happens immediately
Why does the SOCA/ADC trigger happen immediately?
Thanks!
