Electronic Components Blog

Electronic Components

The Electronic Components Blog is the place for conversation and discussion about analog/mixed signal, discrete & power devices, processors, interface & logic, passives, and memory. Here, you'll find everything from application ideas, to news and industry trends, to hot topics and cutting edge innovations.

Previous in Blog: Silicon Nanowire Transistors Ready to Supplant FinFETs   Next in Blog: Mayors Call on Technology to Help America's Cities
Close
Close
Close
3 comments
Rate Comments: Nested

Designing A Digital-controlled Power Supply

Posted September 06, 2015 12:00 AM by Texas Instruments

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).

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.

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.

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.

Figure 4: UCD3138 PID structure

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

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.

Figure 5: Traditional analog compensator

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

Editor's note: This is a sponsored blog post by Texas Instruments PWR.

Reply

Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Oct 2009
Posts: 1460
Good Answers: 30
#1

Re: Designing A Digital-controlled Power Supply

09/08/2015 12:16 PM

The question really is: why? Why on earth should one need a 32-bit processor to provide a stabilised DC voltage, isolated or otherwise?

Reply Score 1 for Good Answer
Participant

Join Date: Sep 2015
Posts: 1
#2
In reply to #1

Re: Designing A Digital-controlled Power Supply

09/10/2015 2:33 PM

That is a very good question. It is true that for a low end power supply the analog control is enough. However, for high end power supply, where the performance requirement gets higher and higher, the traditional analog controllers are unable to achieve the requirements. With a digital controller, some advanced control algorithms can be implemented which can significantly improve the efficiency, THD, PF, transient response, etc. In addition, the digital controller can also do housekeeping and communication, which the analog controller cannot do, and these functions are common requirements in some applications such as server and telecom.

Reply
Guru

Join Date: Oct 2009
Posts: 1460
Good Answers: 30
#3
In reply to #2

Re: Designing A Digital-controlled Power Supply

09/10/2015 5:22 PM

I still don't buy it. What is a "high end power supply" with "higher and higher requirements"? Virtually all electronic equipment is designed to operate on a fixed input voltage and an input current which is fairly limited in range, so there is no need for "advanced control algorithms" when all you have to provide is a large capacitor. We are dangerously close to audiophile territory, where the pseuds pay 1000's for amplifiers because the inductors are insulated with Tibetan silk or whatever and eschew mains fuses because they upset the bass reproduction (I kid you not - I have really heard this).
I suppose you can just about justify the digital logic in building a laboratory variable voltage power supply, but even then it is still a bit of overkill. As for communications, that is surely the job of the circuit being powered rather than of the power supply itself.

Reply Score 1 for Good Answer
Reply to Blog Entry 3 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!

Previous in Blog: Silicon Nanowire Transistors Ready to Supplant FinFETs   Next in Blog: Mayors Call on Technology to Help America's Cities

Advertisement