Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
SINGLE SUPPLY VOLTAGE TO FREQUENCY CONVERTER OPTIMIZED FOR LOW VOLTAGE SENSING ABOVE AND BELOW GROUND
Document Type and Number:
WIPO Patent Application WO/1999/019983
Kind Code:
A1
Abstract:
A voltage to frequency converter using a charge pump to restore the output voltage of the input integrator. The charge pump implementation allows the voltage to frequency converter's input to sense voltage above and below ground with a single supply using a charge pump, which can provide either a positive charge or a negative charge as the restoring force to the integrator. Inclusion of an interleaved charge pump provides advantages of implementation simplicity and of high performance. The voltage to frequency converter concentrates all offset and leakage errors at the input of the integrator amplifier, which in the preferred embodiment is a chopper stabilized amplifier providing very low offset. The voltage to frequency converter is intended for realization in integrated circuit form, providing very high performance in an integrated circuit having very low power requirements.

Inventors:
MADER URS H
Application Number:
PCT/US1998/020227
Publication Date:
April 22, 1999
Filing Date:
September 25, 1998
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
MAXIM INTEGRATED PRODUCTS (US)
International Classes:
G01R19/00; G01R31/36; G01R19/252; H03F1/30; H03F3/45; H03K7/06; (IPC1-7): H03K7/06
Foreign References:
US4786877A1988-11-22
US3989961A1976-11-02
GB2296399A1996-06-26
US5486788A1996-01-23
US4912423A1990-03-27
Attorney, Agent or Firm:
Blakely, Roger W. (Sokoloff Taylor & Zafman 7th floor 12400 Wilshire Boulevard Los Angeles, CA, US)
Download PDF:
Claims:
CLAIMS What is claimed:
1. A voltage to frequency converter comprising: an operational amplifier having positive and negative inputs and being coupled as an integrator, the input of the integrator being coupled as the input of the voltage to frequency converter, the operational amplifier being chopper stabilized to provide a chopper stabilized amplifier output proportional to the integral of the input thereto; a comparator circuit responsive to the output of the chopper stabilized amplifier to provide outputs responsive to the output of the chopper stabilized amplifier reaching first and second output voltage limits; and, a charge pump responsive to the outputs of the circuit to pump charge to and from the negative input of the operational amplifier.
2. The voltage to frequency converter of claim 1 coupled between a power supply terminal and a circuit ground terminal, wherein the operational amplifier has a differential input formed by gates of MOS transistors, the threshold of the MOS transistors being selected for operation of the operational amplifier on inputs thereto above and below the circuit ground.
3. The voltage to frequency converter of claim 1 wherein the charge pump comprises at least two interleaved charge pumps.
4. The voltage to frequency converter of claim 3 wherein each individual charge pump pumps an amount of charge to or from the negative input of the operational amplifier on each charge pump cycle to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
5. A voltage to frequency converter comprising: an operational amplifier coupled between a power supply terminal and a circuit ground and having positive and negative inputs, the operational amplifier being coupled as an integrator, the input of the integrator being coupled as the input of the voltage to frequency converter, the operational amplifier being chopper stabilized to provide a chopper stabilized amplifier output proportional to the integral of the input thereto, the operational amplifier having a differential input formed by gates of MOS transistors, the threshold of the MOS transistors being selected for operation of the operational amplifier on inputs thereto above and below the circuit ground; a comparator circuit responsive to the output of the chopper stabilized amplifier to provide converter outputs responsive to the output of the chopper stabilized amplifier reaching first and second output voltage limits; and, a charge pump responsive to the outputs of the circuit to pump charge to and from the negative input of the operational amplifier.
6. The voltage to frequency converter of claim 5 wherein the charge pump comprises at least two interleaved charge pumps.
7. The voltage to frequency converter of claim 6 wherein each individual charge pump pumps an amount of charge to or from the negative input of the operational amplifier on each charge pump cycle to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
8. A voltage to frequency converter comprising: an operational amplifier having positive and negative inputs and being coupled as an integrator, the input of the integrator being coupled as the input of the voltage to frequency converter; a comparator circuit responsive to the output of the amplifier to provide outputs responsive to the output of the amplifier reaching first and second output voltage limits; and, a charge pump having at least two individual interleaved charge pumps responsive to the outputs of the circuit to pump charge to and from the negative input of the operational amplifier.
9. The voltage to frequency converter of claim 8 wherein each individual charge pump pumps an amount of charge to or from the negative input of the operational amplifier on each charge pump cycle to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
10. A rechargeable battery monitor comprising: a resistor for coupling between a battery and a circuit ground; an operational amplifier having positive and negative inputs coupled across the resistor, the operational amplifier being coupled as an integrator, the operational amplifier being chopper stabilized to provide a chopper stabilized amplifier output proportional to the integral of the voltage across the resistor; a comparator circuit responsive to the output of the chopper stabilized amplifier to provide outputs monitor outputs responsive to the output of the chopper stabilized amplifier reaching first and second output voltage limits; and, a charge pump responsive to the outputs of the circuit to pump charge to and from the negative input of the operational amplifier.
11. The rechargeable battery monitor of claim 10 coupled between a power supply terminal and a circuit ground terminal, wherein the operational amplifier has a differential input formed by gates of MOS transistors, the threshold of the MOS transistors being selected for operation of the operational amplifier on inputs thereto above and below the circuit ground.
12. The rechargeable battery monitor of claim 10 wherein the charge pump comprises at least two interleaved charge pumps.
13. The rechargeable battery monitor of claim 12 wherein each individual charge pump pumps an amount of charge to or from the negative input of the operational amplifier on each charge pump cycle to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
14. A rechargeable battery monitor comprising: a resistor for coupling between a battery and a circuit ground; an operational amplifier coupled between a power supply terminal and a circuit ground and having positive and negative inputs coupled across the resistor, the operational amplifier being coupled as an integrator, the operational amplifier being chopper stabilized to provide a chopper stabilized amplifier output proportional to the integral of the voltage across the resistor, the operational amplifier having a differential input formed by gates of MOS transistors, the threshold of the MOS transistors being selected for operation of the operational amplifier on inputs thereto above and below the circuit ground; a comparator circuit responsive to the output of the chopper stabilized amplifier to provide rechargeable battery monitor outputs responsive to the output of the chopper stabilized amplifier reaching first and second output voltage limits; and, a charge pump responsive to the outputs of the circuit to pump charge to and from the negative input of the operational amplifier.
15. The rechargeable battery monitor of claim 14 wherein the charge pump comprises at least two interleaved charge pumps.
16. The rechargeable battery monitor of claim 15 wherein each individual charge pump cycle pumps an amount of charge to or from the negative input of the operational amplifier to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
17. A rechargeable battery monitor comprising: a resistor for coupling between a battery and a circuit ground; an operational amplifier having positive and negative inputs coupled across the resistor, the operational amplifier being coupled as an integrator to provide an amplifier output proportional to the integral of the voltage across the resistor; a comparator circuit responsive to the output of the amplifier to provide outputs responsive to the output of the amplifier reaching first and second output voltage limits; and, a charge pump having at least two individual interleaved charge pumps responsive to the outputs of the circuit to pump charge to and from the negative input of the operational amplifier.
18. The rechargeable battery monitor of claim 17 wherein each individual charge pump cycle pumps an amount of charge to or from the negative input of the operational amplifier to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits. AMENDED CLAIMS [received by the International Bureau on 23 March 1999 (23.03.99); original claims 1,45,710,1314 and 1618 amended; remaining claims unchanged (6 pages)] 1. A voltage to frequency converter comprising: an operational amplifier having positive and negative inputs and being coupled as an integrator, the input of the integrator being coupled as the input of the voltage to frequency converter, the operational amplifier being chopper stabilized to provide a chopper stabilized amplifier output proportional to the integral of the input thereto; a comparator circuit responsive to the output of the chopper stabilized amplifier to provide outputs responsive to the output of the chopper stabilized amplifier reaching first and second output voltage limits; and, a charge pump responsive to the outputs of the comparator circuit to pump charge to and from the negative input of the operational amplifier in an interleaving and bidirectional manner.
19. 2 The voltage to frequency converter of claim 1 coupled between a power supply terminal and a circuit ground terminal, wherein the operational amplifier has a differential input formed by gates of MOS transistors, the threshold of the MOS transistors being selected for operation of the operational amplifier on inputs thereto above and below the circuit ground.
20. 3 The voltage to frequency converter of claim 1 wherein the charge pump comprises at least two interleaved charge pumps.
21. 4 The voltage to frequency converter of claim 3 wherein each individual charge pump pumps an amount of charge in response to the outputs of the comparator circuits on each charge pump cycle to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
22. 5 A voltage to frequency converter comprising: an operational amplifier coupled between a power supply terminal and a circuit ground and having positive and negative inputs, the operational amplifier being coupled as an integrator, the input of the integrator being coupled as the input of the voltage to frequency converter, the operational amplifier being chopper stabilized to provide a chopper stabilized amplifier output proportional to the integral of the input thereto, the operational amplifier having a differential input formed by gates of MOS transistors, the threshold of the MOS transistors being selected for operation of the operational amplifier on inputs thereto above and below the circuit ground; a comparator circuit responsive to the output of the chopper stabilized amplifier to provide outputs responsive to the output of the chopper stabilized amplifier reaching first and second output voltage limits; and, a charge pump responsive to the outputs of the comparator circuit to pump charge to and from the negative input of the operational amplifier in an interleaving and bidirectional manner.
23. 6 The voltage to frequency converter of claim 5 wherein the charge pump comprises at least two interleaved charge pumps.
24. 7 The voltage to frequency converter of claim 6 wherein each individual charge pump pumps an amount of charge in response to the outputs of the comparator circuits on each charge pump cycle to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
25. 8 A voltage to frequency converter comprising: an operational amplifier having positive and negative inputs and being coupled as an integrator, the input of the integrator being coupled as the input of the voltage to frequency converter; a comparator circuit responsive to the output of the amplifier to provide outputs responsive to the output of the amplifier reaching first and second output voltage limits; and, a charge pump having at least two individual interleaved charge pumps responsive to the outputs of the comparator circuit to pump charge to and from the negative input of the operational amplifier in an interleaving and bidirectional manner.
26. 9 The voltage to frequency converter of claim 8 wherein each individual charge pump pumps an amount of charge in response to the outputs of the comparator circuits on each charge pump cycle to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
27. 10 A rechargeable battery monitor comprising: a resistor for coupling between a battery and a circuit ground; an operational amplifier having positive and negative inputs coupled across the resistor, the operational amplifier being coupled as an integrator, the operational amplifier being chopper stabilized to provide a chopper stabilized amplifier output proportional to the integral of the voltage across the resistor; a comparator circuit responsive to the output of the chopper stabilized amplifier to provide outputs responsive to the output of the chopper stabilized amplifier reaching first and second output voltage limits; and, a charge pump responsive to the outputs of the comparator circuit to pump charge to and from the negative input of the operational amplifier in an interleaving and bidirectional manner.
28. 11 The rechargeable battery monitor of claim 10 coupled between a power supply terminal and a circuit ground terminal, wherein the operational amplifier has a differential input formed by gates of MOS transistors, the threshold of the MOS transistors being selected for operation of the operational amplifier on inputs thereto above and below the circuit ground.
29. 12 The rechargeable battery monitor of claim 10 wherein the charge pump comprises at least two interleaved charge pumps.
30. 13 The rechargeable battery monitor of claim 12 wherein each individual charge pump pumps an amount of charge in response to the outputs of the comparator circuits on each charge pump cycle to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
31. 14 A rechargeable battery monitor comprising: a resistor for coupling between a battery and a circuit ground; an operational amplifier coupled between a power supply terminal and a circuit ground and having positive and negative inputs coupled across the resistor, the operational amplifier being coupled as an integrator, the operational amplifier being chopper stabilized to provide a chopper stabilized amplifier output proportional to the integral of the voltage across the resistor, the operational amplifier having a differential input formed by gates of MOS transistors, the threshold of the MOS transistors being selected for operation of the operational amplifier on inputs thereto above and below the circuit ground; a comparator circuit responsive to the output of the chopper stabilized amplifier to provide rechargeable battery monitor outputs responsive to the output of the chopper stabilized amplifier reaching first and second output voltage limits; and, a charge pump responsive to the outputs of the comparator circuit to pump charge to and from the negative input of the operational amplifier in an interleaving and bidirectional manner.
32. 15 The rechargeable battery monitor of claim 14 wherein the charge pump comprises at least two interleaved charge pumps.
33. 16 The rechargeable battery monitor of claim 15 wherein each individual charge pump cycle pumps an amount of charge in response to the outputs of the comparator circuits to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
34. 17 A rechargeable battery monitor comprising: a resistor for coupling between a battery and a circuit ground; an operational amplifier having positive and negative inputs coupled across the resistor, the operational amplifier being coupled as an integrator to provide an amplifier output proportional to the integral of the voltage across the resistor; a comparator circuit responsive to the output of the amplifier to provide outputs responsive to the output of the amplifier reaching first and second output voltage limits; and, a charge pump having at least two individual interleaved charge pumps responsive to the outputs of the comparator circuit to pump charge to and from the negative input of the operational amplifier in an interleaving and bidirectional manner.
35. 18 The rechargeable battery monitor of claim 17 wherein each individual charge pump cycle pumps an amount of charge in response to the outputs of the comparator circuits to change the output of the operational amplifier by a voltage of approximately two thirds the voltage between the first and second output voltage limits.
Description:
SINGLE SUPPLY VOLTAGE TO FREOUENCY CONVERTER OPTIMIZED FOR LOW VOLTAGE SENSING ABOVE AND BELOW GROUND BACKGROUND OF THE INVENTION 1." fiel of the Invention The present invention relates to the field of voltage to frequency converters.

