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.

CCS/TMS320F280041C: How to trigger the ADC from both EPWM channels A and B?

Part Number: TMS320F280041C

Tool/software: Code Composer Studio

Greetings! The instaSPIN datasheet suggest the ADC conversions to be started at the middle of the pulse. So here is the code which I think triggers the ADC conversions:

              EPWM_enableADCTrigger(EPWM1_BASE, EPWM_SOC_A);
              EPWM_enableADCTrigger(EPWM1_BASE, EPWM_SOC_B);



              EPWM_setADCTriggerSource(EPWM1_BASE, EPWM_SOC_A, EPWM_SOC_TBCTR_U_CMPA);
              EPWM_setADCTriggerEventPrescale(EPWM1_BASE, EPWM_SOC_A, 1);


    ADC_setupSOC(ADCA_BASE, ADC_SOC_NUMBER0, ADC_TRIGGER_EPWM1_SOCA,
                 ADC_CH_ADCIN0, 10);

My problem is the ADC_setupSOC. I can`t choose the trigger to be connected to both A and B channels. There is only A and only B. So this I think means my ADCs will work only if the A channel is active. Can you advice me what to do?

Thanks!