Power Electronics / Power Management


Microcontrollers and switch-mode power supply control implementing the fully-digital control loop

3 September 2008 Power Electronics / Power Management

Power supplies, forming an integral part of almost every electronic system, are now a significant market in their own right, and one which is growing at a tremendous rate.

For many years, power supply designs have consisted of complex combinations of analog and power semiconductor components, with that complexity increasing more recently as the proportion of switched-mode power supplies (SMPS) grows, taking over from traditional linear designs. In fact, by current estimates, more than half of the revenue for power supply producers worldwide is now generated by the sale of switched-mode supplies.

Figure 1. Increasing levels of microcontroller integration in power supply designs
Figure 1. Increasing levels of microcontroller integration in power supply designs

A switched-mode supply can offer many advantages over a linear supply, such as dramatically increased efficiency, wider operating ranges, lower cost and smaller size, particularly for higher wattage applications. However, the many advantages of a switched-mode supply have now become the normal expectations of power supply performance, and designers are increasingly looking to digital control loop implementations to offer even greater efficiency and performance, as well as reducing component count, increasing manufacturability and reliability, and allowing the addition of advanced features.

What is a switched-mode power supply?

An SMPS can be used for both AC to DC conversion and also for DC to DC conversion applications such as uninterruptible power supplies (UPS).

The traditional, linear design for AC to DC converters uses a large (and heavy) transformer to step down the incoming AC. This lower voltage is then converted to DC, typically using diode rectification (with its inherent losses). The rectified voltage is then filtered using large filter capacitors and inductors as required.

A switching AC to DC supply converts the incoming AC to lightly-filtered DC and then ‘chops’ this DC voltage at high frequencies. The pulse width of the ‘chopped’ DC signal is controlled by feedback from the output, to regulate the overall output voltage of the supply. This control method is therefore known as pulse width modulation (PWM). The high frequency chopped signal is then applied to a smaller transformer to step down the voltage. The transformer can be much smaller due to the high frequency of the chopped DC signal. This low voltage, high frequency output of the transformer is then rectified. The rectification is sometimes achieved using synchronised FETs rather than diodes to minimise losses. In addition, because the ripple frequency is high, much smaller filter capacitors and inductors can be used.

Switched-mode power supply control methods

Within a switched-mode supply, the control loop that drives the PWM (the ‘chopper’) and the synchronous FETs is typically accomplished using analog techniques. It has long been possible to replace these analog techniques with some form of digital control, but until recently, the techniques and components have been too expensive for all but the most specialised applications.

As a result, most expert SMPS designers remain unfamiliar with digital control techniques, since they have been developing increasingly divergent and esoteric analog circuits to try and remain cost-effective while achieving a competitive edge in their own particular market.

Microcontrollers in power supply designs

Outside of the control loop functions, simple microcontrollers have already found their way into many SMPS designs to provide control, monitoring, deterministic functions and communication (usually based on I²C – such as the emerging PMBus standard for example).

At the simplest level, microcontrollers can provide many ‘on/off’ deterministic functions within the power supply system such as soft-starting, start-up sequencing, voltage monitoring and fault detection/recovery. Some SMPS designs use a microcontroller to supervise the control loop, by providing proportional control of an existing, dedicated power supply controller device.

Figure 2. Microcontrollers provide simple on/off control of discrete functions
Figure 2. Microcontrollers provide simple on/off control of discrete functions

More advanced microcontrollers, specifically targeted at the power supply market, can provide mixed-signal, on-chip resources to assist in minimising the overall component count and to take a more active role in controlling the topology of the SMPS control loop. However, in all of these instances, the control loop itself remains an analog function, since microcontrollers simply do not have the processing performance to effectively manage the loop digitally.

The advantages of a digital control loop

The implementation of a switched-mode power supply using a fully-digital control loop can, however, bring many advantages over analog-based designs.

The ability to rapidly support differing customer requirements (such as capacitive or inductive loads) can be provided by simple software customisation of the supply’s response characteristics. Software configurability can give the ability to support different supply topologies with a common hardware platform, or even modify the system topology on the fly, based on an input voltage such as a decreasing battery supply. Systems can also be supported with firmware upgrades in the field.

Using a common hardware platform with software customisation can also provide many manufacturing and sourcing advantages. Manufacturability of a digitally controlled design is also increased by the reduced overall component count, the ability to automatically compensate for component tolerances, the elimination of component tolerance in the loop filter, and the greatly simplified end of line testing that is possible. The reduced component count is also an advantage in small form-factor power supply designs.

Although not exclusive to fully-digital designs, the ability to rapidly process multiple control loops can make it easier to add other advanced features to a power supply design such as independent control of, and load-sharing between, multiple supply rails in a single design the integration of Power Factor Correction (PFC) and even adaptive, predictive control of the PWM frequency to mitigate any control loop/communication delays, optimise transient response and improve efficiency and performance.

