Current mode controllers represent a class of common control approaches for switched mode power supplies (SMPS). Most microcontrollers (MCUs) include the required peripherals that make them suitable for implementing this class of controllers. In this session we will present how current mode controllers can be realized on MCUs using analog comparators and PWM or timer peripherals. We will also examine how slope compensation – a common technique used to compensate the inherent instability of current mode controllers – can be implemented using the digital-to-analog converter (DAC) peripheral.
We will show how electronic design automation tools can model microcontroller peripherals with high fidelity and enable the simulation of current mode controllers as part of a larger power electronics system. Finally, we will use code generation tools to quickly realize current mode control on a real MCU and test it with a HIL system or a physical plant for rapid prototyping.