Buck Converter with Controller

Model Overview

This demo showcases how PLECS Spice enables seamless transition from ideal switch models to detailed SPICE-based semiconductor models in a Buck converter application. The aim of the model is to showcase how a PLECS model can be used to tune the control loop of a power converter using ideal switch models, and then easily switch to a more detailed SPICE-based semiconductor model for more accurate simulation of switching behavior. The overall schematic is depicted in Fig. 1.

../../_images/mainSchematic.svg

Fig. 1 Model schematic.

Note

This model contains model initialization commands that are accessible from:
PLECS Standalone: the menu Simulation > Simulation Parameters… > Initializations

Controller

The controller chosen for this converter is a cascaded closed-loop controller, comprising an outer voltage controller and an inner current control loop, as shown in the bottom part of Fig. 1. The voltage controller is implemented with a PI regulator built with the Continuous PID Controller from the PLECS component library. Additionally, a filter on the voltage reference has been included using the Transfer Function block. The inner current control is implemented using the Peak Current Controller block from the PLECS component library. Overall the control structure is similar to the one presented in the Buck Converter with Peak Current Control.

Power Stage

The power stage of the Buck converter features a configurable subsystem containing both power semiconductors. This allows to easily switch form the ideal switch modelling of PLECS to a more detailed SPICE-based semiconductor model.

PLECS Configuration

../../_images/PLECSschematic.svg

Fig. 2 PLECS configuration.

In Fig. 2, the PLECS configuration of the power stage is depicted. Here, both the MOSFET with Diode and Diode are modelled using ideal switches available in the PLECS library. It is worth highlighting that the switching signal, indicated by the green color, drives the MOSFET gate directly. The MOSFET turns on instantaneously whenever a non-zero signal is applied to its gate. Conversely, it turns off instantaneously when the gate signal is removed. The diode is also modelled as an ideal switch that turns on and off instantaneously based on the voltage across its terminals. This approach allows for fast simulation times, making it suitable for control design and system-level studies.

SPICE Configuration

../../_images/SPICEschematic.svg

Fig. 3 SPICE configuration.

The SPICE configuration of the power stage is illustrated in Fig. 3. Here, the ideal switch models of the MOSFET and diode are replaced with detailed SPICE netlists using the Netlist block provided by the PLECS component library. These netlists capture the technology-dependent non-ideal switching behavior of the semiconductors, including turn-on and turn-off transients and the impact of the parasitic capacitances and inductances. Additionally, parasitic inductances are included to model the printed circuit board physical layout effects. This would not be feasible using standard PLECS simulations.

Since netlists live only in the electrical domain, the control signal (shown in green) needs to be converted to a voltage signal that drives the MOSFET gate. For the sake of this demo model, the gate driver circuit, reported in Fig. 4, is minimal. It consists of a Rate Limiter to limit the maximum derivative of the control gate voltage, a Gain block to adapt to the desired voltage level and a Voltage Source (Controlled) to finally convert the control signal into a voltage. However, in practical applications it is also possible to use a netlist to model the gate driver in addition to the power semiconductors.

../../_images/gateDriverSchematic.svg

Fig. 4 Gate driver circuit.

By modeling the power semiconductors and the gate driver, the SPICE configuration offers a more accurate representation of the circuit level behavior of the converter, which is useful for detailed design and analysis of the power stage. This comes at the cost of increased simulation time compared to the PLECS configuration. For this example, SPICE models provided by Microchip are used, see [1].

Simulation

We recommend that this model is explored by following the steps below.

Begin with the “PLECS” configuration of the power stage (double-click on “Configurable Power Stage” block and select from drop-down list), simulate the model, and observe the waveforms (hold the traces in the scopes for better comparison later). Next, switch to the “SPICE” configuration of the power stage, simulate the model again, and compare the waveforms to those obtained with the “PLECS” configuration. In the following, the results obtained with PLECS are reported with a solid green trace, whereas the SPICE results are shown with a solid red trace.

Simulating the buck converter in both PLECS and SPICE configurations shows only a slight difference in the output voltage regulation, as depicted in Fig. 5. This stems form the additional steady-state series resistances and inductances introduced in the SPICE configuration.

../../_images/loadScope.svg

Fig. 5 Load behavior.

However, looking at MOSFET waveforms reveals more pronounced differences between the two configurations. The drain-source voltage, drain-source current, and gate-source voltage at the MOSFET turn on are reported in Fig. 6. It is immediately possible to notice the delay in MOSFET conduction due to the finite rise time of the gate voltage and the current build up due to the inductive load. Additionally, it is also possible to analyze the gate driver circuit behaviour, including, for example, the gate-source voltage drop due to the Miller effect.

../../_images/MosfetScope.svg

Fig. 6 MOSFET turn on behavior.

Eventually, in Fig. 7, the diode voltage and current are reported at diode turn off, which is the same time instant as the MOSFET turn on. The SPICE configuration allows to analyze the reverse recovery behavior of the diode, which is tightly related to the MOSFET current overshoot at turn on. This phenomenon is not captured when using ideal diode models in PLECS configuration.

../../_images/DiodeScope.svg

Fig. 7 Diode turn off behavior.

Conclusion

By selecting the appropriate configuration of the power stage, it is possible to easily and seamlessly switch between the PLECS and SPICE simulations. This allows to take advantage of the fast simulation times of PLECS ideal switch models for control design and system-level studies, and then switch to detailed SPICE-based semiconductor models for accurate analysis of switching behavior and circuit-level effects.

Bibliography

[1]

Microchip Silicon Carbide Products SPICE and PLECS Files. Click to access online: Microchip SiC SPICE models.