Invention content
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of temperature sensors and temperature to examine
Survey method is low for solving temperature susceplibility in the prior art, it is difficult to the problem of improving.
In order to achieve the above objects and other related objects, the present invention provides a kind of temperature sensor, the temperature sensor
It includes at least:
Positive temperature coefficient current generating module, for generating the electric current of positive temperature coefficient;
Negative temperature parameter current generation module, for generating the electric current of negative temperature coefficient;
Voltage generating module is detected, receives the electric current of the positive temperature coefficient and the electric current of the negative temperature coefficient, and will
Detection voltage is obtained after the electric current of the positive temperature coefficient and the current subtraction of the negative temperature coefficient, the detection voltage is with treating
Testing temperature is directly proportional;
Output voltage adjusts module, connects the detection voltage generating module, for increasing the amplitude of oscillation of the detection voltage,
And then obtain the output voltage of long arc.
Preferably, the positive temperature coefficient current generating module includes the first PMOS tube, the second PMOS tube, the 3rd PMOS
Pipe, first resistor, second resistance, the first triode, the second triode and the first amplifier;
Source connection supply voltage, the drain terminal of first PMOS tube pass through the first resistor and the described 1st successively
It is grounded after pole pipe;
Source connection supply voltage, the drain terminal of second PMOS tube pass through the second resistance and the described 2nd 3 successively
It is grounded after pole pipe;
The input terminal of first amplifier connects the drain terminal of first PMOS tube and the second resistance and institute respectively
State the connecting node of the second triode, output terminal connects first PMOS tube, second PMOS tube and the 3rd PMOS
The grid end of pipe;
The source of the third PMOS tube connects supply voltage, drain terminal as the positive temperature coefficient current generating module
Output terminal.
It is highly preferred that first triode and second triode are PNP type triode;First triode
Emitter connects the first resistor, and the base stage of first triode connect with the collector of first triode and is followed by
Ground;The emitter of second triode connects the second resistance, the base stage of second triode and the two or three pole
It is grounded after the collector connection of pipe.
It is highly preferred that first triode and second triode are NPN type triode;First triode
Collector connect the first resistor, the emitter ground connection of first triode with base stage;The current collection of second triode
Pole connect the second resistance, the emitter ground connection of second triode with base stage.
It is highly preferred that the negative temperature parameter current generation module includes the second amplifier, NMOS tube and 3rd resistor;
The input terminal of second amplifier connects the connecting node of first triode and the first resistor respectively
And source, the grid end of the output terminal connection NMOS tube of the NMOS tube, the source of the NMOS tube is by third electricity
It is grounded after resistance, the output terminal of the drain terminal of the NMOS tube as the negative temperature parameter current generation module;
Or, the input terminal of second amplifier connects the connection section of second triode and the second resistance respectively
The source of point and the NMOS tube, output terminal connect the grid end of the NMOS tube, and the source of the NMOS tube passes through the third
It is grounded after resistance, the output terminal of the drain terminal of the NMOS tube as the negative temperature parameter current generation module.
Preferably, the output voltage adjustment module includes third amplifier, the 4th resistance, the 5th resistance and the 6th electricity
Resistance;One end connection detection voltage, the other end of 4th resistance connect one end of the 5th resistance, the 5th electricity
The other end of resistance connect one end of the 6th resistance, the 6th resistance other end ground connection, the third amplifier it is defeated
Enter the connecting node that end connects a reference voltage and the 5th resistance and the 6th resistance respectively, output terminal is connected to described
Between 4th resistance and the 5th resistance.
It is highly preferred that the reference voltage is temperature independent reference voltage.
It is highly preferred that the 6th resistance is variable resistance, for adjusting the absolute value of the output voltage.
Preferably, the temperature sensor further includes the analog-to-digital conversion for being connected to the output voltage adjustment module output terminal
Module, the analog-to-digital conversion module are successive approximation analog-to-digital conversion module.
In order to achieve the above objects and other related objects, the present invention also provides a kind of temperature checking method, the temperature inspections
Survey method includes at least:
A positive temperature coefficient electric current is generated, the positive temperature coefficient electric current increases with the increase for treating testing temperature;
A negative temperature parameter current is generated, the negative temperature parameter current reduces with the increase for treating testing temperature;
Detection voltage, the detection electricity are obtained after the positive temperature coefficient electric current and the negative temperature parameter current are subtracted each other
Pressure treats that testing temperature is directly proportional to described;
Increase the amplitude of oscillation of the detection voltage, obtain output voltage.
Preferably, when the positive temperature coefficient electric current is more than the negative temperature parameter current, electric current is absorbed from output terminal;
When the positive temperature coefficient electric current is less than the negative temperature parameter current, electric current is provided to output terminal;And then increase output electricity
The amplitude of oscillation of pressure.
Preferably, the output voltage meets following relational expression:
Wherein, Vout is output voltage, and VREF is reference voltage, and R5 is the 5th resistance, and R6 is the 6th resistance, and Δ VBE is
Positive temperature coefficient voltage, R1 are the impedance that the positive temperature coefficient electric current flows through, and N is the times magnification of the positive temperature coefficient electric current
Number, VBE are negative temperature coefficient voltage, and R3 is the impedance that the negative temperature parameter current flows through, and R4 is positive temperature coefficient electricity
The impedance that the difference of stream and the negative temperature parameter current flows through.
It is highly preferred that by adjusting the resistance value of the 6th resistance to adjust the absolute value of the output voltage, and then it is right
Temperature is corrected.
It is highly preferred that the reference voltage is temperature independent reference voltage.
Preferably, the susceptibility that the output voltage varies with temperature meets following relationship:
Wherein, S is the susceptibility of the output voltage, and n is two triodes for generating the positive temperature coefficient electric current
Emit junction area ratio, k is Boltzmann constant, and R1 is the impedance that the positive temperature coefficient electric current flows through, and q is the charge of electronics
Amount, N are the amplification factor of the positive temperature coefficient electric current, and R4 is the positive temperature coefficient electric current and the negative temperature parameter current
The impedance flowed through of difference, Ic is the collector current for the triode for generating negative temperature coefficient, and Is be generation negative temperature coefficient
The reverse saturation current of triode, R3 are the impedance that the negative temperature parameter current flows through.
Preferably, the temperature checking method further includes:The output voltage is converted into digital signal.
As described above, the temperature sensor and temperature checking method of the present invention, have the advantages that:
1st, the susceptibility of the output voltage of temperature sensor of the invention and temperature checking method is high.
2nd, temperature sensor and temperature checking method of the invention can adjust the direct current of output voltage by adjustable impedance
Level is linear.
3rd, the amplitude of oscillation that the output voltage of temperature sensor of the invention and temperature checking method varies with temperature is big.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.
Please refer to Fig. 2.It should be noted that the diagram provided in the present embodiment only illustrates the present invention's in a schematic way
Basic conception, component count, shape when only display is with related component in the present invention rather than according to actual implementation in schema then
And size is drawn, kenel, quantity and the ratio of each component can be a kind of random change during actual implementation, and its assembly layout
Kenel may also be increasingly complex.
As shown in Fig. 2, the present invention provides a kind of temperature sensor 2, the temperature sensor 2 includes:
Positive temperature coefficient current generating module 21, negative temperature parameter current generation module 22, detection voltage generating module 23,
Output voltage adjusts module 24 and analog-to-digital conversion module 25.
As shown in Fig. 2, the positive temperature coefficient current generating module 21 is used to generate the electric current I1 of positive temperature coefficient.
Specifically, as shown in Fig. 2, the positive temperature coefficient current generating module 21 includes the first PMOS tube PM1, second
PMOS tube PM2, third PMOS tube PM3, first resistor R1, second resistance R2, the first triode Q1, the second triode Q2 and first
Amplifier 211.The source of the first PMOS tube PM1 connects supply voltage, drain terminal connects the first resistor R1, and described first
The other end of resistance R1 connects the first triode Q1.In the present embodiment, the first triode Q1 is three pole of positive-negative-positive
Pipe, the emitter of the first triode Q1 connect the first resistor R1, the base stage of the first triode Q1 and described the
It is grounded after the collector connection of one triode Q1.Described in source connection supply voltage, the drain terminal of the second PMOS tube PM2 connects
The other end of second resistance R2, the second resistance R2 connect the second triode Q2.In the present embodiment, the described 2nd 3
Pole pipe Q2 is PNP type triode, and the emitter of the second triode Q2 connects the second resistance R2, second triode
The base stage of Q2 is grounded after being connect with the collector of the second triode Q2.In the present embodiment, first amplifier 211
Inverting input connects the drain terminal of the first PMOS tube PM1, normal phase input end connect the second triode Q2 emitter,
Output terminal connects the grid end of the first PMOS tube PM1, the second PMOS tube PM2 and the third PMOS tube PM3, and described the
The source connection supply voltage of three PMOS tube PM3, the first PMOS tube PM1, the second PMOS tube PM2 and the third
PMOS tube PM3 forms current mirror, and the drain terminal of third PMOS tube PM3 exports the positive temperature coefficient electric current I1.In actual use,
The first triode Q1 and the second triode Q2 can be NPN type triode, and collector connect resistance, hair with base stage
Emitter grounding does not repeat one by one herein;The polarity of the input terminal of first amplifier 211 is replaceable, by increasing phase inverter
It waits devices that can realize identical logic, is not limited with the specific connection mode of the present embodiment.
As shown in Fig. 2, the negative temperature parameter current generation module 22 is used to generate the electric current I2 of negative temperature coefficient.
Specifically, as shown in Fig. 2, the negative temperature parameter current generation module 22 includes the second amplifier 221, NMOS tube
NM1 and 3rd resistor R3.The normal phase input end of second amplifier 221 connects the emitter, anti-of the second triode Q2
Phase input terminal connects the source of the NMOS tube NM1, output terminal connects the grid end of the NMOS tube NM1.The NMOS tube NM1's
Source is grounded after the 3rd resistor R3, and the drain terminal of the NMOS tube NM1 exports the negative temperature parameter current I2.In reality
Border in use, negative temperature coefficient voltage can be provided by the emitter of the first triode Q1, i.e., described second amplifier 221
Input terminal can connect the emitter of the first triode Q1 and the source of the NMOS tube NM1 respectively, using the present embodiment as
Limit;The polarity of the input terminal of second amplifier 221 is replaceable, and identical patrol can be realized by increasing the devices such as phase inverter
Volume, it is not limited with the specific connection mode of the present embodiment.
As shown in Fig. 2, the detection voltage generating module 23 receives the positive temperature coefficient electric current I1 and the negative temperature
Coefficient current I2, and detection voltage is obtained after the positive temperature coefficient electric current I1 and the negative temperature parameter current I2 are subtracted each other,
The detection voltage is to treating that testing temperature is directly proportional.
Specifically, in the present embodiment, the positive temperature coefficient current generating module 21 and the negative temperature parameter current
The output terminal of generation module 22, which is connected, can be realized the phase of the positive temperature coefficient electric current I1 and the negative temperature parameter current I2
Subtracting, the drain terminal of the third PMOS tube PM3 and the NMOS tube NM1 are to export the voltage directly proportional to the two difference, therefore,
In the present embodiment, it is not independently arranged subtraction circuit, can effectively simplify circuit structure, saves cost.In actual use, it can receive
Have after the positive temperature coefficient electric current I1 and the negative temperature parameter current I2 by subtracter etc. the circuit of subtraction function with
It realizes subtracting each other for the two, does not repeat one by one herein, those skilled in the art's adaptability on the basis of disclosure of the present invention
The specific embodiment of the present invention is adjusted to realize the design of the present invention.
As shown in Fig. 2, the output voltage adjustment module 24 connects the detection voltage generating module 23, for increasing
The amplitude of oscillation of detection voltage is stated, and then obtains the output voltage of long arc.
Specifically, as shown in Fig. 2, the output voltage adjustment module 24 include third amplifier 241, the 4th resistance R4,
5th resistance R5 and the 6th resistance R6.One end connection detection voltage of the 4th resistance R4, other end connection described the
One end of five resistance R5, the other end of the 5th resistance R5 connect one end of the 6th resistance R6, the 6th resistance R6
The other end ground connection.In the present embodiment, the positive input of the third amplifier 141 connects the second PMOS tube PM2
Drain terminal (obtain temperature independent reference voltage), inverting input be connected to the 5th resistance R5 and the 6th resistance
Between R6, output terminal is connected between the 4th resistance R4 and the 5th resistance R5.In actual use, the third is put
Big device 241 can be directly connected to a generating circuit from reference voltage to obtain temperature independent reference voltage, not using the present embodiment as
It limits, based on the temperature independent reference voltage incidentally generated in the positive temperature coefficient current generating circuit 11 in the present embodiment
As the reference voltage, it can effectively simplify circuit structure, save cost;The polarity of the input terminal of the third amplifier 241 can be more
It changes, can realize identical logic by increasing the devices such as phase inverter, be not limited with the specific connection mode of the present embodiment.
More specifically, in the present embodiment, the 6th resistance R6 is variable resistance, by adjusting the 6th resistance R6
Resistance value can realize the adjusting of the absolute value to the output voltage Vout.
As shown in Fig. 2, the analog-to-digital conversion module 25 is connected to the output terminal of the output voltage adjustment module 24, it is used for
The output voltage Vout directly proportional to treating testing temperature is converted into digital signal.
Specifically, as shown in Fig. 2, the analog-to-digital conversion module 25 is successive approximation analog-to-digital conversion module, concrete structure
It does not repeat one by one herein.
Such as Fig. 2 institutes, the present invention also provides a kind of temperature checking methods, in the present embodiment, the temperature checking method base
It is realized in the temperature sensor 2, including:
Step S1:Positive temperature coefficient electric current an I1, the positive temperature coefficient electric current I1 is generated with the increase for treating testing temperature and
Increase.
Specifically, first amplifier 211 makes the drain terminal electricity of the first PMOS tube PM1 by empty short empty disconnected principle
The emitter voltage VBE2 approximately equals of VBE1 and the second triode Q2 are pressed, then flowing through the electric current of the first resistor R1 expires
Foot:Pass through the first PMOS tube PM1, the second PMOS tube PM2 and the third PMOS tube PM3 structures
Into current mirror, the electric current for flowing through the first resistor R1 is mirrored onto the drain terminal of the third PMOS tube PM3, and obtains described
Positive temperature coefficient electric current I1, the positive temperature coefficient electric current I1 have the characteristic with absolute temperature is proportional to (PTAT).By setting
The breadth length ratio adjustable mirror picture electricity of the fixed first PMOS tube PM1, the second PMOS tube PM2 and third PMOS tube PM3
The amplification factor of stream, in the present embodiment, the positive temperature coefficient electric current I1 meet following relationship:Wherein, N is the amplification factor of the positive temperature coefficient electric current I1, and N is arbitrary more than zero
Number.
Step S2:Negative temperature parameter current an I2, the negative temperature parameter current I2 is generated with the increase for treating testing temperature and
Reduce.
Specifically, second amplifier 221 by empty short empty disconnected principle make the NMOS tube NM1 source voltage terminal and
Emitter voltage VBE2 (or emitter voltage VBE1 of the first triode Q1) approximately equal of the second triode Q2,
The electric current for then flowing through the 3rd resistor R3 meets:The drain terminal of the NMOS tube NM1 exports the negative temperature coefficient electricity
I2 is flowed, the negative temperature parameter current I2 has the characteristic of (CTAT) of being inversely proportional with absolute temperature.
Step S3:Detection electricity is obtained after the positive temperature coefficient electric current I1 and the negative temperature parameter current I2 are subtracted each other
Pressure, the detection voltage treat that testing temperature is directly proportional to described.
Specifically, in the present embodiment, it is described after the third PMOS tube PM3 is connected with the drain terminal of the NMOS tube NM1
The drain terminal output voltage of the third PMOS tube PM3 and NMOS tube NM1 is the positive temperature coefficient electric current I1 and the subzero temperature
Degree coefficient current I2 obtains detection voltage after subtracting each other, without setting independent circuits.
Step S4:Increase the amplitude of oscillation of the detection voltage, obtain output voltage Vout.
Specifically, the voltage at the 4th resistance R4 both ends meets following relationship, and the electricity at the 4th resistance R4 both ends
Pressure and absolute temperature is proportional to:The third is put
Big device 241 makes the voltage and reference voltage between the 6th resistance R6 and the 5th resistance R5 by empty short empty disconnected principle
VREF approximately equals, in the present embodiment, the reference voltage VREF are the drain terminal output of the second PMOS tube PM2 and temperature
Spend unrelated reference voltage;Then the voltage of 241 output terminal of third amplifier meets:Therefore institute
It states output voltage and meets following relational expression:
Wherein, Δ VBE is positive temperature coefficient voltage, is met:Δ VBE=VBE2-VBE1;VBE is negative temperature coefficient voltage,
The emitter voltage of the first triode Q1 or the second triode Q2 of the present invention can be selected.
More specifically, the DC level of the output voltage Vout can be adjusted by adjusting the resistance value of the 6th resistance R6
It is whole, and then realize the correction to temperature.
Specifically, when the positive temperature coefficient electric current I1 is more than the negative temperature parameter current I2, the third amplification
Device 241 absorbs electric current from the output terminal of the temperature sensor 2,When the positive temperature system
When number electric current I1 are less than the negative temperature parameter current I2, the third amplifier 241 is to the output terminal of the temperature sensor 2
Electric current is provided,Effective amplitude of oscillation of the output voltage Vout is able to compared to the prior art
It greatly improves.
Specifically, the positive temperature coefficient electric current I1 generations temperature susceplibility S1 is's
Voltage;The negative temperature parameter current I2 generates temperature susceplibility S2Voltage, then it is described defeated
Go out the susceptibility that voltage Vout is varied with temperature and meet following relationship:
Wherein, n is the transmitting junction area ratio for two triodes for generating the positive temperature coefficient electric current, and k is Boltzmann
Constant, q are the quantity of electric charge of electronics, and N is the amplification factor of the positive temperature coefficient electric current I1, and Ic is generate negative temperature coefficient three
The collector current of pole pipe, Is are the reverse saturation current for the triode for generating negative temperature coefficient.Compared to the temperature of the prior art
Degree susceptibility greatly promotes, and temperature susceplibility can be set by resistance value, current mirror ratio, flexibility bigger.
Step S5:The output voltage Vout is converted into digital signal.
Specifically, in the present embodiment, the output voltage Vout is converted by digital letter using the method for Approach by inchmeal
Number, so that following digital circuit handles signal.
The CMOS temperature transmitter circuit of the high temperature sensitivity of the present invention and the method for detecting temperature, generate positive temperature system
Number electric current, negative temperature parameter current, two electric currents seek difference and export the voltage to vary with temperature by impedance transformation.Voltage it is exhausted
Size can be adjusted by adjusting branch.The present invention is especially suitable for the designs of temperature sensor in integrated circuit.
In conclusion the present invention provides a kind of temperature sensor and temperature checking method, including:Positive temperature coefficient electric current produces
Raw module, for generating the electric current of positive temperature coefficient;Negative temperature parameter current generation module, for generating the electricity of negative temperature coefficient
Stream;Detect voltage generating module, receive the electric current of the positive temperature coefficient and the electric current of the negative temperature coefficient, and by it is described just
Detection voltage is obtained after the electric current of temperature coefficient and the current subtraction of the negative temperature coefficient, the detection voltage is with treating testing temperature
It is directly proportional;Output voltage adjusts module, connects the detection voltage generating module, for increasing the amplitude of oscillation of the detection voltage,
And then obtain the output voltage of long arc.Generate a positive temperature coefficient electric current, the positive temperature coefficient electric current is with treating testing temperature
Increase and increase;A negative temperature parameter current is generated, the negative temperature parameter current reduces with the increase for treating testing temperature;By institute
State and detection voltage obtained after positive temperature coefficient electric current and the negative temperature parameter current are subtracted each other, the detection voltage with it is described to be measured
Temperature is directly proportional;Increase the amplitude of oscillation of the detection voltage, obtain output voltage.The temperature sensor and temperature detecting method of the present invention
The susceptibility of the output voltage of method is high;It is linear can the DC level of output voltage to be adjusted by adjustable impedance;Output voltage with
The amplitude of oscillation of temperature change is big;Suitable for CMOS systems on chip.So the present invention effectively overcomes various shortcoming of the prior art
And has high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.