This application claims the priority to Chinese Patent Application No. 201810878536.1, titled “ANALOG-TO-DIGITAL CONVERSION METHOD AND ANALOG-TO-DIGITAL CONVERSION DEVICE FOR TEMPERATURE SENSOR”, filed on Aug. 3, 2018 with the Chinese Patent Office, which is incorporated herein by reference in its entirety.
The present disclosure relates to the technical field of electronic circuits, and in particular to an analog-to-digital (A/D) conversion method and an A/D conversion device for a temperature sensor.
A temperature sensor may detect a temperature and convert the temperature into an available output signal. A temperature signal provided by the temperature sensor may be appropriate for different uses, and the temperature sensor is commonly used in electronic circuits. In addition to the temperature sensor, in electronic circuits and chips, it is also required to monitor and obtain other electrical information, such as battery voltages, other on-chip or off-chip direct currents, low frequency signals, which requires various types of sensors. In order to decrease a design cost, it is a common way to share a read-out interface circuit in a multi-sensor system.
However, in a conventional analog-to-digital (A/D) conversion solution, in order to share a read-out interface circuit among the temperature sensor and other types of sensors to achieve versatile of the read-out interface circuit, it is unavoidable to decrease the accuracy of conversion of the temperature signal. In order to achieve a high accuracy, it is even required to design an A/D converter specialized for the conversion of the temperature signal, which cannot be used for conversion of other types of signals, thereby increasing the design cost.
Therefore, a problem to be solved by those skilled in the art is how to provide an A/D conversion solution for a temperature sensor that combines versatile and high accuracy.
An A/D conversion method and an A/D conversion device for a temperature sensor are provided according to the present disclosure, to provide an A/D conversion solution for a temperature sensor that combines versatility and high accuracy.
In order to solve the above technical problem, an A/D conversion method for a temperature sensor is provided according to the present disclosure, which includes:
generating, by an analog front-end circuit, an A/D converter input signal positively correlated to a temperature and an A/D converter reference voltage signal negatively correlated to the temperature, where an amplitude of the A/D converter input signal is less than an amplitude of the A/D converter reference voltage signal; and
calculating a ratio of the amplitude of the A/D converter input signal to the amplitude of the A/D converter reference voltage signal, and performing an operation on the ratio to obtain a quantized output value.
In an embodiment, the performing an operation on the ratio to obtain a quantized output value includes:
performing an amplification operation on the ratio to obtain the quantized output value.
In an embodiment, the quantized output value is calculated from the following equation:
where Y represents the quantized output value, n represents an amplification factor, ΔVBE represents the amplitude of the A/D converter input signal, and VBE represents the amplitude of the A/D converter reference voltage signal.
In an embodiment, after the performing an operation on the ratio to obtain a quantized output value, the method further includes:
converting the quantized output value to a target value through an operation in a digital domain, where
the target value is linearly correlated to the temperature.
In an embodiment, the target value is calculated from the following equation:
where μ represents the target value, φ represents a coefficient.
In an embodiment, after the converting the quantized output value to a target value through an operation in a digital domain, the method further includes:
performing a linear fitting operation on the target value based on a preset rule to obtain a temperature.
An A/D conversion device for a temperature sensor is further provided according to the present disclosure, which includes an analog front-end circuit and an A/D converter. The analog front-end circuit is configured to generate an A/D converter input signal positively correlated to a temperature and an A/D converter reference voltage signal negatively correlated to the temperature. An amplitude of the A/D converter input signal is less than an amplitude of the A/D converter reference voltage signal. The A/D converter is configured to calculate a ratio of the amplitude of the A/D converter input signal to the amplitude of the A/D converter reference voltage signal and perform an operation on the ratio to obtain a quantized output value.
In an embodiment, the A/D converter includes a ratio operation circuit. The ratio operation circuit is configured to perform an amplification operation on the ratio to obtain the quantized output value.
In an embodiment, the A/D conversion device further includes an N-Metal-Oxide-Semiconductor (NMOS) transistor starting circuit arranged in the analog front-end circuit. A gate of the NMOS transistor starting circuit is connected to an emitter of a bipolar junction transistor (BJT) of the analog front-end circuit, a source of the NMOS transistor starting circuit is connected to a gate of a cascode current mirror, and a drain of the NMOS transistor starting circuit is connected to a positive electrode of a power supply.
In an embodiment, the A/D converter is a second-order 1-bit switch capacitor A/D converter based on a Sigma-Delta modulation.
In the A/D conversion method for a temperature sensor according to the present disclosure, an analog front-end circuit generates an A/D converter input signal positively correlated to a temperature and an A/D converter reference voltage signal negatively correlated to the temperature, and an operation is performed on a ratio of the amplitude of the A/D converter input signal to the amplitude of the A/D converter reference voltage signal to obtain a quantized output value. Since the amplitude of the A/D converter input signal is less than the amplitude of the A/D converter reference voltage signal, which meets a requirement in a general application that an amplitude of an input signal is less than an amplitude of a reference signal, measurements on other types of signals is compatible with the measurement on the temperature in a multi-sensor system. In addition, the quantized output value is generated by using a voltage signal with a known temperature property, such that the influence of the temperature property of the reference voltage on the accuracy of temperature measurement result is considered, thereby improving the accuracy of temperature measurement. In summary, the A/D conversion solution for a temperature sensor according to the present disclosure combines versatile and high accuracy. An A/D conversion device for a temperature sensor is further provided according to the present disclosure, which achieves the same beneficial effect and is not repeated herein.
The drawings to be used in the description of the embodiments or the conventional technology are described briefly as follows, so that the technical solutions according to the embodiments of the present disclosure or according to the conventional technology become clearer. It is apparent that the drawings in the following description only illustrate some embodiments of the present disclosure. For those skilled in the art, other drawings may be obtained according to these drawings without any creative work.
An A/D conversion method and an A/D conversion device for a temperature sensor are provided according to the present disclosure, to provide an A/D conversion solution for a temperature sensor that combines versatility and high accuracy.
The technical solutions according to the embodiments of the present disclosure are described clearly and completely in conjunction with the drawings hereinafter. It is apparent that the described embodiments are only a few rather than all of the embodiments according to the present disclosure. Any other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without any creative work fall within the protection scope of the present disclosure.
In a high-accuracy and low-cost integrated temperature sensor, an analog front-end circuit using a bipolar junction transistor BJT as a temperature sensing component is usually used in cooperation with a high-accuracy A/D converter (ADC), to read out an electrical signal generated by the BJT-based analog front-end circuit in a digital manner. There are three A/D conversion solutions for temperature sensors according to the conventional technology.
where VIN represents a voltage converted from a temperature by the temperature sensor. The temperature is obtained by a table-searching method or an equation conversion method based on a ratio of the voltage to the reference voltage VBG.
In addition, in a conventional single high-accuracy CMOS temperature sensor, the analog front-end circuit itself may generate a voltage ΔVBE positively correlated to the temperature and the voltage VBE negatively correlated to the temperature, and a reference voltage is usually generated indirectly. At present, there are two solutions according to the conventional technology.
where α represents a coefficient.
The first A/D conversion solution is the most commonly used for multi-sensor systems, in which a universal reference voltage independent of an analog front-end circuit of a temperature sensor is used as the reference voltage. However, since an absolute value of the reference voltage and a temperature property of the reference voltage may directly affect an accuracy of a temperature measurement result, temperature measurement result is not only related to the accuracy of the analog front-end circuit of the temperature sensor, but also related to the voltage property of the reference voltage, thereby resulting in a limited accuracy of temperature measurement.
With the second A/D conversion solution and the third A/D conversion solution, which are read-out solutions designed specifically for temperature sensors, the disadvantages of the first A/D conversion solution can be overcome and a high accuracy can be achieved.
In a case that the second A/D conversion solution is applied to the multi-sensor system, ΔVBE is used as an input signal, VBE is used as a reference signal, an indirect A/D converter is configured to generate a reference voltage α·ΔVBE+VBE and generate a quantized output according to the equation (2). However, in this solution, measurements on other signals are not compatible with a measurement on the temperature in the multi-sensor system. For example, in a case the second A/D conversion solution is applied to measure other signals, VIN is used as the input signal, VBG is used as the reference signal, however, the equation (1) is not derived for the quantized output with the second A/D conversion solution.
The third A/D conversion solution is similar to the second A/D conversion solution, except that the third A/D conversion solution is implemented more easily in hardware. However, since the quantized output
is obtained by the zoom ADC, and the input signal VBE is far greater than the reference signal ΔVBE, the third A/D conversion solution cannot meet a requirement in a general application that an amplitude of the input signal is less than an amplitude of the reference signal. Therefore, the measurements on other signals are not compatible with a measurement on the temperature in the multi-sensor system.
In step S10, an analog front-end circuit generates an A/D converter input signal positively correlated to a temperature and an A/D converter reference voltage signal negatively correlated to the temperature.
An amplitude of the A/D converter input signal is less than an amplitude of the A/D converter reference voltage signal.
In a conventional independent high-accuracy CMOS temperature sensor, the analog front-end circuit may generate the A/D converter input signal ΔVBE positively correlated to the temperature and the A/D converter reference voltage signal VBE negatively correlated to the temperature, and the amplitude of the A/D converter input signal ΔVBE is less than the amplitude of the A/D converter reference voltage signal VBE. In a specific implementation, the BJT-based analog front-end circuit generates the A/D converter input signal ΔVBE positively correlated to the temperature and the A/D converter reference voltage signal VBE negatively correlated to the temperature.
In step S11, a ratio of the amplitude of the A/D converter input signal to the amplitude of the A/D converter reference voltage signal is calculated, and an operation is performed on the ratio to obtain a quantized output value.
A ratio ΔVBE/VBE of the amplitude of the A/D converter input signal ΔVBE to the amplitude of the A/D converter reference voltage signal VBE is calculated. The ratio is greater than zero and less than one.
In an embodiment, an amplification operation may be performed on the ratio to obtain the quantized output value, to make full use of a dynamic range of the A/D converter. The quantized output value may be calculated from the following equation:
where Y represents the quantized output value, n represents an amplification factor, ΔVBE represents the amplitude of the A/D converter input signal, VBE represents the amplitude of the A/D converter reference voltage signal. The quantized output value follows a nonlinear curve monotonically varying with the temperature.
n may be determined based on an actual process and a required temperature range, thus making full use of the dynamic range of the A/D converter.
In the A/D conversion method for a temperature sensor according to the present disclosure, the analog front-end circuit generates an A/D converter input signal positively correlated to a temperature and an A/D converter reference voltage signal negatively correlated to the temperature and an operation is performed on a ratio of the amplitude of the A/D converter input signal to the amplitude of the A/D converter reference voltage signal to obtain a quantized output value. The quantized output value is converted to a digital signal and then the digital signal is outputted. Since the amplitude of the A/D converter input signal is less than the amplitude of the A/D converter reference voltage signal, which meets a requirement in a general application that an amplitude of an input signal is less than an amplitude of a reference signal, measurements on other types of signals is compatible with a measurement on a temperature in a multi-sensor system. In addition, the quantized output value is generated by using a voltage signal with a known temperature property, such that the influence of the temperature property of the reference voltage on the accuracy of the temperature measurement result is considered, thereby improving the accuracy of temperature measurement. In summary, the A/D conversion solution for a temperature sensor according to the present disclosure combines versatile and high accuracy.
In step S20, the quantized output value is converted to a target value through an operation in a digital domain. The target value is linearly correlated to the temperature.
In a specific embodiment, the quantized output value is converted to a target value through an operation in a digital domain according to the following equation:
where μ represents the target value obtained by conversion, φ represents a coefficient.
The operation process of deriving the equation (5) by substituting the equation (4) into the equation (2) may include:
substituting the equation
into the equation
to obtain an intermediate equation; and
assuming that
and simplifying the intermediate equation to obtain the equation (5)
In the A/D converter, the equation (5) may be derived simply and the quantized output value is converted to the target value through a simple operation in the digital domain, such that complexity of an analog read-out circuit is greatly reduced. In addition, the linearity of μ may be adjusted in the digital domain by adjusting the coefficient φ, such that overall non-linearity, the fitting error and the requirement on an absolute value of n in the circuit design are reduced.
In step S30, a linear fitting operation is performed on the target value based on a preset rule to obtain a temperature.
The linearized equation (5) is derived through an operation in the digital domain, and the temperature is finally obtained through a simple linear fitting operation according to the following equation:
T=A*μ+B (6)
where T represents the finally obtained temperature, A and B represent coefficients which may be determined according to an actual design of a circuit.
In a specific embodiment, it is required to perform correction for the obtained temperature. For chips produced in the same batch, all the chips may be corrected using the same linear fitting coefficients A and B under a same temperature. That is, a digital coefficient co is corrected under a certain temperature (such as a room temperature), to minimize an error under the temperature.
Embodiments corresponding to the A/D conversion method for a temperature sensor are described in detail above, an A/D conversion device for a temperature sensor corresponding to the above method is further provided according to the present disclosure.
Furthermore, the A/D converter includes a ratio operation circuit configured to perform an amplification operation on the ratio to obtain the quantized output value.
Based on the above embodiments, a circuit for implementing the above A/D conversion method is provided according to the present disclosure.
As shown in
The PTAT bias current generation circuit and the operational amplifier may be as shown in
In the PTAT bias current generation circuit, since a compensation resistor Rb/7 is connected to a base of the BJT in series, the PTAT bias current generation circuit operates in a way different from that of a conventional PTAT bias current generation circuit, in which a main difference lies in additional operation degeneration points. If a voltage supply is connected to a terminal C to supply a sweeping voltage from 0 to Vdd, a waveform of a voltage Vout at an output terminal of the operational amplifier is as shown in
Therefore, it is required to design an additional starting circuit to ensure a stable operation of the circuit. As shown in
As shown in
The A/D converter may be a universal A/D converter, specifically a second-order 1-bit switch capacitor A/D converter based on the sigma-delta modulation. As shown in
where V(z) represents an output of the second order 1-bit feedforward Sigma-Delta modulator embedded with a gain, n represents a signal amplification factor, U(z) represents an input signal, E(z) represents a quantized error, D(z) represents a polynomial including a1, b1, b2.
A function Sin c2 for the digital filter is expressed by:
where D represents a down-sampling rate.
The A/D conversion circuit corresponding to the system block diagram in
As shown in
QΔV
where CS represents a unit sampling capacitance at a first stage, which is equal to 900 fF. Cs may be determined based on a kT/C noise and a process matching condition. Only one sampling capacitor provides a charge proportional to a feedback voltage 2·Vdac, which is expressed by:
QV
where Vdac may be equal to VBE or ΔVBE based on an output bit stream. Due to feedback in the second-order 1-bit feedforward Sigma-Delta modulator embedded with a gain, an average value of charges transmitted to an integrating capacitor is zero, which is expressed by:
Y·2·CS(4·ΔVBE−VBE)+(1−Y)·2·CS(4·ΔVBE+VBE)=0 (11)
the following equation may be obtained by solving the equation (11):
In the embodiments mentioned in the disclosure, it is to be understood that, the disclosed device and method may be implemented in other ways. For example, the above device embodiment is only illustrative. For example, the division of the modules is only a logical functional division. In practice, there may be other divisions. For example, multiple modules or assembles may be combined or may be integrated into another system. Alternatively, some features may be neglected or not be performed. The displayed or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in an electrical, mechanical or other form. The module described as a separate component may be or may not be separate physically, and the component which is displayed as a module may be or may not be a physical module, that is, may be located at a position, or may be distributed over multiple network modules. Some or all of the modules may be selected as required to implement the solution of the embodiment.
Further, the functional modules in the embodiments of the disclosure may be integrated into one processing module, and may exist physically separately, and may be integrated into one module by two or more. The above integrated module may be implemented in hardware, and may also be implemented by using a software functional module.
The A/D conversion method and the A/D conversion device for a temperature sensor according to the present disclosure are described in detail. The embodiments of the present disclosure are described in a progressive manner, and each embodiment places emphasis on the difference from other embodiments. Therefore, for the same or similar parts between the embodiments, one may refer to the description of other embodiments. For the device and system according to the embodiments, the device corresponds to the method according to the embodiments. Therefore, the description thereof is simple, and for the related parts, one may refer to the description of the method embodiments. It should be noted that various deformations and modifications may be made to the present disclosure by those skilled in the art without departing from the spirit and scope of the present disclosure, and these deformations and modifications all fall within the scope of the present disclosure.
It should also be illustrated that a relationship term such as “the first” and “the second” herein is only used to distinguish one entity or operation from another entity or operation, and does not necessarily require or imply that there is an actual relationship or sequence between these entities or operations. Furthermore, terms “include”, “comprise” or any other variations are intended to be non-exclusive, so that a process, a method, an object or a device including a series of factors not only include the factors, but also include other factors not explicitly listed, or also include factors inherent for the process, the method, the object or the device. Without more limitation, a factor defined by a sentence “include one . . . ” does not exclude a case that there is also another same factor in the process, the method, the object or the device including the described factors.
Number | Date | Country | Kind |
---|---|---|---|
2018 1 0878536 | Aug 2018 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
6962436 | Holloway | Nov 2005 | B1 |
7126509 | Sit | Oct 2006 | B2 |
8992080 | Lepidis | Mar 2015 | B2 |
9214950 | Davis | Dec 2015 | B1 |