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.

RM57L843: Separate control of ePWM signals.

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Hi,

I have a requirement to operate 3 PWM signals separately, for which I'm using ePWM module.

I have used halcogen to configure 3 ePWM's signals, but my understanding is we use etpwmInit() for all 3 ePWM's configuration but there are no API's to start and stop individual ePWM signal, only global start and stop is available via etpwmStartTBCLK() and etpwmStopTBCLK() functions. 

I want to know is there any way that I can start or stop ePWM signals separately, like if I want to stop ePWM1A and ePWM1B but while ePWM5B is still on.

Are there API's available to control individual ePWM signals.

Thanks,

Shantanu S.

  • Hello Shantanu,

    The ePWMx modules are synchronized signal TBCLKSYNC. When TBCLKSYNC = 1, the time-base clocks of all ePWMx modules are started aligned to the rising edge of the TBCLKSYNC signal. All enabled ePWM modules start to output PWM waveforms at the same time.

    You can stop a individual PWM waveform generation by writing 0 to Action-Qualifier register, and start the PWM waveform generation by programming Action-Qualifier register properly.