Temperature sensor circuit and temperature signal processing method
Technical field
The present invention relates to a kind of temperature sensor circuit.The invention still further relates to the method that a kind of temperature sensor circuit is handled temperature signal.
Background technology
Existing temperature sensor circuit as shown in Figure 1, comprise temperature sensing part and temperature signal conversion portion, described temperature sensing comprises that partly two-way is connected in parallel on the current source circuit between power end VDD and the ground VSS, described every road current source circuit comprises a current source and a bipolar transistor, Q4 as shown in Figure 1 or Q5, one end of described current source connects power end, the other end connects the emitter of described bipolar transistor, it is by the emitter of power end to bipolar transistor that described current source produces sense of current, and the collector of described bipolar transistor is connected with base stage and ground connection; Described temperature signal conversion portion comprises a multiplexer and an analog to digital converter, described multiplexer has two signal input parts, the emitter that connects the bipolar transistor in each current source circuit respectively, the voltage output end of described multiplexer connect the input end of analog signal V of described analog to digital converter
IN
Described emitter bipolar transistor produces voltage VBE4 and the VBE5 that is inversely proportional to absolute temperature, by the temperature signal conversion portion that voltage multiplexer and analog to digital converter constitute, the voltage signal relevant with temperature is converted to the digital signal of expression environment temperature.
According to the characteristic of bipolar transistor as can be known:
Wherein, k is a Boltzmann constant, is 1.38 * 10
-23J/K, T are absolute temperature, and q is the unit electron charge, are 1.6 * 10
-19C, I are the collector currents of bipolar transistor Q4, and Is is the saturation current of bipolar transistor, and RS is the equivalent series resistance of bipolar transistor Q4 and Q5, and p is the multiplying power of Q5 collector current size to Q4 collector current size.
The temperature signal conversion portion at first converts VBE4 and VBE5 and the proportional voltage VPTAT of absolute temperature to, and and the irrelevant reference voltage V REF of temperature.
VREF=VBE4+α·VPTAT;
Wherein α is a scale-up factor, and numerical value is determined by device property, and the temperature coefficient of VBE4 and the temperature coefficient of α VPTAT are cancelled each other, thus the irrelevant voltage VREF of generation and temperature;
ADC output digital temperature signal is:
Because there is equivalent series resistance RS in bipolar transistor, so VPTAT is not complete and absolute temperature is directly proportional, but a fixing imbalance is arranged, therefore produced thermometric error.
Summary of the invention
Technical matters to be solved by this invention provides a kind of temperature sensor circuit, and a kind of temperature sensor circuit method that temperature signal is handled, can adopt comparatively simple circuit configuration, improves the measuring accuracy of temperature sensor circuit.
For solving the problems of the technologies described above, the technical scheme of temperature sensor circuit of the present invention is, comprise temperature sensing part and temperature signal conversion portion, described temperature sensing comprises that partly three the tunnel are connected in parallel on the current source circuit between power end and the ground, described every road current source circuit comprises a current source and a PNP pipe, one end of described current source connects power end, the other end connects the emitter of described PNP pipe, it is by the emitter of power end to the PNP pipe that described current source produces sense of current, and the collector of described PNP pipe is connected with base stage and ground connection; Described temperature signal conversion portion comprises a multiplexer and an analog to digital converter, described multiplexer has three signal input parts, the emitter that connects the PNP pipe in each current source circuit respectively, the voltage output end of described multiplexer connects the input end of analog signal of described analog to digital converter.
The technical scheme of temperature signal processing method of the present invention is, described multiplexer is gathered the voltage signal in the current source circuit, and the voltage signal in three road current source circuits is respectively:
Wherein, k is a Boltzmann constant, and T is an absolute temperature, and q is the unit electron charge, I
1Be the collector current of PNP pipe in the first via current source circuit, I
S1Be the saturation current of PNP pipe, RS1 is the equivalent series resistance of PNP pipe, m
1Be the scale-up factor of the collector current of PNP pipe in the second road current source circuit with respect to the collector current of PNP pipe in the first via current source circuit; n
1Be the scale-up factor of the collector current of PNP pipe in the Third Road current source circuit with respect to the collector current of PNP pipe in the first via current source circuit;
Described multiplexer converts VBE1, VBE2 and VBE3 and the proportional voltage VPTAT of absolute temperature to, and and the irrelevant reference voltage V REF of temperature,
VREF=VBE1+α·VPTAT;
Wherein α is a scale-up factor, and numerical value is determined by device property, and the temperature coefficient of VBE1 and the temperature coefficient of α VPTAT are cancelled each other, thus the irrelevant voltage VREF of generation and temperature;
Afterwards, the output signal value of described analog to digital converter is:
The another kind of technical scheme of a kind of temperature sensor circuit of the present invention is, comprise temperature sensing part and temperature signal conversion portion, described temperature sensing comprises that partly three the tunnel are connected in parallel on the current source circuit between power end and the ground, described every road current source circuit comprises a current source and a NPN pipe, one end of described current source connects power end, the other end connects the collector of described NPN pipe, it is by the collector of power end to the NPN pipe that described current source produces sense of current, the collector of described NPN pipe is connected with base stage, the grounded emitter of described NPN pipe; Described temperature signal conversion portion comprises a multiplexer and an analog to digital converter, described multiplexer has three signal input parts, the collector that connects the NPN pipe in each current source circuit respectively, the voltage output end of described multiplexer connects the input end of analog signal of described analog to digital converter.
The another kind of technical scheme of temperature signal processing method of the present invention is, described multiplexer is gathered the voltage signal in the current source circuit, and the voltage signal in three road current source circuits is respectively:
Wherein, k is a Boltzmann constant, and T is an absolute temperature, and q is the unit electron charge, I
2Be the collector current of NPN pipe in the first via current source circuit, I
S2Be the saturation current of NPN pipe, RS2 is the equivalent series resistance of NPN pipe, m
2Be the scale-up factor of the collector current of NPN pipe in the second road current source circuit with respect to the collector current of NPN pipe in the first via current source circuit; n
2Be the scale-up factor of the collector current of NPN pipe in the Third Road current source circuit with respect to the collector current of NPN pipe in the first via current source circuit;
Described multiplexer converts VBE1, VBE2 and VBE3 and the proportional voltage VPTAT of absolute temperature to, and and the irrelevant reference voltage V REF of temperature,
VREF=VBE1+α·VPTAT;
Wherein α is a scale-up factor, and numerical value is determined by device property, and the temperature coefficient of VBE1 and the temperature coefficient of α VPTAT are cancelled each other, thus the irrelevant voltage VREF of generation and temperature;
Afterwards, the output signal value of described analog to digital converter is:
The present invention makes circuit structure still comparatively simple by having added the 3rd current source circuit, has improved the precision of temperature sensor circuit simultaneously greatly.
Description of drawings
The present invention is further detailed explanation below in conjunction with drawings and Examples:
Fig. 1 is the circuit diagram of existing temperature sensor circuit;
Fig. 2 and Fig. 3 are the circuit diagram of temperature sensor circuit of the present invention.
Embodiment
The invention discloses a kind of temperature sensor circuit, as shown in Figure 2, comprise temperature sensing part and temperature signal conversion portion, described temperature sensing comprises that partly three the tunnel are connected in parallel on the current source circuit between power end VDD and the ground VSS, described every road current source circuit comprises a current source and a PNP pipe, Q1 as shown in Figure 2, Q2 or Q3, one end of described current source connects power end, the other end connects the emitter of described PNP pipe, it is by the emitter of power end to the PNP pipe that described current source produces sense of current, and the collector of described PNP pipe is connected with base stage and ground connection; Described temperature signal conversion portion comprises a multiplexer and an analog to digital converter, described multiplexer has three signal input parts, the emitter that connects the PNP pipe in each current source circuit respectively, the voltage output end of described multiplexer connect the input end of analog signal V of described analog to digital converter
IN
The present invention also provides a kind of temperature signal processing method that adopts the said temperature sensor circuit to realize, described multiplexer is gathered the voltage signal in the current source circuit, and the voltage signal in three road current source circuits is respectively:
Wherein, k is a Boltzmann constant, and T is an absolute temperature, and q is the unit electron charge, I
1Be the collector current of PNP pipe in the first via current source circuit, I
S1Be the saturation current of PNP pipe, RS1 is the equivalent series resistance of PNP pipe, m
1Be the scale-up factor of the collector current of PNP pipe in the second road current source circuit with respect to the collector current of PNP pipe in the first via current source circuit; n
1Be the scale-up factor of the collector current of PNP pipe in the Third Road current source circuit with respect to the collector current of PNP pipe in the first via current source circuit;
Described multiplexer converts VBE1, VBE2 and VBE3 and the proportional voltage VPTAT of absolute temperature to, and and the irrelevant reference voltage V REF of temperature,
VREF=VBE1+α·VPTAT;
Wherein α is a scale-up factor, and numerical value is determined by device property, and the temperature coefficient of VBE1 and the temperature coefficient of α VPTAT are cancelled each other, thus the irrelevant voltage VREF of generation and temperature;
Afterwards, the output signal value of described analog to digital converter is:
The invention also discloses another kind of temperature sensor circuit, as shown in Figure 3, comprise temperature sensing part and temperature signal conversion portion, it is characterized in that, described temperature sensing comprises that partly three the tunnel are connected in parallel on the current source circuit between power end and the ground, described every road current source circuit comprises a current source and a NPN pipe, one end of described current source connects power end, the other end connects the collector of described NPN pipe, it is by the collector of power end to the NPN pipe that described current source produces sense of current, the collector of described NPN pipe is connected with base stage, the grounded emitter of described NPN pipe; Described temperature signal conversion portion comprises a multiplexer and an analog to digital converter, described multiplexer has three signal input parts, the collector that connects the NPN pipe in each current source circuit respectively, the voltage output end of described multiplexer connects the input end of analog signal of described analog to digital converter.
The present invention also provides a kind of temperature signal processing method that adopts the said temperature sensor circuit to realize, it is characterized in that, described multiplexer is gathered the voltage signal in the current source circuit, and the voltage signal in three road current source circuits is respectively:
Wherein, k is a Boltzmann constant, and T is an absolute temperature, and q is the unit electron charge, I
2Be the collector current of NPN pipe in the first via current source circuit, I
S2Be the saturation current of NPN pipe, RS2 is the equivalent series resistance of NPN pipe, m
2Be the scale-up factor of the collector current of NPN pipe in the second road current source circuit with respect to the collector current of NPN pipe in the first via current source circuit; n
2Be the scale-up factor of the collector current of NPN pipe in the Third Road current source circuit with respect to the collector current of NPN pipe in the first via current source circuit;
Described multiplexer converts VBE1, VBE2 and VBE3 and the proportional voltage VPTAT of absolute temperature to, and and the irrelevant reference voltage V REF of temperature,
VREF=VBE1+α·VPTAT;
Wherein α is a scale-up factor, and numerical value is determined by device property, and the temperature coefficient of VBE1 and the temperature coefficient of α VPTAT are cancelled each other, thus the irrelevant voltage VREF of generation and temperature;
Afterwards, the output signal value of described analog to digital converter is:
The present invention produces VPTAT by three base-emitter voltage VBE1, VBE2 producing and VBE3 are carried out computing, can compensate the influence of equivalent series resistance, thereby make VPTAT more approach ideal value, and be directly proportional, improved the precision of temperature sensor circuit greatly with absolute temperature.