Application Examples

This page lists application examples for PLECS, the RT Box and Embedded Code Generation. Before opening a model for the RT Box or for Embedded Code Generation in PLECS, please install the corresponding target support packages (RT Box, TI C2000). The .zip files contain models for both PLECS Blockset and Standalone.

The filters below will help you navigate through the collection of application examples.

Title Description Files PDF Video
STM32 Embedded Code Generation: Advanced PWM Generation on STM32 Microcontrollers

In this STM32 demo model you will learn how to generate frequency-variable and phase-shifted PWM signals on STM32 microcontrollers (MCUs) with the PLECS Coder and the STM32 Target Support Package (TSP).

Tags:
Choose from #Controls
Choose from #Basic-Topologies, #Power-Supplies

-
STM32 Embedded Code Generation: Interleaved Buck Converter

This STM32 code generation demo model features a multiphase buck converter with phase shedding and the high resolution PWM (HRTIM) peripheral. The demo model is pre-configured so the code generated from the model can be built directly on G474RE Nucleo-Boards.

Tags:
#Controls
#Power-Supplies

-
TI C2000 Embedded Code Generation: Boost Converter with Peak Current Control

This TI C2000 code generation demo model features features a boost converter circuit with peak current mode control implemented using the Peak Current Control (PCC) component of the TI C2000 Target Support Library. The component integrates several MCU peripherals including a high-resolution timer, comparator, and a digital-to-analog converter to achieve the desired PCC functionality.

Tags:
#Controls
#Power-Supplies

-
TI C2000 Embedded Code Generation: Current Source Inverter

This TI C2000 code generation demo model features a current source inverter (CSI) powering an inductive load. The power circuit is supplied by a DC source voltage of 400V and the switching frequency is 20kHz.

Tags: #Power-Supplies

-
TI C2000 Embedded Code Generation: Dual-core Control of an On-Board Charger

This TI C2000 code generation demo model highlights a 3.6 kW single-phase on-board charger (OBC) system with a cascaded AC/DC to DC/DC architecture. The AC/DC converter is a totem-pole power factor correction (PFC) that regulates the intermediate DC bus voltage and ensures low distortion on the AC current input. The DC/DC converter is a dual active bridge (DAB) that regulates the battery currents and voltages.

Dual-core microcontrollers (MCUs) are a logical choice for controlling two-stage power conversion topologies, offering a simplified control architecture and reduced parts count. The two processing cores operate independently, with one CPU core controlling the PFC stage and the second CPU core controlling the DAB. Data is exchanged between the two cores as needed, for example to ensure the DAB controller activates only once the PFC has stabilized the DC bus voltage.

Tags:
Choose from #Controls
Choose from #Power-Supplies, #Automotive

-
TI C2000 Embedded Code Generation: H-Bridge Converter

This TI C2000 code generation demo model features a current-controlled H-bridge circuit powering an inductive load. The power circuit is supplied by a DC source voltage of 24V and the switching frequency is 10kHz.

Tags: #Power-Supplies

-
TI C2000 Embedded Code Generation: Input-Series/Output-Parallel Dual Active Bridge

This TI C2000 code generation demo models shows the simulation of a DC/DC converter system based on an Input-Series/Output-Parallel (ISOP) Dual Active Bridge (DAB) structure. The converter is dedicated to energy storage applications and interfaces a DC-voltage network together with a battery-based energy storage system. The DAB delivers up to 15 kW from an 700 V DC input to a 120 V battery pack. The switching frequency is 15 kHz.

Tags:
#Controls
#Power-Supplies

-
TI C2000 Embedded Code Generation: LLC Resonant Converter

This TI C2000 code generation demo model features a half-bridge LLC resonant converter. The design is based on the TI LLC Resonant Half-Bridge Converter 300 W Evaluation Module, which has a 390 V input and a regulated 12 V output.

The model also incorporates time-scaling for HIL testing, where the RT Box and controller are both configured to model the system at a rate slower than real time. Time-scaling allows one to perform HIL testing on models with very high switching frequencies that would otherwise have a processor load of over 100%, at the cost of not running the model in true real time.

Tags: #Power-Supplies

-