Voltage detecting circuit
Technical field
The present invention relates to a kind of SIC (semiconductor integrated circuit), particularly relate to a kind of voltage detecting circuit (VD).
Background technology
In voltage detecting circuit, be save area, low-voltage alarm circuit and alarm for high voltage circuit often share a resistance string, as shown in Figure 1, are the structural representation of the resistance detecting circuit in existing voltage detecting circuit and resistance string.Resistance detecting circuit in Fig. 1 is serially connected with by resistance R1, R2, R3, R4, R5 and R6 and detects between voltage source V0 and ground.Resistance R1, R2, R3, R4, R5 and R6 carry out dividing potential drop to described detection voltage source V0, the dividing potential drop of each resistance joint can be taken out respectively, as dividing potential drop V1 and dividing potential drop V2 can be taken out in Fig. 1, dividing potential drop V1 and dividing potential drop V2 is linked into respectively follow-up comparator circuit and just can realizes the detection to described detection voltage source V0.
In available circuit, the device of two kinds of operating voltage can be included in same circuit simultaneously, be respectively high tension apparatus and low-voltage device.With card class applicating example, usually use low pressure 1.8V device, the technique of high pressure 5V device.Need to detect high pressure 6V voltage, low pressure 1.5V voltage in voltage detecting, during detection, voltage detecting circuit all reporting to the police higher than during 6V and lower than during 1.5V, and can not be reported to the police between 6V and 1.5V.Whether as shown in Figure 1, suppose that described resistance R1 to R6 is identical, then when described detection voltage source V0 is 6V, described dividing potential drop V2 is 1V, now described dividing potential drop V2 can be linked in follow-up comparer to detect high pressure and go beyond the scope; Whether, when described detection voltage source V0 is 1.5V, described dividing potential drop V1 is 1V, now described dividing potential drop V1 can be linked in follow-up comparer to detect low pressure and go beyond the scope.If at same voltage detecting circuit, respectively a resistance detecting circuit is all adopted to high pressure and low pressure, then can not interact between high pressure and low pressure detection, but greatly can increase the area that circuit takies on chip like this, thus cost can be made to improve.
In order to reduce the area of circuit, a kind of existing method shares a resistance detecting circuit by the detection of high pressure and low pressure, but this shared method has a shortcoming to be: as shown in Figure 1, in order to realize the detection to low pressure, dividing potential drop V1 must be connected in the follow-up comparer for detecting low pressure; In order to realize the detection to high pressure, the dividing potential drop V2 of same resistance string must be connected in the follow-up comparer for detecting high pressure simultaneously.When described detection voltage source V0 be low pressure as 1.5V time, dividing potential drop V1 is 1V, dividing potential drop V2 is 0.25V, and these two magnitudes of voltage normally work without any impact on follow-up comparer.When described detection voltage source V0 be high pressure as 6V time, dividing potential drop V1 is 4V, dividing potential drop V2 is 1V, although the follow-up comparer for detecting high pressure can normally work, but because dividing potential drop V1 is 4V, the operating voltage of the follow-up comparer for detecting low pressure could normally work when must be greater than 4V, namely the comparer for detecting low pressure must select high pressure as 5V element manufacturing, and 5V device directly causes comparer speed slow, and area is large.The occasion of reporting to the police needing quick low voltage can only use two to go here and there independently resistance string, but has rolled up again area like this.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of voltage detecting circuit, can reduce the area occupied of circuit on chip, and can improve the speed of low pressure alarming when not increasing power consumption.
For solving the problems of the technologies described above, the invention provides a kind of voltage detecting circuit, comprise a resistance detecting circuit, described resistance detecting circuit is made up of the resistance of multiple series connection and is connected between detection voltage source and ground, described detection voltage source is the first voltage source or the second voltage source, and the first voltage is less than the second voltage; The resistance in series of described resistance detecting circuit is carried out dividing potential drop to described detection voltage source and is taken out two dividing potential drops respectively as the first voltage detecting end and the second voltage detecting end; Described first voltage detecting end is connected to a voltage protection circuit; Described voltage protection circuit comprises:
One operating voltage is greater than the first NMOS tube of described second voltage, and the drain electrode of described first NMOS tube is connected with described first voltage detecting end, and the grid of described first NMOS tube is connected with one first voltage source; The source electrode of described first NMOS tube is connected to an input end of the first comparer; Another input termination reference voltage of described first comparer, the output terminal of described first comparer exports the first voltage alarm, and the working power of described first comparer connects described first voltage source.
One transistor series connection structure, described transistor series connection anatomical connectivity is between the source electrode and ground of described first NMOS tube; Described transistor series connection structure is by the structure that is together in series of the second PMOS of multiple grid and drain electrode short circuit and the threshold voltage sum that the number of described second PMOS meets each described second PMOS is greater than the difference of the threshold voltage of described first voltage source and described first NMOS tube; Or described transistor series connection structure is by the structure that is together in series of the 3rd NMOS tube of multiple grid and drain electrode short circuit and the threshold voltage sum that the number of described 3rd NMOS tube meets each described 3rd NMOS tube is greater than the difference of the threshold voltage of described first voltage source and described first NMOS tube.
Described second voltage detecting end is connected to an input end of the second comparer; Reference voltage described in another input termination of described second comparer, the output terminal of described second comparer exports the second voltage alarm; The working power of described second comparer connects described first voltage source.
The present invention has following beneficial effect:
1, the present invention is by arranging a voltage protection circuit, can realize sharing same resistance detecting circuit when detecting two different voltage sources, thus greatly can reduce circuit area.
2, the present invention is by arranging a voltage protection circuit; can realize when detection voltage source is the second higher voltage; the higher partial pressure of the first voltage detecting end is released; thus enable the first comparer of the first lower voltage adopt low-voltage device to make, thus low pressure alarming speed can be provided and further reduce circuit area.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation:
Fig. 1 is the structural representation of the resistance detecting circuit in existing voltage detecting circuit;
Fig. 2 is the structural representation of embodiment of the present invention voltage detecting circuit.
Embodiment
As shown in Figure 2, be the structural representation of embodiment of the present invention voltage detecting circuit.Embodiment of the present invention voltage detecting circuit comprises:
One resistance detecting circuit, described resistance detecting circuit is made up of the resistance of multiple series connection and is connected between detection voltage source and ground, described detection voltage source is the first voltage source vpwr or the second voltage source vpwr5, first voltage is less than the second voltage, namely the first voltage is low pressure, second voltage is high pressure, and low pressure such as 1.8V is supplied to low-voltage device, and high pressure such as 5V is supplied to high tension apparatus.The resistance in series of described resistance detecting circuit is carried out dividing potential drop to described detection voltage source and is taken out two dividing potential drops respectively as the first voltage detecting end netl and the second voltage detecting end neth; The resistance 11,12,13,14,15 and 16 that the resistance value of 6 series connection is identical is illustrated altogether in Fig. 2, in side circuit, the quantity of resistance and resistance value can change, but meet and make the dividing potential drop exported from the first voltage detecting end netl can be used in the follow-up detection to the first voltage source vpwr and low-tension supply, make the dividing potential drop exported from the second voltage detecting end neth can be used in the follow-up detection to the second voltage source vpwr5 and high-voltage power supply.In embodiments of the present invention, when described detection voltage source is the first voltage source vpwr and value is 1.5V, the dividing potential drop that described first voltage detecting end netl exports is 1V; When described detection voltage source is the second voltage source vpwr5 and value is 6V, the dividing potential drop that the dividing potential drop that described second voltage detecting end neth exports is 1V, described first voltage detecting end netl exports simultaneously is 4V.
Described first voltage detecting end netl is connected to a voltage protection circuit; Described voltage protection circuit comprises:
One operating voltage is greater than the first NMOS tube 1 of described second voltage, and described first NMOS tube 1 adopts operating voltage to be the Native nmos device of 5V in embodiments of the present invention.The drain electrode of described first NMOS tube 1 is connected with described first voltage detecting end netl, and the grid of described first NMOS tube 1 is connected with one first voltage source vpwr; The source electrode of described first NMOS tube 1 is connected to an input end of the first comparer 5; Another input termination reference voltage Vref of described first comparer 5, the output terminal LVIOUT of described first comparer 5 exports the first voltage alarm, and the working power of described first comparer 5 meets described first voltage source vpwr.In the embodiment of the present invention, reference voltage Vref is set to 1V.
One transistor series connection structure, described transistor series connection anatomical connectivity is between the source electrode and ground of described first NMOS tube 1; Described transistor series connection structure is by the structure that is together in series of the second PMOS 3 of multiple grid and drain electrode short circuit and the threshold voltage sum that the number of described second PMOS 3 meets each described second PMOS 3 is greater than the difference of the threshold voltage of described first voltage source vpwr and described first NMOS tube 1; Or described transistor series connection structure is by the structure that is together in series of the 3rd NMOS tube 4 of multiple grid and drain electrode short circuit and the threshold voltage sum that the number of described 3rd NMOS tube 4 meets each described 3rd NMOS tube 4 is greater than the difference of the threshold voltage of described first voltage source vpwr and described first NMOS tube 1.
Described second voltage detecting end neth is connected to an input end of the second comparer 2; Reference voltage Vref described in another input termination of described second comparer 2, the output terminal HVIOUT of described second comparer 2 exports the second voltage alarm; The working power of described second comparer 2 meets described first voltage source vpwr.
The principle of work of embodiment of the present invention voltage detecting circuit is as follows:
1, when low pressure alarming, as when as described in detection voltage source be the first voltage source vpwr and value is can low pressure alarming during 1.5V, now, the dividing potential drop that described first voltage detecting end netl exports is 1V, described first NMOS tube 1 i.e. 5V NATIVE NMOS tube can this analog voltage of normal transmission 1V, and the threshold value of multiple transistor of described transistor series connection structure and described second PMOS 3 or described 3rd NMOS tube 4 and be greater than reference voltage vref, so described transistor series connection structure can not conducting thus can not cause electric current arrive ground path.Compare so the voltage that finally described first voltage detecting end netl exports can output to described first comparer 5 normally, thus the first voltage alarm and low pressure alarming signal can be obtained.
2, when alarm for high voltage, as when as described in detection voltage source be the second voltage source vpwr5 and value for can alarm for high voltage be produced during 6V, now, the dividing potential drop that the dividing potential drop that described second voltage detecting end neth exports is 1V, described first voltage detecting end netl exports simultaneously is 4V.The voltage that described second voltage detecting end neth exports can output to described second comparer 2 normally and compare, thus can obtain the second voltage alarm and alarm for high voltage signal.
And by the setting of voltage protection circuit, 4V dividing potential drop that described first voltage detecting end netl exports can be avoided the impact of described first comparer 5.Reason is:
The 4V voltage of described first voltage detecting end netl can make the voltage of the input end netl2 of described first comparer 5 raise, thus causes the shutoff of described NATIVE NMOS tube 1.Also high resistant is formed in the path over the ground of described transistor series connection structure composition, namely the 4V voltage of described first voltage detecting end netl passes through the voltage of the input end netl2 of two described first comparers 5 of high resistance sectional pressures generation of NATIVE NMOS tube 1 and described transistor series connection structure, when the voltage of input end netl2 is higher, then the high resistant resistance of NATIVE NMOS tube 1 formation is higher, the resistance of the high resistant that described transistor series connection structure is formed is lower, and finally form balance, thus input end netl2 clamper at below 2V, and only receive in described transistor series connection structure peace level electric leakage.
Above by specific embodiment to invention has been detailed description, but these are not construed as limiting the invention.Without departing from the principles of the present invention, those skilled in the art also can make many distortion and improvement, and these also should be considered as protection scope of the present invention.