2. Prior Art Voltage to frequency converters of various kinds are known in the prior art. One type of such converter uses a current source or current sources triggered by one-shot devices to provide a charge equal to I * AT as a restoring force to an input integrator. The present invention provides an alternate design readily fabricated in integrated circuit form, operating on a single voltage supply, having high performance, and being capable of operating on input signals both above and below circuit ground.

BRIEF SUMMARY OF THE INVENTION A voltage to frequency converter using a charge pump to restore the output voltage of the input integrator. The charge pump implementation allows the voltage to frequency converter's input to sense voltage above and below ground with a single supply using a charge pump, which can provide either a positive charge or a negative charge as the restoring force to the integrator. Inclusion of an interleaved charge pump provides advantages of implementation simplicity and of high performance. The voltage to frequency converter concentrates all offset and leakage errors at the input of the integrator amplifier, which in the preferred embodiment is a chopper stabilized amplifier providing very low offset. The voltage to frequency converter is intended for realization in integrated circuit form, providing very high performance in an integrated circuit having very low power requirements.

BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a block diagram of the voltage to frequency converter of the present invention.

Figure 2 is a basic block diagram for a chopper stabilized amplifier which may used with the present invention.

Figure 3 illustrates a modification to the chopper stabilized amplifier of Figure 2.

