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:

3-terminal filters for automotive applications
RS South Africa Power Electronics / Power Management
TDK has expanded its YFF series of 3-terminal filters for automotive applications to include higher voltages up to 35 V and higher capacitances up to 4,7 µF.

Read more...
Simple battery charger ICs for any chemistry
Altron Arrow Editor's Choice Power Electronics / Power Management
The LTC4162 is a highly integrated, high voltage multi-chemistry synchronous monolithic step-down battery charger and PowerPath manager with onboard telemetry functions and optional maximum power point tracking.

Read more...
Why your PoE budget could make or break your next installation
Power Electronics / Power Management
In South Africa’s often unpredictable networking environments, understanding and planning your PoE budget is essential for system reliability, customer satisfaction, and long-term scalability.

Read more...
Five-minute EV charging a reality
Power Electronics / Power Management
Successfully demonstrated in Beijing recently at the Shanghai auto show, BYD claimed to add 400 km of range in just five minutes of charging.

Read more...
The evolution of power management in electronics
TRX Electronics Power Electronics / Power Management
The Mibbo MPS Series metal-encased power supplies deliver solid, efficient power in a durable package that’s built to last.

Read more...
Power and precision in a compact package
Conical Technologies Power Electronics / Power Management
The Mibbo MPS Series metal-encased power supplies deliver solid, efficient power in a durable package that’s built to last.

Read more...
Robust PoE module
CST Electronics Power Electronics / Power Management
The Ag59800-LPB high power, IEEE 802.3bt compliant, PD module from Silvertel offers typical efficiency of 95% making it an ideal choice for higher power, space-constrained applications.

Read more...
Cutting-edge solutions for Africa’s clean energy future
Power Electronics / Power Management
As Africa pushes towards reliable, affordable, and sustainable energy, Sungrow is driving transformation with cutting-edge innovations that enhance grid stability, reduce energy costs, and expand access to clean power.

Read more...
Transformer protection is a critical safeguard for municipal power stability
Power Electronics / Power Management
Transformer protection is not just a technical requirement; it is a vital component in ensuring the resilience and operational integrity of South Africa’s municipal power infrastructure.

Read more...
Reliable power solution
Conical Technologies Power Electronics / Power Management
The Mibbo MLD-120W-xxVx is a robust DIN-rail mounted DC-DC converter with a 120 W output capacity specifically designed for industrial and automation applications.

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