Integrated circuit temperature sensing circuit and calibration steps thereof
Technical field
The present invention relates to semiconductor technology, particularly a kind of integrated circuit temperature sensing circuit and calibration steps thereof.
Background technology
In order to guarantee that integrated circuit is operated under the safe temperature, need to detect the temperature in the integrated circuit, when exceeding the safe temperature scope, the temperature in the integrated circuit provides alerting signal.For this reason, usually temperature sensing circuit need be set in integrated circuit, principle as shown in Figure 1, comprise a positive temperature coefficient (PTC) current source, one resistance string R2, one negative temperature coefficient potential circuit, two comparers, described positive temperature coefficient (PTC) current source meets a resistance string R2, on described resistance string, be provided with tap of safe high temperature resistance string and the tap of safe low-temperature resistance string, one of described two comparer are as the low temperature comparer, one as the high temperature comparer, the described negative temperature coefficient potential circuit of described high temperature comparer positive input termination output terminal, and negative input end connects the tap of safe high temperature resistance string, described low temperature comparer negative input end connects described negative temperature coefficient potential circuit output terminal, the tap of positive input termination safety low-temperature resistance string; Under design point, when the temperature in the integrated circuit is safe high temperature, voltage Vptath in the tap of safe high temperature resistance string equals the voltage Vbe of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is lower than safe high temperature, voltage Vptath in the tap of safe high temperature resistance string is lower than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is higher than safe high temperature, voltage Vptath in the tap of safe high temperature resistance string is higher than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, described high temperature comparer output this moment high temperature alarm signal, when the temperature in the integrated circuit is safe low temperature, voltage Vptatl in the tap of safe low-temperature resistance string equals the voltage Vbe of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is higher than safe low temperature, voltage Vptatl in the tap of safe low-temperature resistance string is higher than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is lower than safe low temperature, voltage Vptatl in the tap of safe low-temperature resistance string is lower than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, described low temperature comparer output this moment low-temperature warning signal.
But owing to be subjected to the influence of process deviation, inevitably can bring the offset error of temperature sensing circuit detected temperatures, detected temperatures accurately, need calibrate it, for this reason, serial connection one semifixed resistor r between described resistance string R2 is with ground, described integrated circuit temperature sensing circuit can be by changing external fine setting control signal fine setting (trimming) value, change the resistance of described semifixed resistor r, to calibrate.Calibration Method is under safety high-pressure temperature and safe low pressure temperature, by changing external fine setting control signal fine setting (trimming) value, check whether described two comparers output has logic level change, thereby determine suitable fine setting (trimming) value, resistance to described semifixed resistor r is finely tuned, and realizes the calibration of temperature sensing circuit.But such calibration has two problems: the one, and the temperature that detect is low often to reach-40 ℃ safe low pressure temperature or up to 120 ℃ of safety high-pressure temperature etc., such temperature to be on board, tested and very big difficulty can be brought, even may not test, the 2nd, if a plurality of detected temperatures are arranged, must under each temperature, test, bring very big workload, increased testing cost.
One common integrated circuit temperature sensing circuit as shown in Figure 2, integrated circuit temperature sensing circuit among Fig. 2, comprise metal-oxide-semiconductor proportional current mirror, operational amplifier A 1, the one PNP manages Q1, the 2nd PNP manages Q2, the 3rd PNP manages Q3, first resistance R 1, resistance string R2, semifixed resistor r, two comparers, described MOS proportional current mirror comprises the PMOS first metal-oxide-semiconductor MP1, the PMOS second metal-oxide-semiconductor MP2, PMOS the 3rd metal-oxide-semiconductor MP3, PMOS the 4th metal-oxide-semiconductor MP4, the first metal-oxide-semiconductor MP1 wherein, the second metal-oxide-semiconductor MP2, the 3rd metal-oxide-semiconductor MP3, the breadth length ratio example of the 4th metal-oxide-semiconductor MP4 is 1: 1: k: 1, k is a proportionality constant, their source electrode all connects voltage source, their grid all connects together and connects described operational amplifier output terminal, the drain electrode of the first metal-oxide-semiconductor MP1 connects an end of described operational amplifier A 1 positive input terminal and first resistance R 1, the emitter of another termination the one PNP pipe Q1 of first resistance R 1, the drain electrode of the second metal-oxide-semiconductor MP2 connects the emitter of described operational amplifier A 1 negative input end and the 2nd PNP pipe Q2, the base stage of the one PNP pipe Q1 and the 2nd PNP pipe Q2, grounded collector, the drain electrode of PMOS the 3rd metal-oxide-semiconductor MP3 connects described resistance string R2 one end, described semifixed resistor r one end of another termination of described resistance string R2, described semifixed resistor r other end ground connection, the drain electrode output positive temperature coefficient (PTC) electric current of described PMOS the 3rd metal-oxide-semiconductor MP3, PMOS the 4th metal-oxide-semiconductor MP4 drain electrode connects the 3rd PNP pipe Q3 emitter, base stage and the grounded collector of the 3rd PNP pipe Q3, the negative temperature coefficient voltage Vbe of the about 0.7V of emitter output of described the 3rd PNP pipe Q3.Described integrated circuit temperature sensing circuit, the external fine setting control signal of energy changes the resistance that fine setting control signal trim values can change described semifixed resistor r.Described resistance string R2 is provided with tap of safe high temperature resistance string and the tap of safe low-temperature resistance string, one of described two comparer are as the low temperature comparer, one as the high temperature comparer, described high temperature comparer negative input end connects the safe high temperature resistance string tap of described resistance string R2, the emitter of described the 3rd PNP pipe of positive input termination Q3, the safe low-temperature resistance string tap of the described resistance string R2 of described low temperature comparer positive input termination, negative input end connect the emitter of described the 3rd PNP pipe Q3.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of integrated circuit temperature sensing circuit and calibration steps thereof, and it calibrates convenient.
For solving the problems of the technologies described above, a kind of integrated circuit temperature sensing circuit of the present invention comprises a positive temperature coefficient (PTC) current source, a resistance string, a semifixed resistor, a negative temperature coefficient potential circuit, a selected on-off circuit, low temperature comparer and high temperature comparer;
Described positive temperature coefficient (PTC) current source connects described resistance string one end, described semifixed resistor one end of another termination of described resistance string, described semifixed resistor other end ground connection, on described resistance string, be provided with the tap of safe high temperature resistance string, the tap of safe low-temperature resistance string, the tap of calibration high temperature resistance string, the tap of calibration low-temperature resistance string, the tap of safe high temperature resistance string is arrived the resistance of described semifixed resistor end less than safety low-temperature resistance string tap resistance to described semifixed resistor end less than calibrating the resistance of high temperature resistance string tap to described semifixed resistor end less than the tap of calibration low-temperature resistance string to the resistance of described semifixed resistor end, the tap of described safe high temperature resistance string, the tap of calibration high temperature resistance string connects described high temperature comparer negative input end through described selected on-off circuit, the tap of described safe low-temperature resistance string, the tap of calibration low-temperature resistance string connects described low temperature comparer positive input terminal through described selected on-off circuit, described negative temperature coefficient potential circuit output termination described high temperature comparer positive input terminal and low temperature comparer negative input end;
Described integrated circuit temperature sensing circuit, the external fine setting control signal of energy changes the resistance that external fine setting control signal trim values can change described semifixed resistor,
Described integrated circuit temperature sensing circuit, the external selector switch control signal of energy, can control described selected on-off circuit by external selector switch control signal and connect described high temperature comparer negative input end and calibration high temperature resistance string tap and be connected described low temperature comparer positive input terminal and the tap of calibration low-temperature resistance string, perhaps control described selected on-off circuit and connect described high temperature comparer negative input end with the tap of safe high temperature resistance string and be connected described low temperature comparer positive input terminal and the tap of safe low-temperature resistance string.
Under design point, when the temperature in the integrated circuit is safe high temperature, voltage in the tap of safe high temperature resistance string equals the voltage of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is safe low temperature, voltage in the tap of safe low-temperature resistance string equals the voltage of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is calibration high temperature, voltage in the tap of calibration high temperature resistance string equals the voltage of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit was calibration low temperature, the voltage in the tap of calibration low-temperature resistance string equaled the voltage of described negative temperature coefficient potential circuit output terminal.
The present invention also provides a kind of calibration steps of described integrated circuit temperature sensing circuit, calibrates the tap of low-temperature resistance string by the selector switch control signal control calibration high temperature resistance string tap in the external world with the connection of high temperature comparer negative input end, control and connects with low temperature comparer positive input terminal; Under calibration high temperature, make described high temperature comparer output high temperature alarm signal, thereby determine a calibration high temperature trim values by the trim values that changes external fine setting control signal; Under calibration low temperature, make described low temperature comparer output low-temperature warning signal by the trim values that changes external fine setting control signal, thereby determine a calibration low temperature trim values, described calibration low temperature trim values and calibration high temperature trim values are averaged, as trim values to described semifixed resistor, resistance to described semifixed resistor is finely tuned, and realizes the calibration to the integrated circuit temperature sensing circuit.
Calibration high temperature is lower than safe high temperature, and calibration low temperature is higher than safe low temperature, and calibration high temperature is higher than calibration low temperature.
Integrated circuit temperature sensing circuit of the present invention, the resistance string that connects the positive temperature coefficient (PTC) current source is provided with the tap of safe high temperature resistance string, the tap of safe low-temperature resistance string, the tap of calibration high temperature resistance string, the tap of calibration low-temperature resistance string, and selected on-off circuit is set, when needs carry out timing to the integrated circuit temperature sensing circuit, selector switch control signal control calibration high temperature resistance string tap by the external world connects with high temperature comparer negative input end, the tap of control calibration low-temperature resistance string connects with low temperature comparer positive input terminal, under calibration high temperature, make described high temperature comparer output high temperature alarm signal, thereby determine calibration high temperature fine setting (trimming) value by the trim values that changes external fine setting control signal; Under calibration low temperature, make described low temperature comparer output low-temperature warning signal by the trim values that changes external fine setting control signal, thereby determine calibration low temperature fine setting (trimming) value, described calibration low temperature fine setting (trimming) value and calibration high temperature fine setting (trimming) value are averaged, as trim values to described semifixed resistor r, resistance to described semifixed resistor r is finely tuned, and realizes the calibration to the integrated circuit temperature sensing circuit.Because the linearity of temperature sensing circuit, after specific probe temperature calibration, the temperature that needs to detect is also calibrated thereupon, integrated circuit temperature sensing circuit of the present invention, because calibration low temperature and calibration high temperature approach the board probe temperature, thereby can realize calibration to the integrated circuit temperature sensing circuit easily.
Description of drawings
Below in conjunction with the drawings and the specific embodiments the present invention is described in further detail.
Fig. 1 is a temperature sensing circuit schematic diagram in the integrated circuit;
Fig. 2 is a common integrated circuit temperature sensing circuit figure;
Fig. 3 is an integrated circuit temperature sensing circuit schematic diagram of the present invention;
Fig. 4 is integrated circuit temperature sensing circuit one an embodiment synoptic diagram of the present invention.
Embodiment
Integrated circuit temperature sensing circuit of the present invention, as shown in Figure 3, temperature sensing circuit is set in integrated circuit, comprise a positive temperature coefficient (PTC) current source, one resistance string R2, one semifixed resistor r, one negative temperature coefficient potential circuit, one selected on-off circuit, low temperature comparer and high temperature comparer two comparers, described positive temperature coefficient (PTC) current source connects described resistance string R2 one end, described semifixed resistor r one end of another termination of described resistance string R2, described semifixed resistor r other end ground connection, on described resistance string R2, be provided with the tap of safe high temperature resistance string, the tap of safe low-temperature resistance string, the tap of calibration high temperature resistance string, the tap of calibration low-temperature resistance string, the resistance that the resistance that the tap of safe high temperature resistance string is held to described semifixed resistor r less than the tap of calibration high temperature resistance string to the resistance of described semifixed resistor r end is held to described semifixed resistor r less than the tap of safety low-temperature resistance string to the resistance of described semifixed resistor r end less than the tap of calibration low-temperature resistance string, the tap of described safe high temperature resistance string, the tap of calibration high temperature resistance string connects described high temperature comparer negative input end through selected on-off circuit, the tap of described safe low-temperature resistance string, the tap of calibration low-temperature resistance string connects described low temperature comparer positive input terminal through selected on-off circuit, described negative temperature coefficient potential circuit output termination described high temperature comparer positive input terminal and low temperature comparer negative input end;
Described integrated circuit temperature sensing circuit, the external fine setting control signal of energy changes the resistance that external fine setting control signal trim values can change described semifixed resistor r; The external selector switch control signal of energy, when needs are calibrated the integrated circuit temperature sensing circuit, connect described high temperature comparer negative input end and calibrate high temperature resistance string tap and be connected described low temperature comparer positive input terminal and the tap of calibration low-temperature resistance string by external selector switch control signal control selected on-off circuit, when needs carry out temperature detection to integrated circuit, connect described high temperature comparer negative input end with the tap of safe high temperature resistance string and be connected described low temperature comparer positive input terminal and the tap of safe low-temperature resistance string by external selector switch control signal control selected on-off circuit.
Under design point, when the temperature in the integrated circuit is safe high temperature, voltage Vptath in the tap of safe high temperature resistance string equals the voltage Vbe of described negative temperature coefficient potential circuit output terminal, voltage Vptath in the tap of safe high temperature resistance string is lower than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is higher than safe high temperature, voltage Vptath in the tap of safe high temperature resistance string is higher than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, described high temperature comparer output this moment high temperature alarm signal, when the temperature in the integrated circuit is safe low temperature, voltage Vptatl in the tap of safe low-temperature resistance string equals the voltage Vbe of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is higher than safe low temperature, voltage Vptatl in the tap of safe low-temperature resistance string is higher than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit is lower than safe low temperature, voltage Vptatl in the tap of safe low-temperature resistance string is lower than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, described low temperature comparer output this moment low-temperature warning signal.
Under design point, when the temperature in the integrated circuit is calibration high temperature, voltage Vtesth in the tap of calibration high temperature resistance string equals the voltage Vbe of described negative temperature coefficient potential circuit output terminal, when the temperature in the integrated circuit was calibration low temperature, the voltage Vtestl in the tap of calibration low-temperature resistance string equaled the voltage Vbe of described negative temperature coefficient potential circuit output terminal.Calibration high temperature is lower than safe high temperature, and calibration low temperature is higher than safe low temperature, and calibration high temperature is higher than calibration low temperature, calibrates high temperature usually a little more than the board probe temperature, and calibration low temperature is a little less than the board probe temperature.The good embodiment of one religion, the safe high temperature of integrated circuit is 120 ℃, and safe low temperature is-40 ℃, and the board probe temperature is 55 ℃, and calibration high temperature is got 62 ℃, and calibration low temperature is got 48 ℃.
When needs carry out temperature detection to integrated circuit, connect described high temperature comparer negative input end with the tap of safe high temperature resistance string and be connected described low temperature comparer positive input terminal and the tap of safe low-temperature resistance string by external selector switch control signal control selected on-off circuit.So, when integrated circuit is carried out temperature detection, when the temperature in the integrated circuit is higher than safe high temperature, voltage Vptath in the tap of described safe high temperature resistance string is higher than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, described high temperature comparer output high temperature alarm signal, when the temperature in the integrated circuit is lower than safe low temperature, voltage Vptath in the tap of described safe low-temperature resistance string is lower than the voltage Vbe of described negative temperature coefficient potential circuit output terminal, described low temperature comparer output low-temperature warning signal.
When needs are calibrated the integrated circuit temperature sensing circuit, connect described high temperature comparer negative input end and calibrate high temperature resistance string tap and be connected described low temperature comparer positive input terminal and the tap of calibration low-temperature resistance string by external selector switch control signal control selected on-off circuit; Under calibration high temperature, change external fine setting control signal fine setting (trimming) value, when described high temperature comparer is exported the high temperature alarm signal, determine calibration high temperature fine setting (trimming) value; Under calibration low temperature, when described low temperature comparer is exported the low temperature alarm signal, determine calibration low temperature fine setting (trimming) value; Described calibration low temperature fine setting (trimming) value and calibration high temperature fine setting (trimming) value are averaged,, the resistance of described semifixed resistor r is finely tuned, realize calibration the integrated circuit temperature sensing circuit as trim values to described semifixed resistor r.
Integrated circuit temperature sensing circuit of the present invention, one embodiment as shown in Figure 4, integrated circuit temperature sensing circuit among Fig. 4, comprise metal-oxide-semiconductor proportional current mirror, one operational amplifier A 1, the one PNP manages Q1, the 2nd PNP manages Q2, the 3rd PNP manages Q3, first resistance R 1, one resistance string R2, one semifixed resistor r, one selected on-off circuit, two comparers, described MOS proportional current mirror comprises the PMOS first metal-oxide-semiconductor MP1, the PMOS second metal-oxide-semiconductor MP2, PMOS the 3rd metal-oxide-semiconductor MP3, PMOS the 4th metal-oxide-semiconductor MP4, the first metal-oxide-semiconductor MP1 wherein, the second metal-oxide-semiconductor MP2, the 3rd metal-oxide-semiconductor MP3, the breadth length ratio example of the 4th metal-oxide-semiconductor MP4 is 1: 1: k: 1, k is a proportionality constant, their source electrode all connects voltage source, their grid all connects together and connects described operational amplifier output terminal, the drain electrode of the first metal-oxide-semiconductor MP1 connects an end of described operational amplifier A 1 positive input terminal and first resistance R 1, the emitter of another termination the one PNP pipe Q1 of first resistance R 1, the drain electrode of the second metal-oxide-semiconductor MP2 connects the emitter of described operational amplifier A 1 negative input end and the 2nd PNP pipe Q2, the base stage of the one PNP pipe Q1 and the 2nd PNP pipe Q2, grounded collector, the drain electrode of PMOS the 3rd metal-oxide-semiconductor MP3 connects described resistance string R2 one end, described semifixed resistor r one end of another termination of described resistance string R2, described semifixed resistor r other end ground connection, the drain electrode output positive temperature coefficient (PTC) electric current of described PMOS the 3rd metal-oxide-semiconductor MP3, PMOS the 4th metal-oxide-semiconductor MP4 drain electrode connects the 3rd PNP pipe Q3 emitter, base stage and the grounded collector of the 3rd PNP pipe Q3, the negative temperature coefficient voltage Vbe of the about 0.7V of emitter output of described the 3rd PNP pipe Q3.Described integrated circuit temperature sensing circuit, the external fine setting control signal of energy, change the resistance that fine setting control signal trim values can change described semifixed resistor r, described resistance string R2 is provided with the tap of safe high temperature resistance string, the tap of safe low-temperature resistance string, the tap of calibration high temperature resistance string, the tap of calibration low-temperature resistance string, the tap of described safe high temperature resistance string, the tap of safe low-temperature resistance string, the tap of calibration high temperature resistance string, the tap of calibration low-temperature resistance string connects described selector switch, one of described two comparer are as the low temperature comparer, one as the high temperature comparer, described high temperature comparer negative input end, the described selector switch of described low temperature comparer positive input termination, described high temperature comparer positive input terminal, described low temperature comparer negative input end connects the emitter of described the 3rd PNP pipe Q3, the external selector switch control signal of described selected on-off circuit, when needs are calibrated the integrated circuit temperature sensing circuit, connect described high temperature comparer negative input end and calibrate high temperature resistance string tap and be connected described low temperature comparer positive input terminal and the tap of calibration low-temperature resistance string by external selector switch control signal control selected on-off circuit, when needs carry out temperature detection to integrated circuit, connect described high temperature comparer negative input end with the tap of safe high temperature resistance string and be connected described low temperature comparer positive input terminal and the tap of safe low-temperature resistance string by external selector switch control signal control selected on-off circuit.
Integrated circuit temperature sensing circuit of the present invention, the resistance string that connects the positive temperature coefficient (PTC) current source is provided with the tap of safe high temperature resistance string, the tap of safe low-temperature resistance string, the tap of calibration high temperature resistance string, the tap of calibration low-temperature resistance string, and selected on-off circuit is set, when needs carry out timing to the integrated circuit temperature sensing circuit, selector switch control signal control calibration high temperature resistance string tap by the external world connects with high temperature comparer negative input end, the tap of control calibration low-temperature resistance string connects with low temperature comparer positive input terminal, under calibration high temperature, make described high temperature comparer output high temperature alarm signal, thereby determine calibration high temperature fine setting (trimming) value by the trim values that changes external fine setting control signal; Under calibration low temperature, make described low temperature comparer output low-temperature warning signal by the trim values that changes external fine setting control signal, thereby determine calibration low temperature fine setting (trimming) value, described calibration low temperature fine setting (trimming) value and calibration high temperature fine setting (trimming) value are averaged, as trim values to described semifixed resistor r, resistance to described semifixed resistor r is finely tuned, and realizes the calibration to the integrated circuit temperature sensing circuit.Because the linearity of temperature sensing circuit, after specific probe temperature calibration, the temperature that needs to detect is also calibrated thereupon, integrated circuit temperature sensing circuit of the present invention, because calibration low temperature and calibration high temperature approach the board probe temperature, thereby can realize calibration to the integrated circuit temperature sensing circuit easily.