Figure 4 illustrates a circuit implementation of the chopper stabilized amplifier of Figure 2 which shares the nulling and offset amplifiers.

Figure 5 illustrates a circuit implementation similar to that of Figure 4 but further including compensation devices.

Figure 6 is a diagram similar to Figure 1, but showing greater detail in the interleaved bi-directional charge pump.

Figure 7 presents the full state diagram for the interleaved charge pump control signals A and B.

Figure 8 illustrates typical waveforms in the voltage to frequency converter of the preferred embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION First referring to Figure 1, a block diagram of the voltage to frequency converter of the present invention may be seen. The particular embodiment shown is intended for use as a rechargeable battery monitor, monitoring the charge current into and the discharge current out of a rechargeable battery. For this purpose, the battery ground is connected to the system ground 20 through a sense resistor RS of a relatively low resistance value. Thus the voltage across the sense resistor RS at nodes CS+ and CS-is provided as the input voltage to the voltage to frequency converter, generally indicated by the numeral 24.

The voltage on the current sense terminal CS+ is coupled through resistor Rint as the negative input to chopper stabilized differential amplifier 26, the positive input to the amplifier being connected to the current sense terminal CS- (circuit ground). Feedback current Ic for the amplifier 26 is provided through feedback capacitor Cint. With this connection, and neglecting for the moment the additional feedback current Icp, the amplifier acts as an integrator with the characteristic: where: Vo = the output of the differential amplifier Vcs = the voltage across the sense resistor RS t = time The output 22 of the amplifier 26 is coupled as the positive input to comparator 28 and as the negative input of comparator 30. The negative input of comparator 28 in the preferred embodiment is coupled to a two-volt reference voltage and the positive input to comparator 30 is coupled to a one volt reference voltage. With this connection, the output of both comparators will be low when the output 22 of the differential amplifier 26 is between one volt and two volts. If the output of the amplifier is below one volt, the output of comparator 30 will go high, whereas if the output 22 of the amplifier 26 is above two volts, the output of comparator 28 will go high.

