Part Number: TMS320F28035
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE
Hello everyone,
I just wanted to start by thanking everyone for helping me in all my other e2e post. My senior design project is doing great because of you. So, thanks! Now to get back to this post. I am wanting to implement trapezoidal motor control for a BLDC motor. I am using the F28035 and Hall sensors, but my 6 PWM signals were not setup using three ePWM modules. Rather, the PWM was set up using ePWM1A-ePWM6A (We did not realize the ePWM were set up in pairs). I am curious as to how I would go about creating the ramp up and ramp down portions of the trapezoidal phase voltages. Based upon what i have researched, the phase that is currently having a ramp up/down on the trapezoidal shape is turned off. For example, if Phase A voltage is at a ramp up/down, then the Phase A high and low FETs would be turned off. My confusion is how a ramp can be created at these points in time for a particular phase if the phase is off. Based upon my thinking (which could definitely be wrong), I would have assumed that a ramp up is created by turning off the low FET for that phase but turn on the high FET using an increasing PWM duty cycle, and a ramp down would be created in the same manner but by decreasing the PWM in the high FET. Also, if I do have to use a changing PWM signal, how do I sync the PWM signals so that they occur at the appropriate times? I assumed that since the ePWM compare values load at zero or period (based on register configuration) that the different PWM duty cycles would occur consecutively at the end of each period if I changed the ePWM compare values consecutively in my code (without using any flag checks or delays). Is this correct to assume? Sorry for such a long post. I really appreciate all your help. Thanks again!
-Brandon