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.

LAUNCHXL-F28379D: ADC sync EPWM

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: TIDM-02014

Tool/software:

Hi,

I am trying to read low side shunt current of BLDC power stage.

ADC should SOC/EOC during EPWM3B is high, shown in the following figure.

When I trigger (TRIGSEL of ADC) according to EPWM3B, ADC does not stop, it reads non stop.

How can I stop ADC ISR during EPWM3B is low and run when it is high?

Regards,

Vedat

  • Hello,
    Just picking EPWM3 for the trigger (TRIGSEL) isn't sufficient — it only sets the timing for starting an ADC conversion. I recommend checking out one of the motor control examples, like TIDM-02014, in our motor control SDK to get started. You can see how to use an EPWM for ADC SoC, enter the ISR, perform the calculations, and write for the next PWM cycle.
    Best Regards,
    Masoud