The outputs of the comparators 28 and 30 in the preferred embodiment are coupled to interleaved bi- directional charge pump 38 which provides a current Icp to or from node 40, the negative input of the differential amplifier 26, dependent upon whether the charge pump has been triggered to provide current to or to remove current from node 40 by the latest high output from comparator 28 or 30, respectively. The charge pump itself, being interleaved, uses two charge pumping capacitor CP1 and CP2 which, in the preferred embodiment, are equal capacitors both realized in integrated circuit form.

Now referring to Figure 2, a basic block diagram for a chopper stabilized amplifier which may used with the present invention may be seen. In this Figure, the chopper stabilized amplifier 26 is comprised of a main amplifier 42 and a null amplifier 44. The main amplifier 42 has as its negative input, the voltage on line 46, and as its positive input, the output of the summing point 48. The inputs to the summing point 48 are the voltage on the positive input line 50 and the voltage 52 across an offset compensating capacitor COFS.

The output 22 of the main amplifier is the output of the overall chopper stabilized amplifier 26 of Figure 1.

The null amplifier 44 has as its positive input either the voltage on line 46 through the switch NULL or the voltage on line 50 through the switch OFS, depending on which of these two switches may be closed at the time.

The negative input to the null amplifier is the output of a second summing point 54. The inputs to the summing point 54 are the negative input voltage on line 46 and the voltage on line 56, which is equal to the voltage across the nulling capacitor CNULL. A second switch also labeled NULL allows the coupling of the output of the null amplifier to the capacitor CNULL and a second offset switch labeled OFS allows connection of the output of the null amplifier 44 to the offset compensating capacitors COFS. The two switches NULL have common labeling as the two preferably operate in unison, as do the offset compensating switches OFS.

