主权项 |
1. A method for generating PWM pulses for a multi-level inverter, wherein the method is applied to a device for generating the PWM pulses for the inverter, wherein the device comprises a DSP control unit and a detection control unit connected to the DSP control unit, and wherein the method comprises:
outputting PWM high frequency signals by three PWM peripheral units of the DSP control unit; sending the PWM high frequency signals to the detection control unit; detecting level signals outputted by a preset number of GPIO interfaces of the DSP control unit, by the detection control unit; determining, for each phase, two high frequency complementary switches of the inverter, according to state of the level signals; sending, for each phase, the PWM high frequency signal outputted by one of the PWM peripheral units to a first switch of the two switches; inversing, for each phase, the PWM high frequency signal outputted by the one of the PWM peripheral units; sending, for each phase, the inversed PWM high frequency signal to a second switch of the two switches; and maintaining, for each phase, state of other switches of the inverter except the two switches unchanged in a power frequency period, wherein the state of the other switches are determined according to a correspondence stored for each phase between the level signals outputted by the GPIO interfaces and the states of the switches. |