Inverter with C-Script-Based PWM Modulator

Overview

This demonstration shows an ideal MOSFET inverter that is controlled by a custom PWM scheme. The switching strategy creates a bipolar output voltage of \(V_{\mathrm{dc}}\) or \(-V_{\mathrm{dc}}\) and is implemented as a state machine using the C-Script block.

../../_images/schematic4.svg

Fig. 1 Inverter with C-Script-Based PWM Modulator

Model

Power circuit

An idealized full-bridge single-phase MOSFET inverter is modulated to create a \(400\,\mathrm{VDC}\) square wave from a \(400\,\mathrm{VDC}\) source. The square wave is then conditioned to represent a sinusoidal waveform of approximately \(230\,\mathrm{VAC}\) using an LCL filter.

Control

A dead time is added between switching transitions to ensure that short circuits across the DC bus do not occur. A minimum on-time requirement for each switch has also been included. Both of these parameters, along with the switching frequency, are masked parameters for the PWM subsystem. Since they are directly passed to the C-Script block as inputs, the values can be changed at the top level of the schematic for analyzing various effects.

../../_images/timing_blanking.svg

Fig. 2 Timing diagram of a single switching cycle with blanking time

The figure above shows the timing of a single switching cycle with blanking time \(t_{\mathrm{d}} = t_2-t_1 = t_4-t_3\) between switching transitions. The state machine concept is not only useful for pattern generation but can easily be adapted to respond to external rather than internal events for applications such as control system sequencing.

Simulation

Increase the dead time ratio and monitor the load voltage to observe the dead time effects of distortion and attenuation on the output waveform. Fig. 3 depicts the output voltage for a blanking time of \(1\,\mathbf{\mu s}\). The PWM modulation signal with blanking time can be observed in Fig. 4.

../../_images/simulation_result4.svg

Fig. 3 Filtered AC output voltage

../../_images/PWM_Modulation.svg

Fig. 4 PWM modulation signal with blanking time