Figure 3. A microcontroller provides proportional control of a separate power supply PWM IC
Figure 3. A microcontroller provides proportional control of a separate power supply PWM IC

Other advantages, only offered by full digital control, include the ability to have response characteristics that cannot be achieved with an analog control loop, and faster acquisition and response by ‘pre-loading’ the loop filter, and supporting non-linear loop responses. In addition, automatic system calibration and compensation for temperature, input voltage and load, synchronisation of the power conversion process to external events and hot-swap capability can all be readily provided if required.

The integrated processing capability required for a fully-digital design can also accommodate other microcontroller functionality previously mentioned such as voltage monitoring and under-/over-voltage lock-out, remote sensing, soft-starting, supply sequencing, fault-handling, fan control and failure detection, and serial communication – all without requiring an additional processor.

While the overall benefits of digital control are clear, the cost associated with implementing it has traditionally restricted it to only those applications that truly require the advanced control features that it can support.

Figure 4. A specialised microcontroller operating within the control loop topology
Figure 4. A specialised microcontroller operating within the control loop topology

Implementing cost-effective digital control

A new class of high-performance microcontroller with integrated signal processing capability – termed a digital signal controller (DSC) – is now providing the processing performance needed to implement a cost-effective, fully-digital control loop for most power supply applications.

Figure 5. A fully integrated digital control loop implementation using a digital signal controller
Figure 5. A fully integrated digital control loop implementation using a digital signal controller

A good example is Microchip’s dsPIC DSC – a 30 MIPS, 16-bit Flash-based microcontroller with extensive DSP capabilities that give the device the ability to, for example, process a simple proportional integral differential (PID) control loop with a control throughput of over 600 kHz. The standard dsPIC devices feature flexible clocking options, reset control and power-management features, and hardware peripherals (such as serial communications) that lend themselves to power supply applications. In addition, the devices are available in very small package options, including a 6 x 6 mm QFN package, and support extended temperature operation, up to 125°C.

In order to cost-effectively offer the highest performance possible, Microchip has further developed the dsPIC devices to offer highly optimised PWM, comparator and analog-to-digital converter modules specifically for power supply applications. When combined, these three modules can provide low latency, flexible, high-resolution control loops for both voltage and current feedback.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

The role of bidirectional charging in the evolving energy landscape
Avnet Silica Power Electronics / Power Management
As reliance on renewable sources like wind and solar continues to grow, the need for efficient energy flow and storage solutions has become more critical than ever.

Read more...
How to calculate a buck converter’s inductance
Power Electronics / Power Management
In the buck circuit, the inductor design is a key element that is closely related to system efficiency, the output voltage ripple, and loop stability.

Read more...
High-current EMI filters
Accutronics Power Electronics / Power Management
TDK has introduced 20 and 40 A, 80 V DC board-mount EMI filters, reducing differential mode conducted emissions for switching power supplies with high input current requirements.

Read more...
Isolated SMD DC-DC converters
iCorp Technologies Power Electronics / Power Management
MinMax has launched a series of isolated SMD DC-DC converters, the MSU01 series delivering 1 W, while the MSU02 series offers 2 W output.

Read more...
Next-gen power meter
Electrocomp Express Power Electronics / Power Management
The VT-PWR-LV is a next-gen Vista Touch power meter from Trumeter for single, split, and three-phase systems.

Read more...
Advanced PMIC for high-performance AI applications
ASIC Design Services Power Electronics / Power Management
Microchip Technology has announced the MCP16701, a Power Management Integrated Circuit (PMIC) designed to meet the needs of high-performance MPU and FPGA designers.

Read more...
New SiC power MOSFET
Future Electronics Power Electronics / Power Management
STMicroelectronics’ SCT012H90G3AG is a robust, automotive-grade SiC MOSFET, engineered for demanding power electronics, featuring a 900?V drain-source voltage and exceptionally low on-resistance of 12?mO at 60?A.

Read more...
Fundamental motor control design challenges and solutions
Power Electronics / Power Management
Mouser Electronics has announced a new eBook in collaboration with Qorvo, featuring industry experts providing key insights into methods, power efficiency and integration solutions available for motor control applications.

Read more...
Power management IC for battery products
Power Electronics / Power Management
The nPM1304 PMIC complements Nordic’s nPM1300 PMIC with a highly integrated, ultra-low power solution and precision fuel gauging for small size battery applications.

Read more...
Powering Innovation eBook: Changing what’s possible
Power Electronics / Power Management
This exclusive read, entitled ‘Changing what’s Possible,’ delves into how power dense Vicor modules enable many world-changing innovations across various sectors.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved