Video and Webinar Series

How to Develop DC-DC Converter Control in Simulink

Learn how to model and simulate a DC-DC converter in Simulink® and Simscape Electrical™. Get a demonstration of SEPIC circuit topology and how to model and simulate a DC-DC converter that powers a strip of LEDs. MathWorks engineers show how to use Simulink and Simscape Electrical to develop, simulate, and implement a controller that maintains desired output voltage in the presence of input voltage variations and load changes to achieve a fast and stable response. See how to use control algorithms to generate embedded code optimized for implementing on a Texas Instruments™ C2000™ microcontroller. Also explore hardware-in-the-loop (HIL) testing of the microcontroller using a Speedgoat® real-time target machine.


  • Modeling and simulating passive circuit elements, power semiconductors, and varying power sources and loads
  • Simulating the converter in continuous and discontinuous conduction modes
  • Determining power losses and efficiency of the converter
  • Tuning the controller to meet rise time, overshoot, and settling time
  • Generating C code from the controller model for implementation on a Texas Instruments C2000 microcontroller
  • Using a Simscape Electrical model deployed to an FPGA implemented in a Speedgoat real-time target machine for HIL testing

Introduction and Demo Get a quick introduction to the topic of DC-DC converter controls, including a customer reference story and demonstration of the entire system working as desired.

Converter Modeling and Efficiency Considerations Learn how to model a DC-DC converter in Simscape and use simulation results to generate efficiency maps for the diode and the power switch.

Power Losses Investigation Learn how to use Simscape Electrical functions to generate maps of heat losses to embed in a dedicated model for fast simulations of thermal behavior and sizing of cooling systems.

Voltage Control Design Learn how to design and tune a digital PID controller for a DC-DC converter. Using System Identification Toolbox, engineers can simplify the tuning of any power electronics converter without needing to average converter equations.

Design SEPIC Controller for Robustness Learn how to design a digital controller for a SEPIC (single-ended primary-inductor converter) that satisfies design requirements while being robust to variations in passive component values.

Supervisory Logic Design and Testing Learn how to use Stateflow to design supervisory logic state machines that manage your converter desired operating mode.

Automatic Code Generation and Conclusions Learn how to automatically generate C code from your model and use the TI C2000 Hardware Support Package to build, compile and run the application on target hardware.

Related Resources