A protection circuit (1) comprising a first and second supply line at a first and second supply voltage respectively; a reference voltage source; a comparator connected to the first supply line and the source; and a switch controlled by the comparator via a control terminal and located between the second supply line and the output of the circuit. To reduce static consumption of the comparator under normal operating conditions, the circuit comprises enabling control elements connected to the two supply lines and to the comparator for disabling the comparator and turning on the switch when the two supply voltages differ by a value below a predetermined threshold, but are greater than a reference value.
|
19. A method for protecting a device that includes at least one nonvolatile memory, the method comprising the steps of:
providing a first operative voltage; providing a second operative voltage; providing a reference voltage; comparing the first operative voltage to the reference voltage; comparing the first operative voltage to the second operative voltage; and preventing said step of comparing the first operative voltage to the reference voltage when a difference between the first and second operative voltages is less than a predetermined value.
1. A protection circuit for devices comprising nonvolatile memories, the circuit comprising:
at least a first and a second supply line at a first and second supply voltage respectively; reference voltage source means; comparing means connected to said first supply line and to said source means; switch means controlled by said comparing means via a control terminal and located between said second supply line and the output of said circuit; and enabling control means connected to said first and second supply lines and to said comparing means for disabling said comparing means and turning on said switch means when said first and second supply voltages differ by a value below a predetermined threshold.
18. A circuit for protecting a device which includes at least one memory, the circuit comprising:
a first supply voltage and a second supply voltage; a protection switch for selectively providing the first supply voltage to the device; a comparator being coupled to the second supply voltage, the second supply voltage providing operational power to the comparator, the comparator having an output which is coupled to the protection switch; and a disabling switch coupled to the comparator, the disabling switch disconnecting the comparator from the first supply voltage when a difference between the first supply voltage and the second supply voltage is less than a predefined value, the disabling switch disconnecting the comparator from the first supply voltage to save power and to render the comparator inoperative.
14. A circuit for protecting a device which comprises nonvolatile memories, the circuit protecting the device by decoupling a programming voltage to the device, the circuit comprising:
a voltage reference source; a comparator having a first control input coupled to a supply voltage, a second control input coupled to the voltage reference source, and an output; a protection transistor having a control terminal coupled to the output of the comparator, the protection transistor selectively coupling the programming voltage to the device; and a disabling component coupled to the programming voltage and to the comparator, the disabling component disabling the comparator if the difference between the programming voltage and the supply voltage is less than a predefined threshold voltage to prevent the output of the comparator from altering the state of the protection transistor while the comparator is disabled.
2. A circuit as claimed in
3. A circuit as claimed in
4. A circuit as claimed in
5. A circuit as claimed in
first and second transistors having respective first terminals connected to a same node, respective second terminals connected respectively to said second supply line and to a reference potential line, and respective control terminals connected to each other and to said first supply line; an inverter element having an input connected to said node, and an output; and a third transistor having a first terminal connected to said control terminal of said switch means, and a control terminal connected to said output of said inverter element.
6. A circuit as claimed in
7. A circuit as claimed in
8. A circuit as claimed in
9. A circuit as claimed in
10. A circuit as claimed in
11. A circuit as claimed in
12. A circuit as claimed in
first and second transistors having respective first terminals connected to a same node, respective second terminals connected respectively to said second supply line and to a reference potential line, and respective control terminals connected to each other and to said first supply line; an inverter element having an input connected to said node, and an output; and a third transistor having a first terminal connected to said control terminal of said switch means, and a control terminal connected to said output of said inverter element.
13. A circuit as claimed in
15. The circuit of
16. The circuit of
an enabling transistor having a first terminal for selectively rendering the enabling transistor conductive, a second terminal, and a third terminal, the first terminal being connected to the supply voltage, the second terminal being connected to the programming voltage, and the third terminal being connected to the control terminal of the protection transistor; and an output transistor having a first terminal for selectively rendering the output transistor conductive, a second terminal, and a third terminal, the first terminal being connected to the output of the comparator, the second terminal being connected to the third terminal of the protection transistor and the third terminal being connected to a reference potential.
17. The circuit of
a circuit stage having a first input connected to the programming voltage, a second input connected to the supply voltage and an output connected to the control terminal of the protection transistor, the output of the circuit stage placing the protection transistor in a state which decouples the programming voltage from the device if the difference between the programming voltage and the supply voltage is less than the predefined threshold voltage.
20. The method of
disabling a supply of the second voltage to the device when the first operative voltage is less than the reference voltage and a difference between the first and second operative voltages is less than a predetermined value; enabling a supply of the second voltage to the device when the first operative voltage is greater than the reference voltage and the difference between the first and second operative voltages is less than the predetermined value; and enabling a supply of the second voltage to the device when the first operative voltage is greater than the reference voltage and the difference between the first and second operative voltages is greater than the predetermined value.
21. The method of
|
The present invention relates to a protection circuit for devices comprising nonvolatile memories.
In devices comprising nonvolatile memories, such as EPROMs, EEPROMs and flash-EEPROMs, the content of the memory must be protected in the event supply VCC is inadvertently cut off in the presence of programming voltage VPP, or in the event voltage VPP is applied before supply voltage VCC when the device is turned on.
For this purpose, protection circuits are provided comprising comparators, which compare supply voltage VCC with a reference voltage and, if the supply voltage is lower than the reference voltage, disable supply of voltage VPP to prevent damaging the memory or altering the stored data.
A drawback of known circuits of the aforementioned type is the high static consumption of the comparators employed.
It is an object of the present invention to provide a protection circuit which protects the integrity of data stored in nonvolatile memories while providing for low power consumption.
FIG. 1 is a circuit diagram of the preferred embodiment of the present invention.
According to the present invention, there is provided a protection circuit for devices comprising nonvolatile memories, as claimed in claim 1.
A preferred, non-limiting embodiment of the present invention will be described by way of example with reference to FIG. 1, which shows a simplified electric diagram of the circuit according to the present invention.
The circuit according to the present invention, indicated as a whole by 1 in FIG. 1, receives voltages VCC (the supply voltage) and VPP (the programming voltage of the memory) supplied respectively over lines 8 and 9. The circuit substantially comprises a comparator 2, a reference voltage VREF source 3 (both supplied with voltage VPP via respective P channel MOS transistors 4, 5), and an inverter 6 supplied with voltage VPP and controlled by supply voltage VCC.
More specifically, comparator 2 comprises a pair of N channel MOS transistors 10, 11 having the control terminals connected respectively to VCC supply line 8 and voltage source 3; the source terminals of the pair of N channel MOS transistors connected to each other and to a constant current source 12 (in this case, a MOS transistor); and the drain terminals connected (at nodes 13, 14) to the inputs of a current mirror 15 formed by two P channel MOS transistors 16, 17. Transistor 16 connected to transistor 10 of comparator 2 is diode-connected, with its control terminal shortcircuited with its drain terminal connected to node 13. The source terminals of transistors 16 and 17 are mutually connected at node 18, which is connected via transistor 4 to line 9 supplying voltage VPP. The drain terminals of transistors 16 and 17 are connected to nodes 13 and 14, respectively. Transistor 4 has its control terminal connected to line 8 (VCC). the drain terminal connected to node 18, and the source terminal and substrate connected to line 9. The drawing also shows the connection between the substrate of transistors 16, 17 and line 9 (VPP).
In the embodiment shown, voltage source 3 is formed by the series connection of two diode-connected N channel MOS transistors 22 and 23 connected between node 24, to which the control terminal of transistor 11 is connected, and ground (also defined as reference potential line). Node 24 is also connected to line 9 via transistor 5, which has its control terminal connected to voltage VCC, the drain terminal connected to node 24, and the source terminal and substrate connected to line 9.
The output node 14 of comparator 2 is connected to the control terminal of an N channel MOS output transistor 27 having the source terminal grounded and the drain terminal connected, via node 28, to the drain terminal of a P channel MOS transistor 29, which has its control terminal connected to VCC line 8, and the source terminal and substrate connected to VPP line 9. Transistors 27 and 29 combine to form an inverter.
Node 28 is connected to the output of inverter 6 and to the control terminal of a P channel MOS transistor 30 operating as a switch. More specifically, transistor 30 has its source terminal and substrate connected to line 9, and its drain terminal (defining output 31 of circuit 1) connected to the device 32 for protection (including a memory not shown).
Inverter 6 comprises a pair of opposite-channel transistors 35, 36 series connected to each other; an inverter 37; and an N channel MOS transistor 38 operating as a switch. More specifically, transistor 35 is of P channel type, with the source terminal and substrate connected to line 9; the drain terminal connected to the drain terminal of transistor 36 at node 40; and the control terminal connected to the control terminal of transistor 36 and to VCC line 8. Transistor 36, which is of N channel type, has its source terminal grounded. Inverter 37 is located between node 40 and the control terminal of transistor 38. Transistor 38 has its source terminal grounded and its drain terminal connected to node 28.
Operation of the above circuit will now be described with reference to three possible states of supply lines 8 and 9. In the following description, the threshold voltage of the PMOS transistors (the voltage between the source terminal and control terminal, over and above which the transistor is turned on) is indicated by VTH.
The first possible state of supply lines 8 and 9 is defined by the following relationships:
VCC <VREF and VCC <VPP -VTH (i.e. VPP -VCC >VTH)
This situation is typically encountered when, for any reason, the supply voltage (but not the programming voltage) is cut off, or, when the device is turned on, the programming voltage increases more rapidly than the supply voltage, in which case, supply of the programming voltage must be prevented.
In the above situation, transistor 35 is on; transistor 36 is off; node 40 is high; the output of inverter 37 is low, so that transistor 38 is off; transistors 4, 5 and 29, supply comparator 2, and voltage source 3 are on; and, since the control terminal of transistor 10 is at a lower potential (VCC) than node 24 (VREF), output 14 of comparator 2 is low, transistor 27 is off, node 28 presents roughly the same potential as line 9 (VPP), and transistor 30 is off, thus disabling supply of VPP.
The second possible state of supply lines 8 and 9 is defined by the following relationships:
VCC >VREF and VCC >VPP -VTH (i.e. VPP -VCC <VTH)
This is the normal operating situation encountered for more frequently than the others (e.g., when reading the memory of device 32) and in which static consumption of comparator 2 is undesirable.
In the above situation, transistor 35 is off; transistor 36 is on; node 40 is low; the output of inverter 37 is high; transistor 38 is on, thus grounding node 28; transistor 30 is on, thus enabling supply of VPP ; and transistors 4, 5 and 29 are off so that comparator 2 is also off and absorbs no current. The state of transistor 27 is unknown.
The third possible state of supply lines 8 and 9 is defined by the following relationships:
VREF <VCC <VPP -VTH (i.e. VPP -VCC >VTH)
This is a special condition used, for example, when programming the memory, and wherein the supply voltage is higher than the reference voltage, but the programming voltage is much higher than the supply voltage.
In the above condition, transistor 35 is on; node 40 is high; the output of inverter 37 is low, so that transistor 38 is off; transistors 4, 5 and 29, supply voltage source 3 and comparator 2 are on; since the control terminal of transistor 10 is at a higher potential (VCC) than node 24 (VREF), output 14 of comparator 2 is high; transistor 27 is on and maintains a low voltage at node 28; and transistor 30 is on, thus enabling supply of programming voltage VPP to output 31 of the circuit and to device 32.
As this is a special operating condition lasting only a small portion of the overall operating time of the memory, consumption by comparator 2 is acceptable.
When both VCC and VPP are low, transistor 30 can be either on or off depending on the specific properties of the transistors selected when designing the circuit of FIG. 1. As a low VPP value, however, in no way endangers device 32, the state of circuit 1 is of little importance.
The advantages of the circuit according to the present invention will be clear from the foregoing description. Firstly, it provides for detecting situations endangering the device and due to the supply voltage being cut off in the presence of programming voltage, or due to the programming voltage rising more rapidly as compared with the supply voltage when the device is turned on. Secondly, under normal operating conditions, static consumption of the comparator is zero, thus eliminating any consumption and associated dissipation problems. In any case, the circuit according to the present invention provides for correct supply of the programming voltage as determined by the operating conditions.
Finally, the solution described is straightforward in design, provides for troublefree implementation and integration, and presents a high degree of reliability in any situation.
Those skilled in the art will appreciate that changes may be made to the circuit described and illustrated herein without, however, departing from the scope of the present invention. In particular, implementation of the components may differ as compared with that described, e.g., instead of being MOS types, the transistors may consist of bipolar devices.
Patent | Priority | Assignee | Title |
5801520, | Nov 10 1994 | Infineon Technologies AG | Supply voltage switching apparatus |
7209554, | Oct 24 2001 | Ciena Corporation | Ringing controller |
Patent | Priority | Assignee | Title |
4975878, | Jan 28 1988 | National Semiconductor | Programmable memory data protection scheme |
4975883, | Mar 29 1990 | Intel Corporation | Method and apparatus for preventing the erasure and programming of a nonvolatile memory |
5199032, | Sep 04 1990 | Freescale Semiconductor, Inc | Microcontroller having an EPROM with a low voltage program inhibit circuit |
5371709, | Apr 01 1993 | Microchip Technology Incorporated | Power management system for serial EEPROM device |
EP53273, | |||
EP454170, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
May 26 1994 | PEZZINI, SAVERIO | SGS-THOMSON MICROELECTRONICS S R L | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 007063 | /0113 | |
Jun 27 1994 | SGS-Thomson Microelectronics S.r.l. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Sep 19 1996 | ASPN: Payor Number Assigned. |
May 15 2000 | M183: Payment of Maintenance Fee, 4th Year, Large Entity. |
Apr 20 2004 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
May 02 2008 | ASPN: Payor Number Assigned. |
May 02 2008 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
May 02 2008 | RMPN: Payer Number De-assigned. |
Date | Maintenance Schedule |
Nov 26 1999 | 4 years fee payment window open |
May 26 2000 | 6 months grace period start (w surcharge) |
Nov 26 2000 | patent expiry (for year 4) |
Nov 26 2002 | 2 years to revive unintentionally abandoned end. (for year 4) |
Nov 26 2003 | 8 years fee payment window open |
May 26 2004 | 6 months grace period start (w surcharge) |
Nov 26 2004 | patent expiry (for year 8) |
Nov 26 2006 | 2 years to revive unintentionally abandoned end. (for year 8) |
Nov 26 2007 | 12 years fee payment window open |
May 26 2008 | 6 months grace period start (w surcharge) |
Nov 26 2008 | patent expiry (for year 12) |
Nov 26 2010 | 2 years to revive unintentionally abandoned end. (for year 12) |