| 4556804 | Power multiplexer switch and method | December, 1985 | Dewitt | 327/434 |
| 4617473 | CMOS backup power switching circuit | October, 1986 | Bingham | 327/546 |
| 4645943 | Space-saving back-up power supply | February, 1987 | Smith, Jr. et al. | 307/150 |
| 4654829 | Portable, non-volatile read/write memory module | March, 1987 | Jiang et al. | 365/229 |
| 4806789 | Power select circuit | February, 1989 | Sakihama et al. | 327/437 |
| 4906863 | Wide range power supply BiCMOS band-gap reference voltage circuit | March, 1990 | Van Tran | 327/539 |
| 4935690 | CMOS compatible bandgap voltage reference | June, 1990 | Yan | 323/314 |
| 4958123 | Circuit arrangement for processing sampled analogue electrical signals | September, 1990 | Hughes | 323/316 |
| 5013941 | TTL to ECL/CML translator circuit | May, 1991 | Jansson | 326/78 |
| 5029295 | Bandgap voltage reference using a power supply independent current source | July, 1991 | Bennett et al. | 323/313 |
| 5034626 | BIMOS current bias with low temperature coefficient | July, 1991 | Pirez et al. | 327/542 |
| 5049807 | All-NPN-transistor voltage regulator | September, 1991 | Banwell et al. | 323/314 |
| 5053640 | Bandgap voltage reference circuit | October, 1991 | Yum | 323/313 |
| 5087831 | Voltage as a function of temperature stabilization circuit and method of operation | February, 1992 | Ten Eyck | 327/513 |
| 5103159 | Current source with low temperature coefficient | April, 1992 | Breugnot et al. | 323/315 |
| 5111071 | Threshold detection circuit | May, 1992 | Kwan et al. | 327/77 |
| 5121359 | Configuration memory for programmable logic device | June, 1992 | Steele | 365/229 |
| 5272393 | Voltage converter of semiconductor device | December, 1993 | Horiguchi et al. | 327/535 |
| 5373227 | Control circuit responsive to its supply voltage level | December, 1994 | Keeth | 323/313 |
| 5430395 | Temperature compensated constant-voltage circuit and temperature compensated constant-current circuit | July, 1995 | Ichimaru | 327/538 |
| 5559425 | Voltage regulator with high gain cascode mirror | September, 1996 | Allman | 323/315 |
| 5774013 | Dual source for constant and PTAT current | June, 1998 | Groe | 327/543 |
1. Field of the Invention
The present invention relates to integrated circuits and in particular to MOS integrated circuits. Still more particularly, the present invention relates to bandgap reference circuits in insulated gate FET semiconductor integrated circuits.
2. Description of the Prior Art
In some situations it is desirable to provide retention of data in integrated circuits such as memory devices. A number of circuits are commercially available for retaining data in SRAMS when power is removed. These devices are often known as “zero power circuits”. Typically, in a zero power circuit, the contents of the circuit are protected in the event that the power supply voltage to that circuit drops below some predetermined or preselected threshold voltage. This protection may be accomplished by switching the circuit from the primary power supply to a secondary power supply, typically an integral battery, when the voltage of the primary power supply drops below the selected threshold voltage. Secondary or backup power supplies are well known, as may be seen in U.S. Pat. Nos. 4,381,458 and 4,645,943.
Power controller circuits exist, which provide automatic sensing of a primary power source voltage. These power controller circuits provide automatic switching to a secondary power source when the primary power source voltage drops below a predetermined threshold voltage. An example of one such system may be found in U.S. Pat. No. 5,121,359, which describes a programmable logic device with a backup power supply that is automatically provided when a power loss at an input pin is detected. U.S. Pat. No. 4,654,829 discloses a portable non-volatile memory module, using a comparator and switching circuitry to switch between a primary power supply and a secondary power supply, such as a battery power supply.
Past approaches in setting or selecting the voltage level in a zero power circuit has involved the use of many bipolar devices, large resistors, oscillators, switched capacitors, autozero devices, etc. A bandgap reference circuit is one circuit that may be used to set that voltage level. One drawback with a typical bandgap reference circuit is that a large number of devices are needed for implementation. As a result, a large amount of area on a semiconductor chip is required. In addition to the area problem, typical bandgap reference circuits also are fairly sensitive to noise within the circuit. For example, active memory circuits are usually noisy and known bandgap circuits used with active memories circuits are usually sensitive to the noise generated.
Therefore it would be desirable to have a circuit that is smaller, simpler, and less sensitive to noise.
The present invention provides a direct current sum bandgap voltage comparator for detecting voltage changes in a power supply. The direct current sum bandgap voltage comparator includes a summing node, current sources, and an indicator circuit. The current sources are connected to the summing node and each current source supplies a current to the summing node, wherein the voltage at the summing node is responsive to the current supplied to the summing node. The indicator circuit has an input connected to the summing node and generates a logical signal at an output that is responsive to voltage changes in the summing node.
The direct current sum bandgap voltage comparator may be used in a zero power circuit also including a circuit, in which power is to be maintained, and a switching circuit for providing power to the first circuit from a primary power supply and a secondary power supply. The switching circuit is connected to the output of the indicator circuit, wherein power from the primary power supply is supplied to the first circuit if the logical signal indicates that the power supply voltage is equal to or greater than the preselected voltage, and power from the secondary power supply is supplied to the first circuit if the power supply voltage is less than the preselected voltage.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself however, as well as a preferred mode of use, and further objects and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
FIG. 1 is a block diagram of a zero power circuit according to the present invention;
FIG. 2 is a schematic diagram of a direct current sum bandgap voltage comparator according to the present invention; and
FIG. 3 is a schematic diagram of an alternative direct current sum bandgap voltage comparator according to the present invention.
Referring now to FIG. 1, a block diagram of a zero power circuit 2 on a chip is illustrated. Zero power circuit 2 is connected to a primary power supply 4 and has a secondary power supply 6 , located within an integral package. Secondary power supply 6 is typically a battery constructed in the plastic package housing the chip. Other secondary power supplies, such as, for example, a battery located outside the package may also be used.
Zero power circuit 2 includes a switching circuit 8 , a memory 10 , and a direct current sum bandgap voltage (DCSBV) comparator 12 constructed according to the present invention. Switching circuit 8 is connected to primary power supply 4 and secondary power supply 6 . This circuit controls the power supplied to memory 10 and may include logic to provide for continuous supply of power to memory 10 during switching back and forth between primary power supply 4 and secondary power supply 6 .
DCSBV comparator 12 has an input connected to primary power supply 4 and output connected to switching circuit 8 . DCSBV comparator 12 has an output connected to switching circuit 8 to indicate when the primary power supply voltage is at or above a preselected voltage or drops below the preselected voltage.
Those of ordinary skill in the art will realize that the zero power circuit 2 may include additional circuits and that various circuits may be used in place of memory 10 . Switching circuit 8 may be implemented with a number different designs known to those of ordinary skill in the art.
A DCSBV comparator may be constructed using four current sources each of which generates a current representing one of the terms of a bandgap equation:
K 1 (V CC −V T )+K 1 V T =K 2 V BE +K 3 (kT/q) (1)
where V CC is the power supply voltage, V T is the absolute value of the threshold voltage, and V BE is the base emitter voltage, kT/q is equal to the thermal voltage, where k is Boltzman's constant, T is the temperature in kelvin, and q is the electronic charge. Voltages (V CC −V T ). V T , V BE , and kT/q are converted to currents in four current mirror circuits. Other equivalent forms of this equation may be implemented according to other embodiments of the present invention.
The four current sources may be provided using current mirrors A-D, as illustrated in the schematic diagram of a current sum bandgap voltage (DCSBV) comparator in FIG. 2 . Current mirror A generates a current:
Current mirror B generates a current:
Current mirror C generates a current:
while current mirror D generates a current:
The constants K 1 -K 3 from equation (1) may be set by resistors and scaled transistors in the current mirrors.
The currents contributed by each of the current mirrors, A-D, are summed at a summing node, referred to as node VSUM. The node will swing to the edge of saturation corresponding to the mirror or current mirrors supplying the larger current or currents. Node VSUM is connected to two complementary metal-oxide semiconductor (CMOS) inverters 20 and 22 formed by transistors C 1 -C 4 , where transistors C 1 and C 3 are p-channel metal-oxide semiconductor field effect transistors (MOSFETs) and transistors C 2 and C 4 are n-channel MOSFETs. Inverters 20 and 22 are used as detectors for node VSUM and provide for a rail-to-rail voltage swing at output 24 of the DCSBV comparator.
Current mirror circuit A is constructed from sized transistors M 1 -M 4 , T 1 , B 1 , and B 2 and resistor R 1 . Transistors M 1 -M 4 , and T 1 are MOSFETs. Transistors M 1 and M 2 are p-channel MOSFETs, while transistors M 3 , M 4 , and T 1 are n-channel MOSFETs. Transistors B 1 and B 2 are bipolar junction transistors. The collectors and bases of transistors B 1 and B 2 are connected to power supply voltage V CC ; the sources of transistors M 3 and M 4 are connected to power supply voltage GND, which is connected to ground. Resistor R 1 has a one end connected to the emitter of transistor B 2 and the other end connected to the source of transistor M 2 .
Transistors M 1 -M 4 , T 1 , B 1 , and B 2 are sized transistors and are employed to obtain different current densities in different parts of current mirror circuit A. Transistors M 1 and M 3 are sized to provide a current flow that is ten times the current generated by transistors M 2 and M 4 . The emitter area of transistor B 2 is twice that of transistors B 1 . The voltage across resistor R 1 provides a current. The sizing of the transistors and the resistor R 1 is selected to generate a current of:
through transistor M 4 , where J 1 is the current density of transistor B 1 and J 2 is the current density of transistor B 2 .
Transistor T 1 is designed to generate a current that is N times the current flowing through transistor M 4 . As a result, the current contributed by current mirror A is:
where R 1 has been replaced by sheet resistance ρ s and the number of squares r 1 . In the preferred embodiment, the sheet resistance ρ s for all of the resistors in the circuit will be the same. Therefore, the constant K 3 in equation (1) is as follows:
By scaling the current in the left and right legs of current mirror A, the need for a large number of bipolar structures (i.e., 30 or more) is eliminated.
Current mirror circuit B includes transistors M 5 -M 8 , transistor B 3 , and resistor R 2 . Transistors M 5 and M 6 are p-channel MOSFETs, while transistors M 7 and M 8 are n-channel MOSFETs. Transistor B 3 is a bipolar junction transistor.
Resistor R 2 has one end connected to the drain of transistor M 5 and a second end connected to power supply voltage V CC . The base and collector of transistor B 3 also are connected to power supply voltage V CC , while the sources of transistors M 7 and M 8 are connected to power supply voltage GND.
Transistors M 5 -M 8 and T 2 are sized MOSFETs. Transistors M 6 and M 8 are scaled to generate a current flow that is one tenth of the current flowing through transistors M 5 and M 7 . The current flowing through transistors M 5 and M 7 is equal to the current flowing through transistors M 2 and M 4 in current mirror A. Transistor T 2 is constructed to provide a current flow that is M times the current flowing through transistor M 7 . The voltage V BE is set up by transistor B 3 (that is, V BE is the base-emitter voltage of transistor B 3 ), and resistor R 2 sets up the current; the voltage drop across R 2 is V BE . As a result, current mirror B generates a current:
where ρ s is the sheet resistance of resistor R 2 and r 2 is the number of squares in resistor R 2 . The constant K 2 from equation (1) is defined as:
Next, current mirror C includes transistors M 9 -M 15 , and T 3 and resistor R 3 . Resistor R 3 has one end connected to the source of transistor M 11 and another end connected to power supply voltage V CC . Transistor M 9 has its source connected to power supply voltage V CC , while the sources of transistors M 12 , M 13 , and M 14 are connected to ground power supply voltage GND. The voltage V T is set up by transistor M 9 (that is, V T is the absolute value of the threshold voltage of transistor M 9 ), while resistor R 3 sets up the current. The voltage drop across R 3 is V T
Transistors M 9 -M 11 , M 15 , and T 3 are p-channel MOSFETS, while transistors M 12 -M 14 are n-channel MOSFETs. These transistors are sized transistors. The current flowing through transistors M 11 and M 13 is the same as the current flowing through transistors M 14 and M 15 . The current flowing through transistors M 11 and M 13 -M 15 is the same as the current flowing through transistor M 5 and M 7 in current mirror B. Transistors M 9 , M 10 , and M 12 are sized to provide a current flow that is one tenth of the current flowing through transistors, M 11 , M 13 , M 14 , and M 15 . Transistor T 3 is designed to provide a current flow that is L times the current flowing through transistor M 14 . Thus, current mirror C generates a current:
where ρ is the sheet resistance of resistor R 3 and r 3 is the number of squares in resistor R 3 . The coefficient K 1 in equation (1) is defined as:
for current mirror C.
Current mirror D includes transistor M 16 , transistor T 4 , and resistor R 4 . Both transistors M 16 and T 4 are p-channel MOSFETs with their sources connected power supply voltage V CC . Resistor R 4 has one end connected to the drain of transistor M 16 and a second end connected to power supply voltage GND. Transistor M 16 sets up the voltage V CC −V T , while resistor R 4 sets up the current. The voltage drop across R 4 is V CC −V T .
Transistors M 16 and T 4 are scaled transistors. Transistor M 16 is designed to provide a current flow that is equal to the current flowing through transistors M 14 and M 15 ; transistor T 4 is constructed to generate a current that is J times the current flowing through transistor M 16 . Thus, the current generated by current mirror D is:
where the coefficient K 1 in the current mirror is set as:
Since both current mirrors C and D create current contributions that are related to the coefficient K 1 , the current mirrors must be sized according the following relationship:
As a result, the voltage level of node VSUM is set by the selection of the sizes and properties of the devices involved in constants K 1 -K 3 . The voltage at node OUT is set to V CC /2 in the depicted circuit when the voltage at VSUM is equal to V CC /2, and the power supply voltage V CC is equal to the selected or threshold voltage. If the current from transistors T 1 and T 2 is less than the current from transistors T 3 and T 4 , the voltage at node OUT will swing up to that of power supply voltage V CC . This situation occurs when the power supply voltage V CC is greater than the selected voltage. On the other hand, if the current from transistors T 1 and T 2 is greater than the current from transistors T 3 and T 4 , the voltage at node OUT will swing down to that of power supply voltage GND. This situation occurs when the power supply voltage V CC is less than the selected or threshold voltage.
The threshold voltage may be set at a value slightly less than the desired power supply voltage according to the present invention. For example, in a five volt power supply system, the threshold voltage may be set at 4.8 volts such that when the power supply is at 5 volts, the output at node OUT will swing up to power supply voltage V CC , 5 volts. If the power supply voltage drops below 4.8 volts, the output node OUT will swing down to the ground power supply voltage. Thus, through the selection of constants K 1 -K 3 , a voltage may be selected, wherein fluctuations of the power supply voltage V CC below the selected voltage will cause the comparator to indicate that a secondary or backup power supply should be switched to the circuit associated with the comparator.
The MOSFETs used in the current mirrors in the depicted circuit may have longer channels than the base technology. For example, in a 0.8 micron device, the transistors used in the current mirrors may have channel lengths from 3 to 6 microns. These longer channels may be used improve the precision of the current supplied by the current mirrors.
The scaling of currents in current mirrors A-D may be done in a variety of ways. In accordance with a preferred embodiment of the present invention, one of the transistors is selected as unity. A transistor that is to provide a current N times the current of the unity transistor is replaced with N unity transistors connected in parallel. Those of ordinary skill in the art will realize other methods of scaling currents may be employed.
Next, the value of the resistors must match preset ratios when specified, but the actual magnitude of the resistors affects only the power consumption of the circuit.
Current mirrors A-D in FIG. 1 are an example of one layout of a DCSBV comparator in accordance with a preferred embodiment of the present invention. Other configurations for the current mirrors will be apparent to those of ordinary skill in the art. Other numbers of current mirror layouts may be employed to satisfy equation (1).
Referring next to FIG. 3, a schematic diagram of a DCSBV comparator is illustrated. This comparator is similar to the comparator depicted in FIG. 1 with a few additional circuits. Drain impedance of the current sources may limit the voltage swing in some cases in which the current is limited to low or small changes. Additionally, small current changes may have problems in driving the node capacitance at node VSUM, resulting in a slow response.
To solve these problems, a cascode stage 24 , well known to those of ordinary skill in the art, may be added the DCSBV comparator between the current sources and node VSUM, as depicted in FIG. 2, to improve the switching speed of the circuit. Cascode stage 24 includes transistors E 1 -E 6 and resistor R x . Transistors E 1 -E 3 are p-channel MOSFETs, while transistors E 4 -E 6 are n-channel MOSFETs. Transistor E 2 has its source connected to power supply voltage V CC , while transistor E 6 has its source connected to power supply voltage GND. Transistor E 1 has its source connected to the drains of transistors T 3 and T 4 ; transistor E 4 has its source connected to the drains of transistor T 1 and T 2 . Transistors E 1 and E 4 have their drains connected to node VSUM.
In some instances, a selected voltage swing having a range other than that between the power supply voltage V CC and power supply voltage GND may be desired. A clamping circuit 26 , well known to those of ordinary skill in the art, may be added to provide a bias to set the voltage swing at node VSUM between selected or preset voltages. Clamping circuit 26 includes transistors D 1 -D 4 and inverter 30 . Transistors D 1 and D 2 are n-channel MOSFETs, while transistors D 3 and D 4 are p-channel MOSFETs. Transistors D 1 and D 2 have their drains connected to power supply voltage V CC ; transistors D 3 and D 4 have their drains connected to ground power supply voltage GND. The sources of transistors D 2 and D 3 are connected to node VBUM. Other clamping circuits other than the one depicted also may be used with the comparator of the present invention.
In addition, a hysteresis circuit 28 , known to those of ordinary skill in the art, may be used to reduce the susceptibility of the comparator to noise from other components. Hysteresis circuit 28 includes transistors H 1 -H 3 . Transistors H 1 and H 2 are p-channel MOSFETs, and transistor H 3 is an n-channel MOSFET. Transistor H 1 has its source connected to power supply voltage V CC . The gate of transistor H 1 is connected to the gate and source of transistor M 16 . The gate of transistor H 2 is controlled by the output of inverter 34 ; the gate of transistor H 3 is controlled by the output of inverter 32 . Inverters 32 and 33 are the same as inverters 10 and 12 .
As a result, a DCSBV comparator provides an indicator for switching between a primary and secondary power supply without requiring a large number of devices for implementation as compared to a typical bandgap reference circuit. The present invention eliminates the need for using a large number of bipolar devices, large resistors, oscillators, switch capacitors, auto zero devices, etc. Through the use of current mirrors, the number of bipolar devices required are reduced. Additionally, sensitivity to noise also may be reduced by using a DCSBV comparator according to the present invention.
Although the depicted embodiment employs for current mirrors, other numbers of current mirrors and current mirrors of other designs may be used as long as the implementation of the current mirrors performs the function of summing currents at a node. Additionally, more than one node may be used for summing currents.
An example of typical values which can be used to fabricate an operational device are as follows. These numbers assume a typical processing technology, and a desired trip point for the comparator of approximately 4.4 volts. The constants K 1 , K 2 , and K 3 , respectively, can be set to the values 2, 7, and 46 by proper selection of the various components and transistor sizes. Transistor design to give current densities of J 1 =1.0 A/cm 2 and J 2 =0.05 A/cm 2 provides for operation as described above.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.