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: Is "Phase shifting B-channel" functional when High-resolution deadband is enabled?

Part Number: TMS320F280039C

Tool/software:

".... Phase shifting B-channel with respect to the A-channel: When PWMxB is derived from PWMxA using the DEDB_MODE bit and by delaying rising edge and falling edge by the phase shift amount. When the duty cycle value on PWMxA is less than this phase shift amount, PWMxA’s falling edge has precedence over the delayed rising edge for PWMxB. It is recommended to make sure the duty cycle value of the current waveform fed to the dead-band module is greater than the required phase shift amount."

Is "Phase shifting B-channel" functional when High-resolution deadband is enabled?

  • Hi,

    Our expert will be out of office until early January. Please expect a delayed response.

    Best Regards,

    Ben Collier

  • Hello,

    Thanks for your patience over the holiday. To clarify your question, are you trying to use high-resolution deadband to shift channel B with respect to channel A? Just want to make sure I am understanding the application. 

    Please also be sure to refer to the HRPWM section of the TRM if you haven' already - it also has descriptions of implementing HR deadband such as in section 20.15.1.6 Deadband High-Resolution Operation.

    Best Regards,

    Allison

  • Hi Allison,

    Yes, I tried to use high resolution deadband to shift channel B with respect to channel A, but I can't find such information if both high resolution FED and RED can be added to channel B.

  • Hi Echo,

    Thanks for clarifying. Yes, this should be possible. What issue are you seeing with your outputs? It would help if you provided some diagram of the settings/initializations you are applying to the EPWM if you are able.

    Some initial questions - which count mode are you using? Are you using up-down count mode? Is half-cycle clocking enabled? Also note that the DBRED and DBFED values must be greater than 3 to use high-resolution deadband.

    To debug this, I would suggest backtracking and slowly building your waveform. I would typically start by first disabling HR capability and any DeadBand and confirm you have the desired raw waveform. If you have already done so (or once you have done so), add the deadband submodule to obtain your desired nonHR output. Can you confirm that the below is what you are targeting and is what is reflected in the registers during runtime?

    Once you have this set, you need to apply HR deadband. What are your settings for the HRCFG2 register?

    And are you writing to the deadband DBRED/DBFED registers in a single 32-bit write?

    Best Regards,

    Allison

  • Hi Allison,

    Thanks for your help, it really helps.