Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed from November 25 through December 2. Thank you for your patience.

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-F2800157: Center-aligned PWM w/ ADC

Part Number: LAUNCHXL-F2800157
Other Parts Discussed in Thread: TMS320F2800157, C2000WARE

Hi,

I would like to enable center-aligned PWM across 3 PWM modules so I can trigger ADC conversions during the low period of the PWM signals. I see that the ePWM module has an up/down counter option so it should be theoretically possible. Does anyone know the steps for setting up what I've described above on TMS320F2800157 MCU?

Thanks.

  • Hello Anurag,

    Yes its possible to configure pwm output as center-aligned or edge aligned.

    For center-aligned output, I would suggest using up-down count mode of the module and set the CMPA/CMPB values such the the pulse is centered around the period as shown below.

    For triggering adc conversion I would suggest referring to the 14.10 Event-Trigger (ET) Submodule in the Technical reference manual. The ET submodule can be used to start adc conversion on specific events set by user code. For starters I would advice to begin with epwm examples available in C2000WARE.

    Thanks.