In operation, the circuit alternates between nulling modes and offset compensation modes, preferably at a relatively high rate. During a nulling mode, the NULL switches are closed. This shorts lines 46 and 60 together, zeroing the voltage there between. The feedback loop comprising the null amp, Cnull and summing junction 54 servo the output of the summing junction such that its output cancels the internal input offset voltage of the null amp. the amount of this cancellation is limited by the open-loop gain of this feedback loop, A to 1/A of its original value.

After each nulling cycle, the null switches NULL are opened and the offset compensation switches OFS are then closed. In this condition, the null amplifier 44, its own offset being nulled out, amplifies the differential voltage across lines 50 and 46 with a gain of A to charge the offset compensation capacitor COFS.

Consider for the moment the characteristics of the main amplifier 42 of Figure 2 without any offset correction. Because the amplifier 42 has substantial gain and is used in conjunction with a feedback circuit (Figure 1), the primary source of differential voltage between lines 50 and 46 would be the input offset of the amplifier, the actual differential signal input to the amplifier merely being the amplifier output divided by the gain of the amplifier. Consequently, the differential voltage between lines 50 and 46 may be sensed and a corresponding offset voltage applied to one input of the main amplifier 42 to compensate for most of the offset of the main amplifier. In the offset cancellation mode, the main amplifier and the nulling amplifier are connected in cascade through the summing point 48, and the gain of the overall amplifier is the product of the open-loop gains of the main amp and the nulling amp. The nulling amp is the first amplifier in the cascade, and its input offset voltage will determine the input offset voltage of the amplifier overall.

Since its input offset voltage was reduced by 1/A in the nulling phase and stored on Cnull, the input offset voltage of the composite amplifier is very low. When back in the nulling mode, the main amplifier's offset cancellation is stored on Cofs, and the composite amplifier's input offset voltage is still very low.

Now referring to Figure 3, a slight modification of the diagram of Figure 2 may be seen. In particular, Figure 3 is the same a Figure 2 with the exception that the negative input for the main amplifier 42 is connected in common with the negative input of the nulling amplifier 44, rather than being coupled to the negative input line 46. This has certain advantages over the circuit of Figure 2. Specifically, the common mode offset on CNULL and COFS is rejected. Also, charge injection and leakage from the switches are canceled to the first order.

Now referring to Figure 4, an implementation of the chopper stabilized amplifier of Figure 3 which shares the nulling and offset amplifiers may be seen. In this <BR> <BR> <BR> <BR> figure, three p-channel devices M1, M2 and M3 are each<BR> <BR> <BR> <BR> <BR> <BR> coupled in series with NPN transistors Q1, Q2 and Q3, respectively. Transistors M2 and M3 are the same size, with transistor M1 being twice the size of each of transistors M2 and M3. Similarly, transistors Q2 and Q3 are the same size, with transistor Q1 being twice the size of each of transistors Q2 and Q3. Summing points 48 and 54, in series with the sources of transistors M1 and M3, alter the gate to source voltage of these transistors in much the same manner they would if the same were in series with the gate voltage to the transistors, and accordingly, the summing points 48 and 54 are functionally the same as the summing points 48 and 54 in Figure 3.

When the circuit is balanced, the current from current source 62 will flow one-fourth through transistor M3, one-fourth through transistor M2 and one- half through transistor M1. The current through transistor M1 will be mirrored by transistor Q1, one- half to transistor Q2 and one-half to transistor Q3, the currents through transistors Q2 and Q3 just matching the currents through transistors M2 and M3, respectively.

The gate of transistor M3 may be considered to be equivalent to the positive input of the main amplifier 42 of Figure 3, the gate of transistor M2 to be equivalent to the positive input of nulling amplifier 44 of Figure 3 and the gate of transistor M1 to be equivalent to the common negative or inverting input of the nulling amplifier 44 and the main amplifier 42 of Figure 3. Thus, as before, when the nulling switches NULL are closed, the gates of transistors MI and M2 are shorted together, equivalent to the shorting of the differential input to the nulling amplifier, with capacitors CNULL being charged through transconductance amplifier 64 to adjust the gate-source voltage of transistor M1 until the current through transistor M2 equals one-half the current through transistor M1.

