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/TMS320F28075: Dead band Module set up and Synchronization of ePWMs

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Am setting up the EPWM module to use the deadband module and I have a few questions to ask.

1) When the dead band polarity is set to either Active low complementary or active high complementary, does the Action qualifier actions need to be set for ePWMxA and ePWMxB or it should be set for ePWMxA only. I ask this question because, according to TMS320F28075 manual, the diagram named; Configuration options for dead band module and table 13-8. Classical Dead-band operating modes, both Outputs OUTA and OUTB are got from ePWMxA when using Active High Complementary.  A similar explanation can be used for Active Low Complementary. The question again, Should the Action qualifier actions be set for both ePWMxA and ePWMxB or it should only be set for one of the ePWM output e.g ePWMxA. The ePWM outputs are to be used to switch the switches of an inverter's H bridge. 

2) Synchronization of ePWM modules. According to the TMS320F28075 manual, my understanding of the synchronization is, the SYNCO of a module is the SYNCIN of the next module. A module can be configured to use this SYNCIN signal or ignore it. In the c200ware, this can be done using the functions EPWM_enablePhaseShiftLoad(), EPWM_setSyncOutPulseMode() and EPWM-setCountModeAfterSync(). In the SysCtrl functions in c200Ware, I see a function named SysCtl_setSyncInputConfig() that's used when setting up the synchronization of ePWM modules. Please explain where the function SysCtl_setSyncInputConfig() should be used. 

According to the code that am writing, the ePWMs will not be sychronized to any event on a GPIO. All I need is to have one master ePWM and the rest of the ePWMs to be slaves. 

  • Hi,


    1. Note that in Active high complimentary operation, both PWMA/B outputs are derived out of a single PWM input (from action qualifier) inside deadband module. You can choose either PWMA or PWMB.
    Refer to Figure 15-33. Configuration Options for the Dead-Band Submodule and the table 15-8. Classical Dead-Band Operating Modes.
    Active high complimentary operation is achieved by configuring switches S3, S2, S1, S0 as defined in the table.
    Input selection is independent of this and can be done by configuring switches S4, S5.
    Similar explanation is valid for Active Low complimentary as well.

    2. Please refer to Figure 15-7. Time-Base Counter Synchronization Scheme
    This diagram shows the Sync connections of all modules. SysCtl_setSyncInputConfig function is used to set the source of the Sync input.
    For synchronization with GPIO can be achieved along the same lines.
  • Thanks for the reply. Let's tackle the first question.
    I fully understand the diagrams and figures you are referencing, though looking through the functions provided in c2000ware used for setting up the dead-band submodule, I don't see functions or enumerations that can be used to configure the switches S3, S2, S1, S0. Please guide me on which functions in c200ware that I can use to configure these switches for either Active high complementary or Active low complementary.
  • I have succeeded insetting up the deadband submodule for Active high complementary though through the use of direct register manipulation.
  • You could use the EPWM_setRisingEdgeDeadBandDelayInput(), EPWM_setFallingEdgeDeadBandDelayInput() to set IN_MODE (s2/3) bits.
    You could use EPWM_setDeadBandDelayMode to set s0/1 OUT_MODE bits.
  • Hi, That's great! let me know if you run into any further issues. If not, please go ahead and close the thread.