• Menu
  • Product
  • Email
  • PDF
  • Order now
  • Designing a Digital-controlled Power Supply

    • SSZTCC4 august   2015 UCD3138 , UCD3138064A , UCD3138A

       

  • CONTENTS
  • SEARCH
  • Designing a Digital-controlled Power Supply
  1.   1
  2.   2
    1.     3
    2.     Digital Control Fundamentals
    3.     A Design Example
    4.     Close the Loop
    5.     Additional Resources
  3. IMPORTANT NOTICE
search No matches found.
  • Full reading width
    • Full reading width
    • Comfortable reading width
    • Expanded reading width
  • Card for each section
  • Card with all content
Technical Article

Designing a Digital-controlled Power Supply

Bosheng Sun

The power-supply industry is currently transitioning from analog to digital control, especially in high-performance power-supply design. In fact, digital controllers now control most AC/DC power supplies used in servers.

Compared to their analog counterparts, digital controllers provide greater flexibility and performance. But those switching from analog control to a digital solution face new challenges where continuous signals are represented by a discrete format: 1 or 0. In this blog series, I’ll provide a practical guide to designing a digital-controlled power supply.

Digital Control Fundamentals

As shown in Figure 1, analog control uses discrete components such as resistors, capacitors and operational amplifiers to generate a control effort, u(t). This output commands a plant’s output, y(t), to match a reference, r(t), through a sensor, H(s).

GUID-F3E32529-282E-4EDC-BA4B-83397CC47E10-low.png Figure 1 Analog Controlled Feedback System

Figure 2 illustrates a typical digital-power control system, with the feedback signal, f(t), sampled and converted to a digital signal through an analog-to-digital converter (ADC). It is then compared with a reference to get a digital error signal. A digital compensator uses this error signal to generate a corresponding pulse-width modulation (PWM) signal to control the power stage. Compared to Figure 1, the control principle is the same but the implementation is different: one is continuous while the other is discrete.

GUID-4FD1E46C-2050-4961-9F18-9D56ACFE5771-low.png Figure 2 Digital Controlled Feedback System

A Design Example

Let’s design a simple boost converter using Texas Instruments’ UCD3138 controller.

The UCD3138 is a fully programmable digital power supply controller offering superior levels of integration and performance in a single chip solution. The flexible nature makes it suitable for a wide variety of power conversion applications, include power factor correction (PFC), LLC resonant converter, phase shifted full bridge, etc. In addition, multiple peripherals inside the device are specifically optimized to enhance the performance of AC/DC and isolated DC/DC applications and reduce component count.

Figure 3 is a block diagram of a UCD3138-controlled boost converter. The signal interface is straightforward: the converter output voltage is attenuated and connected to the control loop feedback input pin. It is then compared with an internal programmable reference to get an error. The error is then sent to an error ADC (EADC) and digitized. This digital error signal then goes through a proportional-integral-derivative (PID) digital compensator, and the output of the PID generates the corresponding PWM duty cycle. All the compensations are internal, no any external compensation circuit needed.

GUID-E460DCE8-B88B-46D4-AAA2-D189B631CFE8-low.png Figure 3 A UCD3138-Controlled Boost Converter Block Diagram

In addition, UCD3138 has built in analog comparators with programmable reference, it can be used to implement fast overvoltage protection (OVP). The analog comparator will be trigged if the sensed Vout signal is higher than a pre-defined threshold, all the PWM signals will shut down to protect the power supply. The input voltage can also be measured by ADC for input brownout protection.

Close the Loop

When talking about loop control, pole/zero are common terms for analog power engineers, but the digital control world usually uses PID. A traditional PID is combined with an extra ɑ in the UCD3138 to provide a two-pole two-zero digital compensator, as shown in Figure 4.

GUID-4F826519-AC06-45C5-9DDC-5CF9E9177687-low.png Figure 4 UCD3138 PID Structure

Equation (1) calculates the transfer function for this PID in the z domain:

GUID-2AD3B5D8-49BD-486A-8E24-D1AAEE3DBB3F-low.png

Both KP, KI, KD and ɑ are programmable and can be adjusted on the fly; this means that the control loop can be dynamically changed based on the operational condition to achieve best performance. Nonlinear PID control is also supported for fast transient response.

Just as in analog power-supply designs, the goal for control-loop designs is to find the right pole/zero such that the system has a desired loop bandwidth and enough stability margins. Here’s a typical sequence to design a UCD3138 control loop:

  1. Derive the small-signal model of the power stage.
  2. Choose the appropriate KP, KI, KD and ɑ such that the loop has the desired bandwidth and enough stability margins.
  3. Load KP, KI, KD and ɑ into the UCD3138 and turn on the power converter.
  4. Fine-tune KP, KI, KD and ɑ until the converter performance meets your desired specifications. For example, the Vout deviation during load transient should within a specific range.
  5. Use a frequency analyzer to measure the actual loop bandwidth and stability margins. If they do not meet your desired specifications, repeat step 4.

See the additional resources section for more information about how the UCD3138 PID controller works, and the design examples of how to tune the control loop with the help of a frequency analyzer.

In the case that you are familiar with the traditional analog compensator, as shown in Figure 5, and you want to keep the same compensation in your digital design, you can use Equations 2, 3, 4 and 5 to translate the poles/zeros in the time domain into KP, KI, KD and ɑ in the z domain.

GUID-E710C30E-D06F-4EF8-932F-2944832BB4C2-low.png Figure 5 Traditional Analog Compensator
GUID-6EF789AE-3433-4AAE-BFA8-68E25D973923-low.png

Now you have a UCD3138-controlled power converter ready to be tested. In part 2, I’ll talk about how to write firmware to make it work.

Additional Resources

  • Download the UCD3138 data sheet.
  • Read more about the UCD3138 control theory.
  • Read the TI application note, UCD3138 PFC Tuning
  • Download the Fusion Digital Power Studio GUI for Isolated Power Applications User's Guide.

IMPORTANT NOTICE AND DISCLAIMER

TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING REFERENCE DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS” AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS.

These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable standards, and any other safety, security, or other requirements. These resources are subject to change without notice. TI grants you permission to use these resources only for development of an application that uses the TI products described in the resource. Other reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims, damages, costs, losses, and liabilities arising out of your use of these resources.

TI’s products are provided subject to TI’s Terms of Sale (www.ti.com/legal/termsofsale.html) or other applicable terms available either on ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable warranties or warranty disclaimers for TI products.

Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 

Copyright © 2023, Texas Instruments Incorporated

Texas Instruments

© Copyright 1995-2025 Texas Instruments Incorporated. All rights reserved.
Submit documentation feedback | IMPORTANT NOTICE | Trademarks | Privacy policy | Cookie policy | Terms of use | Terms of sale