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.

TMS320F28075: ePWM configuration

Genius 16835 points
Part Number: TMS320F28075

Hello

 

I have a question for ePWM configuration of F2803x/6x and F2807x.

 

I want to dynamically change HRPCTL[HRPE] and HRCNFG[EDGMODE] to make a complicated PWM/PFM pattern.

Is there any problem to dynamically change these bits during PWM running?

 

Regards,

Oba

  • Obata-san,

    These configuration registers are typically not changed during run time. I believe you could change HRCNFG[EDGMODE] but must understand that during this change the PWM output may not be valid. It might be best to turn-off the PWM function completely when this change is being made. 

    I would strongly recommend against changing HRPE bits during runtime. If you want the output behavior to switch between hi-res period enabled and hi-res period disabled modes, I would suggest keeping HRPE enabled and writing a value of 0 in HRPRD registers when non-hi-res period mode is desired.

    - Hrishi