SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
Depending on the hardware used, the dead time must be configured correctly in order to avoid shoot-through between high-side and low-side transistors within the inverter (see Figure 6-11). For more details about EPWM module and dead-time configuration, see the microcontroller technical reference manual.
Dead time depends on the transistor and gate driver circuit used, and is configured as shown in the following code example, based on system clock delay counts:
//! \bried Defines the PWM deadband falling edge delay count (system clocks)
//!
#define HAL_PWM_DBFED_CNT
//! \brief Defines the PWM deadband rising edge delay count (system clocks)
//!
#define HAL_PWM_DBRED_CNT
// setup the Dead-Band Rising Edge Delay Register (DBRED)
PWM_setDeadBandRisingEdgeDelay(obj->pwmHandle[cnt],HAL_PWM_DBRED_CNT);
// setup the Dead-Band Falling Edge Delay Register (DBFED)
PWM_setDeadBandFallingEdgeDelay(obj->pwmHandle[cnt],HAL_PWM_DBFED_CNT);
Trip zones and comparators used to protect the hardware against overcurrent or overvoltage conditions depend on the particular hardware used, and it is the responsibility of the end user to make use of all the available feature of the EPWM and ADC modules to protect the hardware. Also, alternative dead-time implementation scenarios can be accomplished with the flexibility of the EPWM module, however, the scope of this document is limited to the functionality of InstaSPIN software, and does not cover all the EPWM implementation scenarios.