Other Parts Discussed in Thread: CONTROLSUITE
Hello,
I've adapted the adc_soc example from the controlSUITE for my application. I want do ADC conversions on the "ton" and "toff" times of an input PWM which is in sync with my ePWMA/B. I can do ADC conversions on either one or the other by setting PWM_SocPulseSrc_CounterEqualCmpAIncr or PWM_SocPulseSrc_CounterEqualCmpADecr however I cannot find a setting where I can do both conversions on the same SOC0.
I've played around with the following ideas -
1. Declaring multiple interrupts (as I would like to distinguish ton and toff data anyway)
2. Using a single interrupt and declaring two SOCs.
3. Having a separate clock 2x my input frequency.
4. I even tried dynamically changing PWM_SocPulseSrc_CounterEqualCmpAIncr to PWM_SocPulseSrc_CounterEqualCmpADecr
I experienced challenges in implementing all ideas - couldnt get any working as I wanted. Can anyone point me the right direction to go ... or any examples doing something similar? Thanks!
JC.

