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/TMS320F28377D: PWM sync question

Part Number: TMS320F28377D

Tool/software: Code Composer Studio

Hi community

Is it possible to sync PWM11 and PWM1 in a way that PWM11 leads the PWM1?

I want ePWM11 leads 1100 TBCTL counts from ePWM1. Because my main ISR is executed through ePWM11.CMPA . in this ISR, the power inverter switchings are decided and I want this decision to be applied to the inverter next time this ISR begins + 1100 TBCTL delay (i.e., ePWM11 PRD+ePWM11.CMPA. where CMPA is 1100 counts)

regards

  • You didn't mention the PWM mode and other configuration, but still, I will try to resolve your issue...

    I am talking about up doum mode (Generally we use this for inverters)
    Action Qualifier Mode --> Output Low when Time base going UP and output HI when Time base Goes down.
    Enable dead band delay for both rising and falling edge delay
    Rising edge delay with active high polarity
    Falling Edge delay with active low polarity
    The above setting for all PWM module ...
    Now The PWM you need to lead,
    1. Enable phase shift load
    2. Set Phase Shift for 1100 as you want (I don't know what is the PRD value)
    3. Set Count Mode after Sync.

    Do the above

    Good Luck
    Ashutosh Bhatt
  • Please try Ashutosh's answer and let us know.
  • Hello
    Thank you for your answer
    In this way, ePWM 1 will lead the ePWM 11. I want to know if there is a way to ePWM11 leads ePWM1
    Regards

  • This is generally not done as most users will use EPWM1 as the master but if you need to do it, I believe it is possible through application software, taking into account the values you need to update the EPWM1 counter manually to be ahead by the desired amount. This can be very tedious. Another way is having the same EXTSYNCIN source for the two EPWMs and using the two modules' PHSEN.