1. Field of the Invention
The present invention relates to power supply circuits, and more particularly to digital control systems and methods for switched mode power supply circuits.
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 is 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 loop compensation, and some digital circuit components like logic 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 control circuit uses the digital error signal to control a digital pulse width modulator, which provides control signals to the power switches having a duty cycle such that the output value of the power supply tracks the reference. 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.
Single stage (i.e., flash) ADC topologies are utilized in power supply control circuit 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.
Notwithstanding these advantages, a drawback with the windowed ADC topology is that the device can go into saturation due to transient load conditions that cause the window ranges to be exceeded. By way of example, a 4-bit windowed ADC has a least significant bit (LSB) resolution of roughly 5 mV. This means that an output voltage error of as low as ±40 mV pushes the ADC into saturation. The ADC would then continue to reflect the same error signal (i.e., maximum) even though the actual error could grow even larger, referred to as a “windup” condition of the digital control system. The reaction of the feedback loop in this windup condition can be difficult to predict, since without accurate information about the error size the digital control system no longer functions as a linear system. This behavior can be particularly harmful, since it can damage the load due to overcurrent and/or overvoltage, and can also damage the power supply itself.
Another disadvantage of the ADC is that it digitizes only the loop error. There is therefore no digital representation of the absolute output voltage (Vo). In order to monitor the power supply and the feedback loop it is very often necessary to add other supervisory circuits to provide functions such as under-voltage protection, Power-Good-Low monitor, Power-Good-High monitor, and over-voltage protection. Since the voltage thresholds monitored by those supervisory circuits are usually not within the range of the ADC circuit, additional analog comparators together with analog voltage thresholds would be necessary. This is not economical and is very often not very accurate.
It would therefore be advantageous to have an ADC circuit that provides a digital representation of a parameter that needs to be regulated (e.g., the absolute output voltage of a power supply), so that any additional monitoring and supervisory circuits could be implemented as full digital circuits. Furthermore, it would be advantageous to provide an ADC circuit having high resolution around the steady state operating point of the power supply, but that can also settle quickly to a new operating point.
The present invention provides a self-tracking analog-to-digital converter (ADC) for use in applications such as in a switched mode power supply. The self-tracking ADC overcomes the disadvantages of the prior art by providing a digital representation of a parameter under regulation (e.g., the absolute output voltage of a power supply), thereby enabling any additional monitoring and supervisory circuits to be implemented as full digital circuits.
In an embodiment of the invention, a self-tracking analog-to-digital converter includes a digital-to-analog converter (DAC) adapted to provide a variable reference voltage, a windowed flash analog-to-digital converter (ADC) adapted to provide an error signal ek corresponding to a difference between an input voltage Vi and the variable reference voltage, and digital circuitry adapted to generate suitable control signals for the DAC based on the error signal ek. More particularly, the digital circuitry includes a first digital circuit adapted to provide a first function value f(ek) in response to the error signal ek, the first function value f(ek) representing an amount of correction to be applied to the variable reference voltage. A second digital circuit is adapted to provide a counter that combines the first function value f(ek) with a previous counter state Nk to provide a next counter state Nk+1, the next counter state Nk+1 being applied as an input to the digital-to-analog converter. A third digital circuit is adapted to scale the previous counter state Nk by a factor M and combine the scaled counter state M·Nk with the error signal ek to provide a digital output value Dk representing the input voltage Vi.
In another embodiment of the invention, a switched mode 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. The digital controller includes the self-tracking analog-to-digital converter, a digital filter providing a digital control output based on a difference between a digital output of the self-tracking analog-to-digital converter and a reference value, and a digital pulse width modulator providing a control signal to the at least one power switch. The self-tracking analog to digital converter comprises a digital-to-analog converter (DAC) adapted to provide a variable reference voltage, a windowed flash analog-to-digital converter (ADC) adapted to provide an error signal ek corresponding to a difference between the output measurement and the variable reference voltage, a first digital circuit adapted to generate a first function value f(ek) in response to the error signal ek, the first function value f(ek) representing an amount of correction to be applied to the variable reference voltage, a second digital circuit adapted to provide a counter that combines the first function value f(ek) with a previous counter state Nk to provide a next counter state Nk+1, the next counter state Nk+1 being applied as an input to the DAC, and a third digital circuit adapted to scale the previous counter state Nk by a factor M and combine the scaled counter state M·Nk with the error signal ek to provide a digital output value Dk representing the output measurement.
A more complete understanding of the self-tracking ADC for use in 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 method for digitally controlling a switched mode power supply. More specifically, the invention provides an ADC circuit that produces a digital representation of a parameter that needs to be regulated (e.g., the absolute output voltage of a power supply), so that any additional monitoring and supervisory circuits could be implemented as full digital circuits. 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 analog-to-digital converter (ADC) 32, digital controller (G(z)) 34, and digital pulse width modulator (DPWM) 36. The ADC 32 further comprises a windowed flash ADC that receives as inputs the feedback signal (i.e., output voltage Vo) and a voltage reference (Ref) and produces a digital voltage error signal (VEdk) representing the difference between the inputs (Ref−Vo). In the embodiment of
The ADC 40 further includes a logic device 52 coupled to output terminals of comparators 46A, 46B, 46C and 48A, 48B, 48C. The logic device 52 receives the comparator outputs and provides a multi-bit (e.g., 4-bit) parallel output representing the digital voltage error VEdk. By way of example, an output voltage Vo that exceeds the reference voltage Ref by one and a half voltage increments would cause the outputs of comparators 46B, 46A, 48A, 48B, and 48C to go high, while the outputs of comparators 46C, 46D and 48D remain low. The logic device 52 would interpret this as logic level 9 (or binary 1001) and produce an associated voltage error signal VEdk. It should be understood that the voltage reference Ref is variable so as to shift the window of the ADC 40. If the output voltage Vo exceeds the highest voltage increment of the resistor ladder, the output terminal of comparator 46D provides a HIGH saturation signal. Similarly, if the output voltage Vo is lower than the lowest voltage increment of the resistor ladder, the output terminal of comparator 48D provides a LOW saturation signal.
In a conventional windowed flash ADC, the resistors 44A, 44B, 44C, 44D have equal values so as to define a plurality of n voltage references equally spaced above and below the reference voltage Ref. The n comparators 46A, 46B, 46C and 48A, 48B, 48C compare the actual output voltage Vo against the n voltage references and generate a corresponding “thermometer” code, such that comparators 0 to X have an output of one and comparators X+1 to n have an output of zero, with X depending on the voltage amplitude of the Vo signal.
It should be appreciated that the range that the windowed flash ADC 40 is able to convert into a digital signal is limited by the step size between each reference voltage and the number of comparators. In order to keep the circuit complexity to a reasonable level, an exemplary implementation may include sixteen comparators. The step size of the circuit should be kept low enough (e.g., 5 mV) by selecting appropriate values of the resistors to provide enough resolution in the feedback loop. The step size directly relates to the output voltage static regulation and also the noise added to the output voltage due to the quantization of the error signal. With sixteen comparators and a 5 mV step size, the overall window is only ±40 mV. In the event of a sudden and large current change on the output of the power supply 10 (e.g., due to load current changes), the dynamic voltage excursion can easily exceed 40 mV. In that case, the ADC 40 saturates and the voltage error signal VEdk is no longer linear, i.e., it is not proportional to the actual error. As discussed above, the output terminal of comparator 46D provides a HIGH saturation signal to reflect this saturation condition.
The embodiment of
While the ADC transfer function of
Returning now to
The IIR filter is illustrated in block diagram form and includes a first plurality of delay registers 72, 74, . . . , 76 (each labeled z−1), a first plurality of mathematical operators (multipliers) with coefficients 71, 73, . . . , 77 (labeled C0, C1, . . . , Cn), a second plurality of mathematical operators (adders) 92, 94, 96, a second plurality of delay registers 82, 84, . . . , 86 (each labeled z−1), and a third plurality of mathematical operators (multipliers) with coefficients 83, 87 (labeled B1, . . . , Bn). Each of the first delay registers 72, 74, 76 holds a previous sample of the voltage error VEdk, which is then weighted by a respective one of the coefficients 71, 73, 77. Likewise, each of the second delay registers 82, 84, 86 holds a previous sample of the output PWM′k, which is then weighted by a respective one of the coefficients 83, 87. The adders 92, 94, and 96 combine the weighted input and output samples. It should be appreciated that a greater number of delay registers and coefficients may be included in the IIR filter, and that a limited number is shown in
The error controller 62 receives a plurality of input signals reflecting error conditions of the ADC 40 and the digital filter. Specifically, the error controller 62 receives the HIGH and LOW saturation signals from the ADC 40 reflecting that the output voltage Vo is above and below the voltage window of the ADC, respectively. Each of the mathematical operators (adders) 92, 94, 96 provides an overflow signal to the error controller 62 reflecting an overflow condition (i.e., carry bit) of the mathematical operators. The digital filter further includes a range limiter 81 that clips the output PWM′k if upper or lower range limits are reached. In that situation, the range limiter 81 provides the error controller 62 with a corresponding limit signal.
The error controller 62 uses these input signals to alter the operation of the digital filter in order to improve the responsiveness of the digital filter to changing load conditions. The error controller 62 is coupled to each of the first plurality of delay registers 72, 74, 76 and second plurality of delay registers 82, 84, 86 to enable the resetting and/or presetting of the value stored therein. As used herein, “resetting” refers to the setting of the value to an initial value (e.g., zero), whereas “presetting” refers to the setting of the value to another predetermined number. Particularly, the error controller 62 can replace the previous samples of the voltage error VEdk and output PWM′k with predetermined values that change the behavior of the power supply. The digital controller further includes multiplexer 64 that enables selection between the PWM′k output signal and a predetermined output signal provided by the error controller 62. A select signal provided by the error controller 62 determines which signal passes through the multiplexer 64. When the ADC 40 goes into HIGH or LOW saturation, the error controller 62 sets the PWM′k signal to a specific predetermined value (or sequence of values that are dependent in part on the previous samples) by controlling the multiplexer 64. In order to recover smoothly from such a condition, the error controller can also alter the delayed input and output samples by reloading the first plurality of delay registers 72, 74, 76, and second plurality of delay registers 82, 84, 86. This will assure a controlled behavior of the feedback loop as the ADC 40 recovers from saturation.
By way of example, if the ADC 40 experiences a positive saturation, i.e., the LOW signal changing from a low state to a high state, the PWM′k sample can be reset to zero to help to reduce the error. By resetting the PWM′k sample to zero, the pulse width delivered to the high side power switch 12 of the power supply 10 goes to zero, effectively shutting off power to the resistive load 20 (see
In a further embodiment of the invention, the ADC is configured to provide a digital representation of the absolute output voltage (Vo). This digital representation of the output voltage Vo can then be further utilized by other power supply supervisory circuits to provide functions such as under-voltage protection, Power-Good-Low monitor, Power-Good-High monitor, and over-voltage protection. Hence, the entire control circuitry for the power supply can be implemented using digital circuitry, thereby eliminating the need for analog circuit components such as comparators.
The digital section 120 further includes a clamp 122, an integrator 124, an adder 125, and a function circuit 128 that combine to generate the new digital reference Nk that will be converted back into an analog voltage by DAC 114. The error signal ek is further used to generate together with the reference value Nk the absolute representation of the input voltage Vi. The coarse input voltage Vi representation is provided by Nk, and a fine difference value between the coarse DAC reference Nk and the real input voltage is provided by the value ek.
More particularly, the output ek of the flash windowed ADC 112 is applied to the function circuit 128. The function circuit 128 generates a value f(ek) that represents the correction to be applied to the variable reference voltage so that it tracks more closely the input voltage. The value f(ek) may be calculated as follows:
f(ek)=ROUND(ek/M)
The value f(ek) is applied to a counter formed by integrator 124, clamp 122, and adder 125. The adder 125 combines the value f(ek) to the previous counter state Nk and gets clamped by the clamp 122. The clamp 122 provides an output corresponding to the next counter state Nk+1. The clamp 122 serves to limit the count value and prevent the counter from rolling over. The next state Nk+1 of the counter is applied to the DAC 114 and gets sampled on the next clock cycle by the integrator 124.
The counter state Nk is used together with the ADC error signal ek to determine the digital representation of the absolute input voltage Vi. The counter state Nk is scaled with the resolution difference M by multiplier 126 and the result is added to the ADC error ek by adder 127. Finally, another clamp circuit 130 may be coupled to the output of adder 127 to avoid negative digital values or excessive high values. The output value Dk represents the digital representation of the absolute input voltage Vi.
It should be appreciated that the resolution of DAC 114 as compared to the mid-band resolution of the windowed flash ADC 112 is lower by a constant factor M. For example, ADC 112 could have a mid-band least significant bit (LSB) resolution of 5 mV. Hence, with a factor M=5 the LSB resolution of DAC 114 would thus be 25 mV. Accordingly, the DAC 114 will therefore generate a relatively coarse reference voltage close to the input voltage, and the ADC 112 will generate an error ek compared to this coarse reference voltage. The windowed flash ADC 112 has also a much higher resolution in the middle of its window; in contrast, the resolution decreases towards the edge of the window. This has an advantage that the window size for a given number of comparators is larger. A drawback is that the accuracy at the edge of the window decreases, but this is generally not a concern in most power supply applications. Also, it is advantageous to have a larger ADC window, since this will be help to correct the DAC reference voltage with larger step sizes so that the reference voltage can track faster signals.
Continuing the previous example, the DAC 114 could have a total of 8 bits (e.g., defining a range from 0 to 6.375V), the windowed flash ADC 112 could have a total of eighteen comparators with a mid-band resolution of 5 mV, and M could be equal to 5. The resolution of the combined circuit is therefore log2(5·28)=10.3 bit. It is advantageous (but not necessary) that the outer band resolution of the ADC 112 is equal to or a multiple of the DAC resolution, in this example therefore 25 mV, 50 mV, . . . , etc.
In the embodiment of
In a second embodiment, the output Dk is generated in a different manner to simplify the implementation. Particularly,
More particularly, the output value Dk is determined in accordance with the following expressions:
Dk=M·Nk+ek
Nk+1=Nk+f(ek)
The output value Dk also relates to one of the following expressions:
Dk=M·(Nk+1−f(ek))+ek
Dk=M·Nk+1+ek−M·f(ek)
By defining g(ek)=ek−M·f(ek) and using the definition of f(ek) stated above yields:
g(ek)=ek−M·ROUND(ek/M)
It will be appreciated that the function g(ek) can only take the values given by the following inequality:
−M/2<g(ek)<M/2
In the example above, g(ek) would therefore only be either −2, −1, 0, 1 or 2, which is much simpler to handle. Hence, a look up table may be used instead of arithmetic circuitry to generate the function g(ek).
In steady state conditions (i.e., input voltage Vi is essentially a constant DC voltage), it would be advantageous to have the DAC reference value also being constant. By way of example, a steady state input voltage Vi may be converted to ek=+3 with Nk. In the next cycle, the DAC 114 will be incremented by one and the result should theoretically be ek=−2 with Nk+1=Nk, and remain there since the error is small enough to not provoke a reference voltage change (i.e., f(ek)=0). But, because of small errors in the comparator thresholds of the flash windowed ADC 112 and the LSB size of the DAC 114, the conversion result could be ek=−3 with Nk+1=Nk−1. This result could again lower the output of the DAC 114 by 1 LSB. Due to the same uncertainty in the next cycle, the DAC 114 could again be incremented by 1. These successive limit cycle oscillations are particularly undesirable in regulation applications.
To avoid such limit cycle oscillations, the switchpoints causing the DAC 114 to increment and decrement in mid-band should not be symmetric. This will introduce a small hysteresis and will eliminate the limit cycle oscillation. No change in thresholds are necessary to accomplish this. For example, a different encoding of the g(ek) and f(ek) values as shown in
Lastly,
The DAC 114 and ADC 112 are further coupled to a tracker circuit 120 corresponding to the digital section 120 of
Having thus described a preferred embodiment of a self-tracking ADC for use in 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 is a continuation-in-part of co-pending application Ser. No. 11/349,853, filed Feb. 7, 2006, for ADC TRANSFER FUNCTION PROVIDING IMPROVED DYNAMIC REGULATION IN A SWITCHED MODE POWER SUPPLY, which was a continuation of application Ser. No. 10/779,475, filed Feb. 2, 2004, now issued as U.S. Pat. No. 7,023,190 on Apr. 4, 2006, which was in turn a continuation-in-part of application Ser. No. 10/361,667, filed Feb. 10, 2003, for DIGITAL CONTROL SYSTEM AND METHOD FOR SWITCHED MODE POWER SUPPLY.
Number | Date | Country | |
---|---|---|---|
Parent | 10779475 | Feb 2004 | US |
Child | 11349853 | Feb 2006 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11349853 | Feb 2006 | US |
Child | 11876756 | Oct 2007 | US |
Parent | 10361667 | Feb 2003 | US |
Child | 10779475 | Feb 2004 | US |