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.

TMS320F280039C: ePWMB inverted version of ePWMA

Part Number: TMS320F280039C

Hi Team.

Using Trip Zone ( TZ3 CBC) I am trying to make both ePWMA and ePWMB Low. However, I have set HRCNFG.bit.SELOUTB = 1, even though i am not using HRPWM capabilities.

During trip condition, ePWMA is set low but ePWMB output is high. Is this an expected behavior? If set ePWMxB to be inverted version of ePWMxA, the trip zone can't control PWMxB independently? 

Kindly let me know.

Thanks and regards,

Irene B

  • Hi Irene,

    Appologies for the delay. Please expect the response before EOW.

    Best,

    Uttam

  • Hi Irene,

    I have tested an example for the usecase. Yes, your outputs should change if you change HRCNFG.bit.SELOUTB registers on the run. The change in HRCNFG either in HR mode enable/disable case this will impact your PWMs as these registers are accessible. 

    In the Technical Reference Manual (20.17.2.17), it mentions ''This register is only accessible on EPWM modules with HRPWM capabilities''.

    Best Regards,

    Uttam

  • Hi Uttam,

    Thank you for testing the usecase. The ePWM module has HRPWM capabilities. And I am not setting HRCNFG.bit.SELOUTB = 1 on the run but during initialization itself.

    Just to reiterate my understanding:

    Irrespective of whether HR mode is enabled or disable, the HRCNFG.bit.SELOUTB bit will impact my PWM output.

    And even if I get a TRIP signal and I have set both PWMA and PWMB to be low during trip condition, it will be inversion of each other because  HRCNFG.bit.SELOUTB bit is set.

    Is this right?

  • Hi Irene,

    Irrespective of whether HR mode is enabled or disable, the HRCNFG.bit.SELOUTB bit will impact my PWM output. - Thats correct 

    And even if I get a TRIP signal and I have set both PWMA and PWMB to be low during trip condition, it will be inversion of each other because  HRCNFG.bit.SELOUTB bit is set. - Yes, thats correct

    Best,

    Uttam

  • Thank you Uttam!