1. Field if the Invention
This invention relates to battery chargers in general, and, in particular, to a compensation method for a dual voltage mode, constant current constant voltage (CC-CV), DC-DC step-down switching battery charger using negative feedback for regulation of charging current and voltage.
2. Description of the Related Art
Modern battery chargers are designed to accurately regulate both charging current and charging voltage. One class of chargers is referred to as constant-current, constant-voltage (CC-CV) chargers.
Lithium (Li+) battery chargers follow a predetermined charging profile to ensure safe operation for the user and optimal charging of the battery. This profile calls for constant current during the bulk charging phase, followed by constant voltage once the battery voltage reaches a preset level. Regulating both current and voltage requires two feedback control loops. In the design of a charger, some of the challenging tasks are (1) compensating these feedback loops, (2) smoothly transitioning between the current loop and the voltage loop, and (3) minimizing the size of compensation components for these loops.
One known solution, as described in U.S. Pat. No. 6,570,372 issued May 27, 2003, the entirety of which is incorporated herein by reference, uses an active compensation amplifier with associated feedback components for each of current and voltage. While this approach has the advantages of an active compensation amplifier, including ratiometric gain setting and small passive components, it requires two amplifiers and two sets of passive feedback components, with the resulting die size and cost penalties.
A second known solution, as described in U.S. Pat. No. 6,166,521 issued Dec. 26, 2000, the entirety of which is incorporated herein by reference, uses a transconductance amplifier for each of current and voltage error amplifiers, followed by a summation network and single passive compensation network. The component values in this passive network are too large to be integrated and must be external to the die. Another drawback of this approach is the variability in gain of the transconductance amplifiers with process and temperature variation.
Additional background may be found in U.S. Pat. Nos. 6,697,685; 6,570,372; 6,366,056; 6,166,521; 6,137,265; 6,100,667; 5,723,970; 5,710,506; and 5,670,863.
The invention provides an apparatus and method for a feedback-controlled constant-current, constant-voltage (CC-CV) battery charger. An automatic signal selector determines which of an amplified voltage error or amplified current error to connect to a following common active compensation amplifier. Advantages over known art include reduction in required die area, ability to integrate compensation components, and improved compensation amplifier performance.
In an embodiment of the invention described in greater detail below, a common compensation amplifier is used for both current and voltage feedback loops, each loop being used alternatively to control its output parameter (current or voltage). The frequency and phase response tailoring components in the compensation network are in a feedback configuration around the compensation amplifier, allowing much smaller component values and further reducing die area. Further, the amplitude and phase response of the compensation amplifier with such feedback are a function of component ratios rather than absolute values, yielding much more accurate and repeatable gain and phase characteristics. Both the current sensing and voltage sensing points in the circuit follow the output filter of the DC-DC converter, allowing use of the same compensation amplifier for both parameters. A signal selector automatically selects the appropriate one of the two error signals (voltage or current), and presents the selected error signal to the compensation amplifier.
As further described below, the disclosed topology provides a combination of desirable properties not available in the known art, including 1) lower component count, from the use of a single compensation amplifier and feedback network, resulting in smaller die area; 2) active compensation with ratiometric feedback, which reduces the impact of open-loop gain variation in the compensation or input error amplifiers; 3) voltage sense and current sense elements both within the overall system feedback loop, allowing amplitude and phase response of a single compensation network to be optimized for both current and voltage control; and 4) automatic signal selector which determines whether voltage control or current control is required, and automatically selects the appropiate errorsignal to be included in the feedback loop.
Further benefits and advantages will become apparent to those skilled in the art which the invention relates.
Through the drawings, like elements are referred to by like numerals.
As shown in
The charging profile for a typical Li+ battery is detailed in
The battery 328 to be charged requires a constant current (CC) during the first phase of charging (phase 202 in
Current flowing into the battery 328 is sensed by resistor 320 in the sensing stage 308. The current through resistor 320 is nearly equal to the current IBAT flowing into the battery, since resistor 322 and input 528 to amplifier 530 of input stage 502 both have very high impedance. The voltage drop across resistor 320 is therefore, by Ohm's law, essentially equal to IBAT times the resistance of resistor 320.
During the CC mode of operation 202, the current flowing through resistor 320 and hence into battery 328 is accurately controlled. A voltage VISET across resistor 320 occurs when the current is at its target value. The voltage across resistor 320 increases as current deviates above the desired value, and decreases as current deviates below the desired value. The current regulation set voltage at voltage source 330 is set to VISET and serves, as previously described, to subtract VISET from the voltage across resistor 320 applied as an input to the amplifier 530. The differential voltage at input 526 and input 528 of amplifier 530 is thus near zero when the current into the battery 328 is at its target value. Amplifier 530 then amplifies this error voltage so that relatively small deviations in current away from the target value develop fairly large voltage swings at the output 532 of amplifier 530.
Similarly, during CV mode 204, the voltage applied to the battery 328 at output 326 is controlled. As with the configurations of
The value of VVSET is chosen so that a voltage VVSET is present at input 546 of amplifier 534 when the desired target output voltage (208 in
Current and voltage error amplifiers 530 and 534 can be chosen to have gain of typically 10 to 20 dB, amplifying respectively the errors in battery current (during CC mode 202) or output voltage (during CV mode 204). The error voltage to be used at a given time, either from amplifier 530 or amplifier 534, depends on whether the CC or CV mode is called for, as determined by the battery voltage at output 326.
Output 532 of amplifier 530 and output 538 of amplifier 534 are provided as inputs to a signal selection circuit 540. This circuit may be configured and adapted to function like an ideal diode “OR” circuit, to pass to an output 542 the higher of the two voltages at its inputs 532, 538. During the CC mode 202, the battery voltage is below the desired target; hence the voltage at output 538 of amplifier 534 is near zero. The charge current is driven to its target level, causing the differential input of amplifier 530 to be near zero, and the output 532 of amplifier 530 to be at whatever voltage causes the desired target current in resistor 320. Signal selector circuitry 540 then passes this voltage from input 532 to output 542, as it is the higher of the two voltages. The voltage at 542 thus serves as an error voltage, representing the difference between the desired current and the actual current, and can swing over a wide range while remaining above the near-zero voltage at 538 from amplifier 534.
During the CC mode 202, the battery voltage continues to rise according to the battery charging characteristic curve (see 220 in
The smooth transition from CC mode 202 to CV mode 204 is thereby advantageously handled automatically and in a stable manner. Additionally, in the case where both voltage and current parameters are above their respective target values, operation of the circuit correctly drives both downward until one or the other reaches its set point. This behavior is important in the case, for example, where the load is a capacitor only, with no battery connected.
The error voltage 542 at the output of the signal selector circuitry 540, in either CC or CV mode, is further amplified and filtered in a compensation amplifier stage 504 which comprises an amplifier 554 and negative feedback elements 552 and 556 connected as shown. Elements 552 and 556 are resistive and/or reactive components which set the gain and phase response of amplifier 504. If elements 552 and 556 are resistive only, the frequency and phase response are essentially flat; if elements 552 and/or 556 include capacitance or inductance, a non-flat response is achieved. Providing a control loop with a non-flat response can insure closed-loop stability. The DC gain of the compensation amplifier stage 504 is advantageously set, in conjunction with the gain of the input stage 502, to cause a large error voltage to be generated with even a very small deviation from the desired target current (in CC mode 202) or target voltage (in CV mode 204). The amplitude and phase response of the compensation amplifier 504 is frequency dependent and compensates for the phase shift in the output filter 318, providing system stability and rapid but controlled response to transients away from target current or voltage.
The single, common compensation amplifier 504 as used in the illustrated embodiment of
An active compensation network can use reactive elements (for example, capacitors) with much smaller values (hence, physical size) than known passive topologies. This is because the input impedance of the amplifier 554 at input 558 is very high, allowing high-value resistors in the case where element 552 is a resistor. When element 556 is a capacitor, the amplitude response of the compensation amplifier 504 decreases with increasing frequency (low-pass filter), while phase shift increases with increasing frequency. This resistor-capacitor integrator network is commonly used for low-pass filtering and phase response tailoring in a control system such as the present disclosure.
The output of compensation amplifier 504 is connected as an input to the inverting input of the PWM (pulse-width-modulation) comparator 350. The non-inverting input of PWM comparator 350 is driven by a saw tooth ramp generator 310, with amplitude suitably chosen to be roughly equal to the voltage swing at output 560 of amplifier 554. The output of PWM comparator 350 is therefore a square wave which has a duty cycle directly related to the error voltage at output 560, and which ranges about from 0% to 100%. This square wave is buffered by driver 312, the output of which drives the gate of the power PMOS transistor 314, which has its source connected to the supply voltage 346. As the battery current or voltage deviates from its nominal target value, the duty cycle of current flow in transistor 314 varies from (or from nearly) 0% to 100%. When transistor 314 is conducting, it provides current through output filter 318 and resistor 320 to the output 326 (and hence to charge the battery 328). The amount of average current flowing into battery 328 is directly controlled by the conducting duty cycle of transistor 314. When transistor 314 is turned off (non-conducting), diode 316 provides a path for current to flow from ground to output filter 318.
The current pulses provided by transistor 314 are filtered by output filter 318, which is, in the example embodiment, a series inductor driving a capacitor to ground. This filter greatly reduces the ripple current flowing from output 326, reducing the ripple voltage impressed on the battery due to its internal impedance. The output of the output filter 318 is connected to the input of resistor 320.
Though not a requirement, the illustrated output filter 318 precedes the current sense resistor 320. The phase and frequency response of the output filter is therefore inside the current sense control loop. This filter, in conjunction with the filter formed by feedback networks 556, 552 around amplifier 554, thus provides a second-order loop response in the CC mode 202. Because the voltage sense point at input 546 is also after the output filter 318, a second-order response is achieved in CV mode 204, as well. Having the current sense and voltage sense elements both after the output filter is another advantage of the disclosed embodiment over known art. It allows optimization of the single compensation amplifier for both CC and CV modes of operation.
The differential voltage representing current, which goes to near-zero when the output current is at its target value, connects to input 526 and input 528, connected to MOS transistors 612 and 614, respectively, in a current input stage 602. Transistors 612, 614 are configured as a differential pair, with a current source 620 providing current to the common source node for transistors 612, 614. A current mirror comprising transistors 616, 618 causes the current in resistor 622 to equal that in transistor 612. The resulting voltage at output 532 is an amplified version of the difference between the voltages at inputs 526, 528, with a nominal gain of suitably 10 to 20 dB.
Similarly, the differential voltage representing output voltage, which goes to near-zero when the output voltage is at its target value, is connected to inputs 546 and 548, then to MOS transistors 628 and 626, respectively, in a voltage input stage 604. Transistors 628, 626 are configured as a differential pair, with a current source 634 providing current to the common source node for transistors 628, 626. A current mirror comprising transistors 630, 632 causes the current in resistor 636 to equal that in transistor 630. The resulting voltage at output 538 is an amplified version of the difference between the voltages at inputs 546, 548, with a nominal gain of suitably 10 to 20 dB.
Signal selector circuitry 606 comprises a differential pair of transistors 640 and 642, whose sources are connected together and provided with current by a current source 644, in a signal selector stage 606. Inputs 532 and 538 are applied to the gates of transistors 640, 642, respectively. Inputs 532, 538 are at a nominal voltage near mid-supply only when the differential inputs of the respective input stages 602 and 604 are near zero volts. Inputs 532, 538 will both be near this nominal voltage at the transition from CC to CV mode. At other times, one of 532 and 538 will be at a relatively very low voltage, while the other will seek that voltage required to keep the current in resistor 512 or voltage at output 516 near its target value (as appropriate depending on CC or CV mode). The lower of the two inputs 532 and 538 will cause the transistor connected to it to be turned off, and all the current of source 644 will flow through the other transistor. The non-cut-off transistor will act as a source follower, and present to the output 542 the selected higher of the two voltages from outputs 532, 538.
A reference generator stage 608 provides a stable reference voltage at output 544 for the non-inverting input of compensation amplifier 554 (see
This cancellation of temperature and process effects on the reference voltage (and hence output target current or voltage) is another benefit of the active compensation network used in the present disclosure.
The reference voltage at output 544 is input to the non-inverting input of amplifier 554. The voltage at output 542 of the signal selector represents the amplified error between either output current or voltage and their respective targets (depending on CC or CV mode). This error voltage is further amplified and filtered by compensation network 610 comprising amplifier 554 and its feedback components 656, 658, 660, 662, 664, 666. The output 560 of the compensation network, appropriately tailored in amplitude and phase response, is then input to the PWM comparator 350 as previously described.
The topology shown for elements 656, 658, 660, 662, 664, 666 forms a Type III filter, which allows tailoring of both the amplitude response and phase response. Amplitude response of the configuration shown is decreasing with frequency (low-pass filter characteristic); phase response has increasing phase lag with increasing frequency, with a range of constant phase (lead/lag canceling). This range of constant delay typically coincides with the unity-gain frequency of the closed loop. The ability to carefully tailor the phase response (by choice of the resistor and capacitor values) gives much more precise control of loop stability and transient response than simpler topologies. It is an advantage of the described embodiment to be able to share a single Type III loop filter between both the current control and voltage control loops. It is also advantageous to have the capacitor in this type III loop filter in a feedback loop around an active device (the active compensation network), because the capacitance required for a desired loop response is far smaller than that required by the passive compensation used in much of the known art.
The novel topology described above allows the integration of a constant current/constant voltage battery charger circuit in significantly less die area than known art. It retains the performance advantages of an active compensation amplifier (ratiometric gain setting, small passive components), without the disadvantage of needing two such amplifiers each with associated passive elements. The selection of which output parameter to control (current or voltage) is made automatically by a signal selector having an input error signal from each parameter to be controlled.
The topology with its advantages can be applied to other feedback systems wherein a plurality of output parameters must be controlled, one at a time. If each controlled parameter is constrained to equal or less than a target maximum value, and the rise in any parameter above its target level causes the fall of all other parameter levels, the signal selector and single compensation amplifier described herein can be used effectively. Alternative signal selection methods could be used for signals not meeting said constraint, while still allowing said single compensation amplifier to be used. Parameters other than electrical signals could also be controlled, e.g. temperature, position, and physical properties.
The disclosed embodiments described above provide, in one aspect, an electrical circuit having an output current source providing electrical current to a load and responsive to a control input; a current sensing element through which the output current from the output current source passes, the current sensing element producing a signal proportional to the output current; a current error amplifier amplifying the difference between the signal from the current sensor and a first reference level; a voltage sensing element connected to the output of the current source, the voltage sensing element producing a signal proportional to the output voltage; a voltage error amplifier amplifying the difference between the signal from the voltage sensor and a second reference level; a compensation amplifier comprising an amplifier with resistive or reactive elements in a feedback configuration; the output of the compensation amplifier having a driving connection to the control input of the output current source; a signal selector having a driven connection with the outputs of each of the current and voltage error amplifiers, the signal selector passing one or the other of the output signals from the error amplifiers to the compensation amplifier.
The disclosed embodiments described above provide, in another aspect, a battery charger system controlling, alternatively, either charger output current or output voltage, holding either to its unique reference value appropriate to the battery being charged, during an appropriate time interval; having an output current sensor having a driving connection with the battery to be charged, a second driving connection with the first input of a current error difference amplifier, and through which the charger output current flows; a current reference generator indicative of a desired or target current level, having a driving connection to the second input of a current error difference amplifier; the current error difference amplifier, having a driving connection with the first input of a signal selector, and providing a current error signal indicative of the difference between the output current and the current reference target value; an output voltage sensor, having a driven connection with the charger output, and a driving connection with the first input of a voltage error difference amplifier; a voltage reference generator indicative of a desired or target voltage level, having a driving connection to the second input of a voltage error difference amplifier; the voltage error difference amplifier, having a driving connection with the second input of a signal selector, and providing a voltage error signal indicative of the difference between the output voltage and the voltage reference target value; the signal selector, autonomously selecting either the current or voltage error signal, and having a driving connection with a single compensation amplifier; the compensation amplifier, having feedback to ratiometrically tailor amplitude and phase response, further amplifying and modifying the phase and frequency response of the selected measure of current or voltage error; a voltage controlled current source means having a driven connection with the compensation amplifier, and responsive to the amplified and modified measure of error, such that alternatively the charger output current or voltage is held at a desired value, and having a driving connection with the input of the current sensor; wherein the improvement comprises the signal selector means and the single compensation amplifier means.
The signal selector may be a diode “OR” circuit which passes the higher of two voltages applied to it, ignoring the lower voltage.
The signal selector may be a circuit comprising two transistors with common source node, the node also being connected to a current source providing a constant current to or from the node; with drains of both transistors connected to a supply voltage greater in magnitude than the highest voltage to be applied to either gate; and with signals to be selected each connected to one of the gates; such that the first transistor having the lower of the two inputs will be cutoff, and the second transistor will act as a source follower, passing the higher of the two voltages to the common source node which is the output of the selector.
The signal selector may be a circuit comprising two transistors with common emitter node, the node also being connected to a current source providing a constant current to or from the node; with collectors of both transistors connected to a supply voltage greater in magnitude than the highest voltage to be applied to either base; and with signals to be selected each connected to one of the bases; such that the first transistor having the lower of the two inputs will be cutoff, and the second transistor will act as an emitter follower, passing the higher of the two voltages to the common emitter node which is the output of the selector.
The output current sensor may be a resistor through which the output current flows, generating a voltage across the resistor proportional to the current through it.
The output current sensor may be a Hall effect device through which the output current flows, generating a voltage proportional to the current through it.
The compensation amplifier may be a high-gain differential input amplifier (of the type commonly referred to as operational amplifier) having reactive input and feedback elements which serve to precisely control amplitude and phase response versus frequency of the amplifying network.
The disclosed embodiments described above provide, in another aspect, a circuit comprising a current input stage, a substantially identical voltage input stage, a signal selector stage having as inputs the two outputs of the input stages, a reference generator stage, and a compensation network stage having as inputs the output of the signal selector and the output of the reference generator.
The current input stage may have a differential input voltage indicative of the current flowing from or to a node, and which voltage approaches zero as the current approaches a desired target value; the input stage comprising a first and second differentially-connected pair of transistors, with common source node connected to a current source, and with the differential input voltage being connected to the two gates; with the drain of the first transistor of the differential pair being connected to a supply voltage, and the drain of the second transistor of the pair being connected to the drain and gate of a third transistor and the gate of a fourth transistor; the source of both the third and fourth transistor being connected to the supply voltage; the drain of the fourth transistor being connected to the output node and a first terminal of a resistor; the second terminal of the resistor being connected to both the gate and drain of a fifth transistor with source connected to ground.
The voltage input stage may have a differential input voltage indicative of the voltage on the node, and which voltage approaches zero as the voltage approaches a desired target value; the input stage comprising a first and second differentially-connected pair of transistors, with common source node connected to a current source, and with the differential input voltage being connected to the two gates; with the drain of the first transistor of the differential pair being connected to a supply voltage, and the drain of the second transistor of the pair being connected to the drain and gate of a third transistor and the gate of a fourth transistor; the source of both the third and fourth transistor being connected to the supply voltage; the drain of the fourth transistor being connected to the output node and a first terminal of a resistor; the second terminal of the resistor being connected to both the gate and drain of a fifth transistor with source connected to ground.
The signal selector may include first and second transistors with common sources, the common sources also being connected to the output of the signal selector and a current source to ground; and having as input to the gate of the first transistor the output of the current input stage, and having as input to the gate of the second transistor the output of the voltage input stage; the drains of both first and second transistors being connected to the supply voltage.
The reference generator may include a first transistor with source connected to ground and with gate and drain connected together and to a first terminal of a resistor; the second terminal of the resistor being connected to the first terminal of a first current source and to the gate of a second transistor; the second terminal of the first current source being connected to the supply voltage; the drain of the second transistor being connected to the supply voltage; the source of the second transistor being connected to the reference generator output and to the first terminal of a second current source, with second terminal of the second current source being connected to ground.
The compensation network may include a differential amplifier with non-inverting input connected to the output of the reference generator; first resistor having first terminal connected to the output of the signal selector and to the first terminal of a second resistor; the second terminal of the first resistor being connected to the inverting input of the differential amplifier, the second terminal of a first capacitor, the first terminal of a second capacitor, and the first terminal of a third capacitor; the second terminal of the second capacitor being connected to the first terminal of the third resistor; the second terminal of the second resistor being connected to the first terminal of the first capacitor; the second terminal of the third capacitor being connected to the second terminal of third resistor and the output of differential amplifier which is also the output of the compensation network.
Those skilled in the art to which the invention relates will appreciate that yet other substitutions and modifications can be made to the described embodiments, without departing from the spirit and scope of the invention as described by the claims below.
This application claims priority under 35 U.S.C. 119 of U.S. Patent Application Ser. No. 60/524,193, filed Nov. 21, 2003, entitled “Area-Efficient Compensation Method for Voltage-Mode Switching Battery Chargers,” the entirety of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
60524193 | Nov 2003 | US |