SNOU216 February 2025
The default PWM switching frequency is 15kHz. This section describes how to change the PWM frequency and deadtime to further evaluate the GaN device.
Please be aware that with the increase in PWM frequency, control loop frequency might need to vary accordingly, this can be set through MACRO definition USER_M1_NUM_TICKS_PER_ISK_TICK (Line 811) the default value is 1, meaning control computation cycle is the same as PWM cycle.
Under sensorless FOC method with FAST as the speed estimator, the below combinations have been verified at TI lab.
| PWM Switching Frequency (kHz) | Control Loop Frequency (USER_M1_NUM_TICKS_PER_ISK_TICK value) | Deadtime (ns) |
|---|---|---|
| 40 | 40kHz (1) | 50 |
| 60 | 30kHz (2) | 50 |
| 80 | 40kHz (2) | 50 |
| 120 | 40kHz (3) | 50 |
The deadtime can be changed through MACRO MTR1_PWM_DBFED_CNT and MTR1_PWM_DBRED_CNT in “src_board/hal.h” (Line 1479 and Line 1482). The default value is 5, which is equivalent to 50ns by default. Without any changes on ePWM configuration, PWM timebase clock TBCLK = EPWMCLK = 100MHz, and the deadtime is calculated as: