Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
Hello,
I am trying to implement the direct torque control (DTC) algorithm on a PMSM and I am using BoostXL-DRV8301. I have looked at FOC examples of TI and as I understood, the interrupt is triggered at zero of Epwm1 and at its period ADCs are read. In DTC the switches are turned on and off completely at each sampling time. So the basic approach is to open and close the switches by setting or clearing each GPIO. So in order to incorporate the deadtime, I Clear all GPIOs and after some delay, I Set the GPIOs that I want, but the "fault" LED on the Boostxl-drv8301 turn on and then the program stops running, which I think is related to overcurrent protection.
So my questions:
1. Is it possible to use the same technique as the FOC and define GPIOs as PWMs? I tried doing that and for the CMPA value I gave PWM_period for switching on and "0" for switching off. In this case, I wasn't able to incorporate deadtime. Is there any way to do it?
Regards,
Ata