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.

AM263P4-Q1: ADC triggered by ePWM

Part Number: AM263P4-Q1
Other Parts Discussed in Thread: SYSCONFIG

Hi,

What are the ePWM registers are need to be used for ADC trigger by ePWM, along with ADC registers?

Based on my understanding I prepared flow chart. Please confirm whether it is correct or not?

ePWM event

    ↓

SOCA (ADC trigger)

    ↓

ADC conversion starts

    ↓

ADC conversion completes

    ↓

ADC interrupt occurs

    ↓

ISR read values.

 

Which registers are responsible for ADC conversion start to the Interrrupt occurrence. Can I use ePWM or ADC registers

 

Thank you!

 

Regards,

Rajkumar

  • Hello, First of all, I recommend to implement these kind of routines in SysConfig and then you see exact API for each function separately.  Both ePWM and ADC registers are needed here, but they serve different roles:

    ePWM registers (ETSEL, ETPS) → only generate the trigger event (SOCA)

    ADC registers (ADCSOCxCTL, ADCINTSEL, ADCINTFLG) → control everything from conversion start through interrupt generation

    The conversion-to-interrupt path is purely ADC registers. The ePWM only initiates the sequence.

    Best Regards,

    Masoud