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:

Analysis of switch-mode power supply: inductor violations
Altron Arrow Editor's Choice Power Electronics / Power Management
Common switch-mode power supply (SMPS) design errors are discussed, and their appropriate rectification is specified, with details on complications that arise with the power stage design of DC-DC switching regulators.

Read more...
Compact PCB-mount SMPS
RS South Africa Power Electronics / Power Management
Traco Power’s 5W PCB-mount switch mode power supply (SMPS) offers high efficiency, and is well suited for a variety of applications in the automation, electronics, electrical and mechanical industries.

Read more...
AC-DC brick PSU
Conical Technologies Power Electronics / Power Management
These PSUs have a typical efficiency of up to 92%, and a power factor value of up to 0,99. They are available in 12, 24, 28, 48 and 54 V output versions.

Read more...
5 kW switching PSU range
Conical Technologies Power Electronics / Power Management
Mornsun has released a new switching power supply range, the LMF5000-25Bxx, which has a 5000 W capacity, and features universal AC input configurations.

Read more...
Reliable charging range
Current Automation Power Electronics / Power Management
Whether you’re powering essential electronics, keeping emergency equipment operational, or maintaining the performance of critical machinery, the need for dependable charging solutions cannot be overstated.

Read more...
Microchip expands its mSiC solutions
EBV Electrolink Power Electronics / Power Management
The highly integrated 3,3 kV XIFM plug-and-play digital gate driver is designed to work out-of-the-box with high-voltage SiC-based power modules to simplify and speed system integration.

Read more...
Dual-port USB-C power delivery solution
Altron Arrow Power Electronics / Power Management
Infineon’s CYPD7272-68LQXQ is the tray packing option of the company’s dual-port USB-C power delivery solution and features an integrated dual-port USB-C PD + DC-DC controller.

Read more...
Parallel redundancy power module
Conical Technologies Power Electronics / Power Management
The LIR40-40 is a wide input range DC-DC module, with a constant output of 48 V at a nominal output current of up to 40 A.

Read more...
Motor protection relay front-end
NewElec Pretoria Power Electronics / Power Management
Newelec’s Motor Protection Relay front-end software isn’t just another tool, it’s a game changer that puts control firmly in your hands.

Read more...
High-power three-phase supplies
Current Automation Power Electronics / Power Management
The units from Meanwell can either be supplied with a three-phase three-wire delta input of 196 to 305 V AC, or they can use a three-phase four-wire star connection of 340 to 530 V AC.

Read more...