Then, with the nulling switches NULL open and the offset compensating switches OFS closed, the transconductance amplifier 64 forces a voltage onto the offset compensating capacitor COFS to adjust the source voltage of transistor M3 to cancel the input offset of transistor M3. Thus, in this circuit, the offset is limited only by the gain of the feedback loop, and by charge injection and leakage. Matching of the transistors is not a direct limiting function of the circuit.

Now referring to Figure 5, a circuit similar to that of Figure 4 may be seen. However, in this circuit, resistors R in series with the capacitors CNULL and COFS have been added to provide a phase boost at high frequency. Also, an additional switch OFS and additional switch NULL have been added, together with three compensating capacitors Cc for additional compensation of the circuit. The amplifier design of Figure 5 provides the advantage that the slew rate of the main amplifier and the nulling amplifier will match in the offset phase.

It will be noted that in the amplifiers of Figures 4 and 5, the positive input to the nulling amplifier (transistor M2), the positive input to the main amplifier (transistor M3), and the common negative input to both the nulling amplifier and the main amplifier (transistor M1), are all gates of p-channel enhancement type MOS devices. Also, while transistor MI is twice the size of transistors M2 and M3, the difference in size relates to the width of the channel, not the length, so that the thresholds of transistors M1, M2 and M3 are all substantially equal. With this arrangement, together with the fact that the collectors of transistors Q1, Q2 and Q3, and thus the drains of transistors M1, M2 and M3, operate at only 1 VBE above the circuit ground, transistors M1, M2 and M3 will operate as desired with the inputs thereto at or around circuit ground. More specifically, as may be seen in Figures 1 and 6, the positive input to the main amplifier operates at ground (plus or minus the input offset of the main amplifier). Also, because of the feedback, the inverting input to the chopper stabilized amplifier is itself a virtual ground, so that the chopper stabilized amplifier will operate as desired with the amplifier input near the circuit ground, including above and below circuit ground, by selection of an appropriate threshold for transistors M1, M2 and M3 of Figures 4 or 5.

Now referring to Figure 6, a diagram similar to Figure 1, but showing greater detail in the interleaved bi-directional charge pump, may be seen. The charge pump in the preferred embodiment is comprised of charge pump logic 70, responding to the outputs of comparators 28, providing A and B switch control signals and the inverse thereof, A and B, respectively. These switching signals control the gates of eight n-channel MOS devices, M4 through Mll. It may be seen from the figure that the signals which control n-channel transistors M4 through M7 are the inverse of the signals which control n-channel devices M8 through Mll, respectively. In this circuit, no two series connected n-channel devices should be on at the same time, so that the waveforms for each signal, A and B, should be overlapping with their inverse, A and B, respectively, in the low state (respective transistor off), as opposed to in the high state. In this manner, any one of the pair of series connected transistors will clearly be off before the other transistor in the series connection can turn on.

The operation of the charge pump may be described as follows. Node 40 is a virtual ground so that the charge pumps are, in essence, pumping to or from the ground connection. Considering first n-channel transistors M4 through M7, when A and B are both low, A and B will be high, turning on transistors M6 and M7.

This discharges capacitor CP1. Then, if A and B both go high, transistors M6 and M7 will be turned off and transistors M4 and M5 turned on. Because node 40 will remain a virtual ground, capacitor CP1 will provide a charge into node 40 equal to CP1 * VREF. Also when signals A and B go high to dump charge from capacitor CP1 to node 40, transistors M10 and Mll will be on, discharging capacitor CP2. Then, when signals A and B go low again, transistors M10 and Mll are turned off, and transistors M8 and M9 are turned on, so that capacitor CP2 will dump a charge to node 40 equal to CP2 * VREF, thus providing the interleaved charge pumping.

At the same time, transistors M4 and M5 will be turned off and transistors M6 and M7 will be turned on, discharging capacitor CP1 again. The net effect is that charge is pumped to node 40 from capacitor CP1 when the signals A and B go from low to high, and from capacitor CP2 when signals A and B go from high to low.

