1. Field of the Invention
The present invention relates to switched mode power supplies, and more particularly to digital control signal processor architecture optimized for controlling a switched mode power supply.
2. Description of Related Art
Switched mode power supplies are known in the art to convert an available direct current (DC) or alternating current (AC) level voltage to another DC level voltage. A buck converter in one particular type of switched mode power supply that provides a regulated DC output voltage to a load by selectively storing energy in an output inductor coupled to the load by switching the flow of current into the output inductor. It includes two power switches that are typically provided by MOSFET transistors. A filter capacitor coupled in parallel with the load reduces ripple of the output current. A pulse width modulation (PWM) control circuit is used to control the gating of the power switches in an alternating manner to control the flow of current in the output inductor. The PWM control circuit uses signals communicated via a feedback loop reflecting the output voltage and/or current level to adjust the duty cycle applied to the power switches in response to changing load conditions.
Conventional PWM control circuits are constructed using analog circuit components, such as operational amplifiers, comparators and passive components like resistors and capacitors for the feedback loop compensation, as well as a few digital circuit component blocks like logical gates and flip-flops. But, it is desirable to use entirely digital circuitry instead of the analog circuit components since digital circuitry takes up less physical space, draws less power, and allows the implementation of programmability features or adaptive control techniques. A conventional digital control circuit includes an analog-to-digital converter (ADC) that converts an error signal representing the difference between a signal to be controlled (e.g., output voltage (Vo)) and a reference into a digital signal having n bits. The digital error signal is provided to a digital controller having a transfer function G(z) and shapes the open loop gain to guarantee stability of the power supply feedback loop with enough phase margin. The digital output of the controller is provided to a digital phase width modulator (DPWM) that converts the output into a proportional pulse width signal that is used to control the power switches of the power supply.
In order to keep the complexity of the PWM control circuit low, it is desirable to hold the number of bits of the digital signal to a small number. At the same time, however, the number of bits of the digital signal needs to be sufficiently high to provide resolution good enough to secure precise control of the output value. Moreover, the ADC needs to be very fast to respond to changing load conditions. Current microprocessors exhibit supply current slew rates of up to 20 A/μs, and future microprocessors are expected to reach slew rates greater than 350 A/μs, thereby demanding extremely fast response by the power supply. The bit size of the digital signal also affects the complexity of the digital circuitry that implements the transfer function G(z). To further reduce circuit complexity, mathematical calculations are preferably done using integer representation of the numbers and an internal scaling factor can be defined to improve the calculation precision.
Nevertheless, there is a continuing need to further reduce the complexity of the digital circuit while providing high calculation precision. Thus, it would be advantageous to provide a system and method for digitally controlling a switched mode power supply that overcomes these and other drawbacks of the prior art. More specifically, it would be advantageous to provide a digital signal processor architecture optimized for controlling a switched mode power supply.
The present invention provides a switched mode power supply having a digital control system. The power supply comprises at least one power switch adapted to convey power between input and output terminals of the power supply, and a digital controller adapted to control operation of the at least one power switch responsive to an output measurement of the power supply.
More particularly, the digital controller comprises an analog-to-digital converter providing a digital error signal representing a difference between the output measurement and a reference value, a digital filter providing a digital control output based on a sum of present and previous error signals and previous control outputs, the error signals comprising integers having a relatively low numerical range and said control outputs comprising integers having a relatively high numerical range, and a digital pulse width modulator providing a control signal to the power switch having a pulse width corresponding to the digital control output. The digital filter further comprises an asymmetric arithmetic unit adapted to combine the low range integers with the high range integers. The digital filter further comprises an infinite impulse response filter providing the following transfer function G(z):
wherein PWM(z) is the digital control output, VEd(z) is the error signal, C0 . . . C3 are input side coefficients, and B1 . . . B3 are output side coefficients. The infinite impulse response filter provides the following time discrete form transfer function:
wherein K1 and K2 are scaling factors selected such that the scaled PWM′k signal will be in the range from 0 to K2−1 and wherein PWM′k is the digital control output, VEdk is the error signal, and:
PWM′k=K2·PWMk
Ci′=K1·K2·Ci
Bi′=K1·Bi.
In an embodiment of the invention, the arithmetic unit further comprises a multiplier adapted to multiply two operands, wherein a first operand comprises a first bit size and a second operand comprises a second, substantially larger, bit size. A first multiplexer is coupled to the multiplier to provide the first operand such that the first operand is selected from a group including the error signal, one of the previous error signals, and one of a plurality of first coefficients. A second multiplexer is coupled to the multiplier to provide the second operand such that the second operand is selected from a group including the control output, one of the previous control outputs, and one of a plurality of second coefficients. An adder is adapted to add a product of the multiplier with a second value selected from a group including zero and a previous sum of the adder. A divider is adapted to divide a sum of the adder by the scaling factor K1.
In another embodiment of the invention, a method is provided for controlling a power supply having at least one power switch adapted to convey power between input and output terminals of the power supply. The method comprises the steps of receiving an output measurement of the power supply, sampling the output measurement to provide a digital error signal representing a difference between the output measurement and a reference value, filtering the digital error signal to provide a digital control output based on a sum of previous error signals and previous control outputs, the error signals comprising integers having a relatively low numerical range and said control outputs comprising integers having a relatively high numerical range, and providing a control signal to the at least one power switch, the control signal having a pulse width corresponding to the digital control output. The filtering step further comprises asymmetrically combining the low range integers with the high range integers. The filtering step further comprises filtering said digital error signal using an infinite impulse response filter having the transfer function G(z) described above.
A more complete understanding of the system and method for digitally controlling a switched mode power supply will be afforded to those skilled in the art, as well as a realization of additional advantages and objects thereof, by a consideration of the following detailed description of the preferred embodiment. Reference will be made to the appended sheets of drawings, which will first be described briefly.
The present invention provides a system and method for digitally controlling a switched mode power supply. More particularly, the invention provides a digital signal processor architecture optimized for controlling a switched mode power supply. In the detailed description that follows, like element numerals are used to describe like elements illustrated in one or more figures.
The digital control circuit 30 receives a feedback signal from the output portion of the power supply 10. As shown in
More particularly, the digital control circuit 30 includes comparator 32, analog-to-digital converter (ADC) 34, digital controller 36, and digital pulse width modulator (DPWM) 38. The comparator 32 receives as inputs the feedback signal (i.e., output voltage Vo) and a voltage reference (Ref) and provides an analog voltage error signal (Ref-Vo). The ADC 34 produces a digital representation of the voltage error signal (VEdk). The digital controller 36 has a transfer function G(z) that transforms the voltage error signal VEdk to a digital output provided to the DPWM 38, which converts the signal into a waveform having a proportional pulse width. As discussed above, the pulse-modulated waveform produced by the DPWM 38 is coupled to the gate terminals of the power switches 12,14 through respective drivers 22, 24.
Single stage (i.e., flash) ADC topologies are utilized in digital power supply applications since they have very low latency (i.e., overall delay between input and output for a particular sample). If a standard flash ADC device is used to quantize the full range of regulator output voltage with desired resolution (e.g., 5 mV), the device will necessarily require a large number of comparators that will dissipate an undesirable amount of power. Under normal operation, the output voltage Vo of the regulator remains within a small window, which means that the ADC need not have a high resolution over the entire range. Accordingly, a “windowed” ADC topology permits high resolution over a relatively small voltage range tracked by a reference voltage (Vref). Since the quantization window tracks the reference voltage Vref, the signal produced by the ADC will be the voltage error signal. Thus, the windowed ADC provides the dual functions of the ADC and error amplifier, resulting in a further reduction of components and associated power dissipation.
The digital filter structure shown in
The order and the filter coefficients of the transfer function G(z) are chosen such that the feedback loop closes with the desired bandwidth and phase margin.
Although the digital filter and associated transfer function G(z) reflect n delay stages on both the input and output stages, an exemplary 3rd order implementation of the digital filter in accordance with the present invention utilizes four numerator coefficients (C0, C1, C2, C3) and three denominator coefficients (B1, B2, B3), yielding the following modified transfer function G(z):
It should be appreciated that the invention is not limited to 3rd order systems. The modified transfer function G(z) can be expressed in time discrete form as follows:
PWMk=C0·VEdk+C1·VEdk-1+C2·VEdk-2+C3·VEdk-3+B1·PWMk-1+B2·PWMk-2+B3·PWMk-3
The value range of PWMk is from 0 to 1. In order to use integer calculations in the digital filter, a first scaling factor K1 for the overall filter and a second scaling factor K2 for the PWMk signal are defined. The scaled PWMk signal will therefore be in the range from 0 to K2−1. The time discrete form transfer function can hence be re-written as follows:
wherein
PWM′k=K2·PWMk
Ci′=K1·K2·Ci
Bi′=K1·Bi
It should be appreciated that alternative scaling schemes are possible, like partial scaling of the filter equation to improve overall calculation accuracy. From the foregoing time discrete form transfer function, it can be seen that the coefficients Ci′ tend to be much larger than the coefficients Bi′. An exemplary scaling factor K1 can be 23 and K2 can be as large as 212, giving a PWM range from 0 to 4,095. As will be further understood from the following discussion, this difference in magnitude can be used in optimizing a digital signal processor architecture that implements the digital filter.
In an embodiment of the invention, the transfer function can be calculated in a series of steps. This assures that the error voltage VEdk can be sampled as close as possible to the start of the new PWM cycle with the value PWM′k. The steps for calculating the transfer function are as follows:
PWM′k0=B′3·PWM′k-3+0 (1)
PWM′k1=B′2·PWM′k-2+PWM′k0 (2)
PWM′k2=B′1·PWM′k-1+PWM′k1 (3)
PWM′k3=C′3·VEdk-3+PWM′k2 (4)
PWM′k4=C′2·VEdk-2+PWM′k3 (5)
PWM′k5=C′1·VEdk-1+PWM′k4 (6)
PWM′k6=C′0·VEdk+PWM′k5 (7)
The exemplary voltage error signal VEdk is a four-bit digital value. The voltage error signal samples are multiplied with the Ci coefficients, which are relatively large (i.e., twelve-bit) due to the scaling with the relatively large factor K1. The previously calculated output signal samples PWM′k (also twelve-bit digital values) are multiplied with the relatively small Bi coefficients to produce eighteen-bit digital output values. Therefore, grouping the relatively small voltage error signals VEdk with the Bi coefficients, and the relatively large output signals PWM′k with the Ci coefficients can conserve device size. The multiplier 110 can therefore be an asymmetrical four-by-twelve bit design, which is much smaller than a conventional twelve-by-twelve bit multiplier, resulting in a substantial reduction of device size and associated power draw.
The digital signal processor architecture is used to calculate the transfer function as follows. In the first step, PWM′k0 is calculated. Multiplexer 116 passes coefficient B3 from register 125 to the multiplier 110, and multiplexer 130 passes PWM′k-3 from register 1423 to the multiplier 110. The multiplier 110 multiplies the two values and passes the product to one input of the adder 106. Multiplexer 108 passes zero to the other input of the adder 106, and the two values are added together. The sum (i.e., PWM′k0) is stored in register 104.
In the second step, PWM′k1 is calculated. Multiplexer 116 passes coefficient B2 from register 123 to the multiplier 110, and multiplexer 130 passes PWM′k-2 from register 1422 to the multiplier 110. The multiplier 110 multiplies the two values and passes the product to one input of the adder 106. Multiplexer 108 passes the contents of register 104 (i.e., PWM′k0) to the other input of the adder 106, and the two values are added together. The sum (i.e., PWM′k1) is stored in register 104.
In the third step, PWM′k2 is calculated. Multiplexer 116 passes coefficient B1 from register 121 to the multiplier 110, and multiplexer 130 passes PWM′k1 from register 142, to the multiplier 110. The multiplier 110 multiplies the two values and passes the product to one input of the adder 106. Multiplexer 108 passes the contents of register 104 (i.e., PWM′k1) to the other input of the adder 106, and the two values are added together. The sum (i.e., PWM′k2) is stored in register 104.
In the fourth step, PWM′k3 is calculated. Multiplexer 116 passes voltage error signal VEdk-3 from register 1184 to the multiplier 110, and multiplexer 130 passes coefficient C3 from register 138 to the multiplier 110. The multiplier 110 multiplies the two values and passes the product to one input of the adder 106. Multiplexer 108 passes the contents of register 104 (i.e., PWM′k2) to the other input of the adder 106, and the two values are added together. The sum (i.e., PWM′k3) is stored in register 104.
In the fifth step, PWM′k4 is calculated. Multiplexer 116 passes voltage error signal VEdk-2 from register 1183 to the multiplier 110, and multiplexer 130 passes coefficient C2 from register 136 to the multiplier 110. The multiplier 110 multiplies the two values and passes the product to one input of the adder 106. Multiplexer 108 passes the contents of register 104 (i.e., PWM′k3) to the other input of the adder 106, and the two values are added together. The sum (i.e., PWM′k4) is stored in register 104.
In the sixth step, PWM′k5 is calculated. Multiplexer 116 passes voltage error signal VEdk-1 from register 1182 to the multiplier 110, and multiplexer 130 passes coefficient C1 from register 134 to the multiplier 110. The multiplier 110 multiplies the two values and passes the product to one input of the adder 106. Multiplexer 108 passes the contents of register 104 (i.e., PWM′k4) to the other input of the adder 106, and the two values are added together. The sum (i.e., PWM′k5) is stored in register 104.
Lastly, in the seventh step, PWM′k6 is calculated. Multiplexer 116 passes voltage error signal VEdk from register 1181 to the multiplier 110, and multiplexer 130 passes coefficient C0 from register 132 to the multiplier 110. The multiplier 110 multiplies the two values and passes the product to one input of the adder 106. Multiplexer 108 passes the contents of register 104 (i.e., PWM′k5) to the other input of the adder 106, and the two values are added together. The sum (i.e., PWM′k6) is applied to the numerator of divider 112 and is dividing by scaling factor K1. The final result PWM′k is loaded in register 114 and also provided as an output to the digital pulse width modulator.
Having thus described a preferred embodiment of a system and method for digitally controlling a switched mode power supply, it should be apparent to those skilled in the art that certain advantages of the system have been achieved. It should also be appreciated that various modifications, adaptations, and alternative embodiments thereof may be made within the scope and spirit of the present invention. The invention is further defined by the following claims.
This application relates to copending application Ser. No. 10/361 667, for DIGITAL CONTROL SYSTEM AND METHOD FOR SWITCHED ODE POWER SUPPLY, filed concurrently herewith, the subject matter of which is incorporated by reference herein.
Number | Name | Date | Kind |
---|---|---|---|
5349523 | Inou et al. | Sep 1994 | A |
6194883 | Shimamori | Feb 2001 | B1 |
Number | Date | Country | |
---|---|---|---|
20040155637 A1 | Aug 2004 | US |