Multiphase Buck Converter
Overview
This RT Box demo features an interleaved multiphase buck converter in closed loop. The following sections describe in detail the implementation of the power stage and controls using the PLECS Electrical and Control domains. This demo model has the following features:
The power circuit consists of a three-phase interleaved buck converter feeding a series of load.
The number of active phases is dynamically changed through phase-shedding, which increases converter efficiency at light load conditions.
The controller side samples the average inductor current of each phase synchronously, triggered by each phase PWM. This relationship is maintained also during phase-shedding where less phase PWMs are active. Also the current balancing control among all three phases is realized.
Note that this model is an adaptation from an existing STM32 Target Support Demo onto RT Boxes [1]. Therefore, the explanation of converter parameters and controller algorithms are not repeated in this document.
The focus of this document is to showcase the usage of the PWM triggered Analog In measurements, together with the Digital Output Override for dynamic phase-shedding when using the RT Box as a controller.
Requirements
To run this demo model, the following items are needed (available at www.plexim.com):
Two PLECS RT Boxes and one PLECS and PLECS Coder license
The RT Box Target Support Package, minimum version 3.1.1
Follow the step-by-step instructions on configuring PLECS and the RT Box in the Quick Start guide of the RT Box Target Support Package Documentation.
Two 37 pin Sub-D cables to connect the boxes front-to-front.
Note
Model
This demo is adapted from the Multiphase Buck Converter demo from the STM32 Target Support Demos. The Plant model for the RT Box is very similar; the Controller model is using the same control algorithm but utilizing the RT Box target blocks.
Plant
The power circuit is shown in Fig. 1. For description of circuit parameters please refer to the documentation of the STM32 Multiphase Buck Converter demo [1].
Each phase is modeled using a Buck Converter component from the Nanostep section of the PLECS library. The RT Box’s Nanostep solver simulates the converter with time steps in the single-digit nanoseconds range. The step size of the Nanostep solver is fixed based on the RT Box hardware. It is \(7.5\,\mathrm{ns}\) on RT Box 1 and CE; \(4\,\mathrm{ns}\) on RT Box 2, 3 and 4.
An Electrical Model Settings block is connected to the phase leg. Inside this block, the Target can be chosen as CPU or FlexArray.
CPU - available on all RT Boxes, also the default option for building onto an RT Box 1.
FlexArray - only available on RT Box 2, 3 and 4, therefore the default option for building onto an RT Box 2, 3 or 4.
Also, the discretization step size Ts_plant may be adjusted slightly between different simulation targets. Please see the model initialization commands of each demo for more details.
Fig. 1 Power circuit of the multiphase buck converter
The total load resistance can be changed based on the position of two Digital In signals (DI-28 and DI-29). The number of active phases is a function of the total load current. As the load resistance decreases, more phases become active.
Controller
The controller model is shown in Fig. 2. The subsystems named “ Voltage Controller”, “Current Controller”, “Phase Shedding”, and “Phase Calc” are the same as those in the corresponding STM32 Target Support Demo.
Fig. 2 Controller model of the multiphase buck converter
The controller part contains the following components from the RT Box Target Support Library:
a PWM Out block with ADC trigger output: On carrier minimum configured in its Advanced tab.
an Analog In block is configured with Trigger source: Use PWM trigger port.
a Digital Out Override block to dynamically control the phase-shedding.
a Digital Out block which outputs two digital signals on DO-28 and DO-29 to control the load resistance on the Plant side.
Simulation
This model can run both in offline mode on a computer or in real-time mode on the PLECS RT Box. For the real-time operation, two RT Boxes (referred to as “Plant” and “Controller”) need to be set up as demonstrated in Fig. 3. The figure shows an RT Box 1 in the setup, but it is for illustrative purpose only.
Fig. 3 Hardware configuration for the real-time operation of the demo model (example), RT box model is illustrative only
After building each subsystem inside the model onto the corresponding Box, the real-time simulation waveforms should look like in Fig. 4. In the default setup of the demo, both extra load resistor branches are turned on. This gives the minimum load resistance, therefore the highest load current. In this scenario all three buck converter branches are controlled to be active, balanced and interleaved with a 120-degree phase shift among them.
Fig. 4 Simulation results with all three phases active
Next under External Mode, one can change the Constant block controlling the load step inside the Controller Box from the default
[1 1]to[1 0]. This increases the load resistance, therefore decreases the load current. The real-time simulation waveforms should look like in Fig. 5. In this scenario only the first two buck converter branches are controlled to be active, balanced and interleaved with a 180-degree phase shift between them.Fig. 5 Simulation result with two active phases
Under External Mode, one can further change the aforementioned Constant block from
[1 0]to[0 0]. This gives the biggest load resistance, hence the smallest load current. The real-time simulation waveforms should look like in Fig. 6, where only the first phase is active.Fig. 6 Simulation result with only one active phase
Conclusions
This model demonstrated how to use the PWM triggered Analog In block for measuring interleaved multiphase currents on an RT Box, as well as the Digital Out Override block for dynamic phase shedding.
Bibliography
[1]
STM32 Interleaved Buck Converter Demo, URL: https://plexim.com/sites/default/files/demo_models/interleaved_buck_converter.pdf