Charge may be pumped from node 40 by first turning on transistors M5 and M6 (A low and B high) to charge the capacitor CP1 to VREF and then to turn off transistors M6 and M5 and turn on transistors M4 and M7 (A high and B low) to pull charge out of node 40 to discharge capacitor CP1 (one end of the capacitor now being tied to the circuit ground and the other end of the capacitor now being tied to a virtual ground). This pulls a charge from node 40 equal to CP1 * VREF. The combination of the signals A high and B low will also turn on transistors M9 and M10 to charge capacitor CP2 to VREF, with the subsequent change to B high and A low turning off transistors M9 and M10 and turning on transistors M8 and Mll to pull a charge from node 40 equal to CP2 * VREF. Now the net effect is that charge is pumped from node 40 by capacitor CP1 when the signals go from A low and B high to A high and B low, and charge is pumped from node 40 by capacitor CP2 when the signals go from A high and B low to A low and B high. Thus, the two charge pumps are interleaved when either providing current to or current from node 40, in either case the current provided in two successive charge pumping cycles having a magnitude of (CP1 + CP2) * VREF. If charge pumping is continued at a fixed frequency F, the corresponding current will be VREF * F * (CP1 + CP2)/2, where F is the frequency of each cycle of the interleaved pumping cycles (VREF * F * (CP1 + CP2) for the pair of interleaved cycles).

In the interleaved charge pump just described, one of the charge pumping capacitors CP1 or CP2 will in a state for immediate reversal of the pumping direction.

By way of example, consider the sequence for pumping current into node 40 of Figure 6. In this sequence, either A and B are both high or A and B are both low.

When signals A and B are both high, capacitor CP1 is charged from VREF through transistor M5 and transistor M4, the charging current flowing through transistor M5, capacitor CP1, transistor M4 to node 40. If at that time the charge pumping direction were to reverse, signal A would remain high and signal B would be driven low, leaving transistor M4 on and now turning off transistor M5 and turning on transistor M7. This causes capacitor CP1 to immediately discharge again, removing from node 40 the charge that was dumped to node 40 in the immediately previous cycle. While this is but one example, it can be shown that regardless of which capacitor just completed a pumping cycle and regardless of whether the pumping cycle was pumping charge to or from node 40, that capacitor will be ready to immediately pump in the opposite direction if required, the other capacitor being charged or discharged during the first reversed cycle so as to be ready to pump charge to or from node 40 on the next cycle as required in accordance with the charging pumping direction reversal.

This is to be compared with a single switched capacitor charge pump which alternates between charge pumping on every other cycle, and setting the capacitor charge for the desired pumping in the interleaved cycles. In this case, on completion of one pumping cycle, followed by the resetting of the capacitor charge as appropriate for continued pumping in the same direction, a charge pump direction reversal at that time would require a further cycle time to reset the capacitor charge as appropriate for pumping in the reverse direction before an actual charge pump operation in the reverse direction could be executed. The full state diagram for signals A and B and the charge pumping in the preferred embodiment of the present invention is shown in Figure 7.

In the preferred embodiment, capacitors CP1 and CP2 are matche, with each individual pumping cycle representing approximately two-thirds of the sensing window. Stated differently, the range of output of the chopper stabilized amplifier 26 is from 1 volt to 2 volts. In the preferred embodiment, the charge pumped into or out of node 40 on each pumping cycle (CP1 * VREF or CP2 * VREF) will result in a corresponding charge on the integrating capacitor CINT of approximately two- thirds of the 1 volt window, or two-thirds of a volt.

Referring to Figure 8, typical waveforms in the voltage to frequency converter of the preferred embodiment of the present invention may be seen. The top curve is an exemplary input to the CS+ input terminal of the voltage to frequency converter 24 of Figure 1, relative of course to the CS-or circuit ground terminal 20. The exemplary waveform represents a steady battery charging current IBATT between times TO and T1, followed by an approximately equal net discharging current between times T1 and T2, a greater discharging current between times T2 and T3, and again reduced discharging current between times T3 and T4, a return of the charging current between times T4 and T5, a return of a net discharging current between times T5 and T6, followed by a substantially zero battery current thereafter. The state of the charge pump logic 70 (Figure 6) at time T0, as shown in the lower power of Figure 8, will be with the B signal high and with the A signal high or low, dependent upon the previous history of the circuit. The second curve in Figure 8 represents the output 22 of the chopper stabilized amplifier 26 VINT (see Figure 6). The positive voltage CS+ during the time period TO to T1 produces a downward ramp voltage at the output of the integrator, triggering comparator 30 when the 1 volt lower limit of the comparison window is reached. This triggers the output of comparator 30 high, providing a charge pulse CHG to the output of the circuit (Figure 6) and to the charge pump logic 70 to trigger a change in the output of the charge pump logic to the state A = 1 or high, and B = 0 or low. As previously shown, this pulls a charge from node 40 of Figure 6 equal to CPI * VREF, which as stated before, in the preferred embodiment is equal to about two-thirds of a volt at the output of the integrator.

The output of the integrator then again ramps downward, triggering comparator 30 again, which causes an additional output pulse and triggers the charge pump logic 70 to the state where A is low and B is high, now pulling the charge from node 40 equal to CP2 * VREF. So long as the charging current remains constant, a saw- tooth waveform in the output of the integrator will be generated as shown in Figure 8, alternately using capacitors CP1 and CP2 to pump charge from node 40 and generating a pulse train CHG having a frequency proportional to the charging current.

