先来看一个TI官方例程代码片段
// *****************************************
// Inverter PWM configuration
// ****************************************
/* By default on soprano the PWM clock is divided by 2
* ClkCfgRegs.PERCLKDIVSEL.bit.EPWMCLKDIV=1
* Deadband needs to be 2.0us => 10ns*200=2us
*/
PWM_1ch_UpDwnCnt_CNF(1,INV_PWM_TICKS,200);
PWM_1ch_UpDwnCnt_CNF(2,INV_PWM_TICKS,200);
PWM_1ch_UpDwnCnt_CNF(3,INV_PWM_TICKS,200);
根据代码中注释可得:
Ftbclk = 200/2 = 100MHZ;
Ttbclk = 10ns;
死区时间 = Ttbclk *(EPwmxRegs.DBFED)