Tool/software: Code Composer Studio
I set the pwm output from DPWM register. Then Dpwm0Regs.DPWMEV2.all set to PWM_OFS + PWM_DUTY and Dpwm0Regs.DPWMEV3.all set to PWM_OFS + PWM_DUTY + dt1. The dt1 is the deadtime. I set the DPWM duty form filter output. How to update the dt1? The register only need to set when initializing or need to update in pwm interrupt?
I update it in pwm interrupt . I have question:
The switch frequency is 100KHz. The PWM duty is only 2us. If I set dt1 to 4us, the DPWM0B will not output. if dt1 less then 1us, it output normal. why? The pwm period is 10us. The PWM_OFS is only 100ns. 2us+4us+100ns < 10us.
How to implement big dead time? I need to use the deadtime to decrease the DPWM0B duty.