At time T1, the charging current changed to a net discharging current between times T1 and T2. This causes a reversal in the saw-tooth waveform in the integrator output, with comparator 28 being triggered at each saw-tooth peak to provide an output pulse DSG and to trigger the charge pump logic to change the signals A and B from A high and B low to both A and B high. The discharge signal DSG pulses high at each peak of the saw-tooth ramp to provide the output pulse DSG and to trigger the charge pump logic 70 to change the state of the signals A and B from A and B both high to A and B both low, or from A and B both low to A and B both high, as the case may be. As may be seen, by way of example, in the time period between T1 and T4, the frequency of the pulses of the output signal DSG is directly proportional to the amplitude of the negative value of the input voltage Vcs+, and thus directly proportional to the discharge current of the battery.

Note that in the explanation of Figure 8 so far, the state of signals A and B at time T1 happens to be A = 1 and B = 0. The change to that state from the prior state A = 0 and B = 1 pulled a charge from node 40 equal to CP1 * VREF. When the charging current changed to a discharging current at time T1, the change of signal state at the first following triggering of comparator 28 was from A = 1 and B = 0 to A = 1 and B = 1. This had the effect of dumping a charge equal to CP1 * VREF to node 40 in a reversal of the charge pumping direction.

Had the state of signals A and B at time T1 been A = 0 and B = 1, then the first discharge pulse DSG output by comparator 28 would have caused a change of state in the signals A and B to A = 0 and B = 0, instead of A = 1 and B = 1. In either event, it is important to note that the first charge pump cycle after a charge pump direction reversal will be a pumping of the same charge of the same capacitor as made the last charge pump cycle before the reversal. This has the advantage that, even though two interleaved charge pumps are used, the number of net pumping cycles by either of capacitors CP1 or CP2 cannot differ from the number of net charging cycles by the other capacitor by more than one cycle, independent of the length of time of operation of the circuit.

Thus, while the capacitors CP1 and CP2 formed by integrated circuit fabrication techniques may not be perfectly matched, their mismatch cannot lead to a cumulative error in the voltage to frequency conversion.

Referring again to Figure 8, at time T6, the voltage VCS+ is shown to return to zero and remain there, indicating that the battery is now neither charging nor discharging. Thus, the output of the integrator VINT will remain constant at its value at time T6, and neither comparator 28 nor 30 will be triggered thereafter. Accordingly, the frequency of the pulses of CHG over any period of time is indicative of the rate of charge of the battery over that time, and the frequency of the pulses DSG over any period of time is indicative of the rate of discharge of the battery over that time. By using an up-down counter, one can easily accumulate the net difference between the number of charge pulses CHG and the number of discharge pulses DSG to determine the net charge to or net charge from the battery over any period of time to provide an indication of the state of charge of the battery at any time.

It will be noted from Figure 8 that while the battery charge or discharge current may rapidly change as the charging currents and loads on the battery change, the output of the integrator only rapidly changes during each charge pumping cycle, and then by an amount less than the comparator sensing window. As such, one can be assured that upon initiation of a charge pumping cycle, the charge pumping cycle will be completed well before a subsequent charge pump cycle in either direction can be initiated. Also, while the charging and discharging currents in Figure 8 are shown to change rapidly, as would occur by the turning on and turning off of various loads, the circuit is of course not limited to such applications, as the voltage to frequency converter will equally accurately respond to slowly varying battery current changes as well as the step changes shown.

The present invention provides a voltage to frequency converter having low voltage sensing both above and below ground to sense the voltage across the sense resistor having one end thereof tied to the circuit ground, independent of the direction of the current through the sense resistor. The use of a chopper stabilized amplifier for the integrator provides an integrator having a much lower offset than can normally be achieved with ordinary integrated circuit amplifiers. Further, the use of the interleaved charge pump avoids the need for the single capacitor of a single charge pump to be reset by additional timing circuitry, allowing for savings in the power supply current. Also, the interleaved charge pump has the advantage that when changing from a positive input to a negative input, the interleaving scheme requires minimal additional analog circuitry, which also provides for a savings in supply current. The present invention has the further advantage of concentrating all offset and leakage errors at the input to the integrating chopper stabilized amplifier, which makes for a higher performance design.

While a certain exemplary embodiment has been described in detail and shown in the accompanying drawings, it is to be understood that such embodiment is merely illustrative of and not restrictive on the broad invention, and that this invention is not to be limited to the specific arrangements and constructions shown and described, since various other modifications may occur to those with ordinary skill in the art.