Voltage digital conversion method and system applied to temperature detection
By introducing multi-module structure and clock signal control into the temperature detection system, high-precision digital conversion of temperature voltage signals is realized, and the problems of low temperature detection accuracy and inability to deal with high temperature in the prior art are solved, the detection accuracy is improved and the offset calibration function is provided.
Patent Information
- Application Number
- CN202510115697.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-05-23
- Estimated Expiration
- 2045-01-24
Smart Images

Figure CN120034197A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated circuit design, and in particular to a voltage-to-digital conversion method and system for temperature detection. Background Art
[0002] The performance and reliability of the chip will change at different temperatures. Therefore, in order to ensure that the chip can maintain a relatively stable working state, it is necessary to ensure that the chip temperature changes within an allowable range. For automotive-grade chips that run for a long time, it is necessary to accurately detect the working temperature. At present, the mainstream chips on the market generally have an over-temperature protection function. The voltage converted by the temperature sensor is compared with the set voltage value. When the temperature exceeds a certain value, the comparator output value is converted from a low level of 0V to a high level, and the chip is powered off for protection. This technology can only simply control the chip and cannot monitor the temperature. When the temperature is too high, the high temperature cannot be processed, so that the chip temperature is reduced and the normal function of the chip is maintained. After the temperature is converted into voltage data by the sensor, the voltage cannot be directly supplied to the microcontroller (MUC) as analog data for processing, so it is necessary to convert the temperature voltage signal into a digital signal.
[0003] The existing voltage digital converter is realized by using an analog-to-digital converter (ADC). After the temperature sensor converts the temperature into a DC voltage, a single-ended input successive approximation analog-to-digital converter (SAR ADC) is used to convert the DC voltage into a digital code. Compared with the differential input successive approximation analog-to-digital converter, this single-ended input successive approximation analog-to-digital converter (SAR ADC) has poor anti-interference performance. The differential input SAR ADC has two inputs and strong symmetry. The noise caused by the clock feedthrough effect of the sampling switches of the two inputs is subtracted to obtain the noise of the entire system. However, this single-ended input SAR ADC, due to the non-ideal effect of the sampling switch, the error caused by the parasitic capacitance of the comparator input, the device noise, etc., will directly affect the entire system and cannot achieve high-precision conversion. Summary of the invention
[0004] The present invention aims to provide a voltage-to-digital conversion method and system for temperature detection, so as to solve the above technical problems and realize accurate monitoring of temperature values.
[0005] In order to solve the above technical problems, the present invention provides a voltage-to-digital conversion method for temperature detection, which is applied to a voltage-to-digital conversion system. The voltage-to-digital conversion system includes a control module, an analog-to-digital conversion module, an error calibration module, a logic switch module, a temperature sensor and a single-ended-to-differential module. The control module is electrically connected to the analog-to-digital conversion module, the control module is electrically connected to the error calibration module, the control module is electrically connected to the logic switch module, the logic switch module is electrically connected to the temperature sensor, the logic switch module is electrically connected to the single-ended-to-differential module, and the single-ended-to-differential module is electrically connected to the analog-to-digital conversion module. The method uses the control module as the execution body and includes the following steps:
[0006] generating a reset clock signal and a conversion clock signal;
[0007] In the reset phase of the voltage-to-digital conversion system, the logic switch module is controlled to perform a grounding action based on the reset clock signal, thereby obtaining an offset digital code;
[0008] In the conversion phase of the voltage-to-digital conversion system, the logic switch module is controlled to perform a path action based on the conversion clock signal, so that the logic switch module receives the temperature voltage signal fed back by the temperature sensor and sends the temperature voltage signal to the single-ended to differential module, and then the single-ended to differential module obtains the differential signal based on the temperature voltage signal, thereby controlling the single-ended to differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs the analog-to-digital conversion step and feeds back the positive output signal and the negative output signal;
[0009] Acquire a control signal based on the positive output signal and the negative output signal, and acquire an initial digital code based on the control signal and the differential signal;
[0010] The control error calibration module obtains the target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage.
[0011] The above scheme provides a temperature-voltage digital conversion method, which controls the logic switch module through a reset clock signal to ground the voltage conversion system to obtain an offset digital code, controls each module to perform corresponding conversion and regulation actions through a conversion clock signal, receives a temperature-voltage signal and performs voltage signal differential conversion and multi-cycle analog-to-digital conversion processing based on the clock conversion signal, thereby completing circuit regulation and output of multiple cycles and obtaining an initial digital code based on this, and then uses the offset digital code for calibration processing to finally obtain a target digital code obtained by converting the temperature-voltage signal, complete the digital conversion of the temperature-voltage signal, realize temperature detection, realize monitoring of the temperature value and have an offset calibration effect, thereby improving the accuracy of temperature detection.
[0012] Furthermore, in the conversion stage of the voltage-to-digital conversion system, the logic switch module is controlled based on the conversion clock signal to perform a path action, so that the logic switch module receives the temperature voltage signal fed back by the temperature sensor and sends the temperature voltage signal to the single-ended-to-differential module, thereby enabling the single-ended-to-differential module to obtain an initial differential signal based on the temperature voltage signal; and then enabling the single-ended-to-differential module to obtain a differential signal according to a preset output transition range based on the initial differential signal, thereby controlling the single-ended-to-differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs the analog-to-digital conversion step and feeds back a positive output signal and a negative output signal.
[0013] In the above scheme, the voltage digital conversion system is in the conversion stage through the clock conversion signal. At this time, the control logic switch circuit performs the path action to receive the temperature voltage signal, and enables the single-ended to differential module to perform differential processing on the temperature voltage signal and narrow the voltage range, so that the system can be suitable for temperature voltage conversion detection in a wider range and can realize the conversion of the full power supply voltage input range.
[0014] Furthermore, a control signal is obtained based on the positive output signal and the negative output signal, and an initial digital code is obtained based on the control signal and the differential signal, including: generating an output comparison signal based on the positive output signal and the negative output signal to obtain the control signal based on the output comparison signal; and controlling the analog-to-digital conversion module to perform a ground conversion action based on the control signal and the differential signal to obtain an initial digital code.
[0015] In the above scheme, a control signal is formed by the positive output signal and the negative output signal to control the analog-to-digital conversion module to perform a ground conversion action to obtain an initial digital code, thereby realizing the conversion of a voltage signal into a digital signal.
[0016] Furthermore, based on the control signal and the differential signal, the analog-to-digital conversion module is controlled to perform a grounding conversion action to obtain an initial digital code, including: based on the control signal and the differential signal, the analog-to-digital conversion module is controlled to perform a grounding conversion action, so that the analog-to-digital conversion module becomes a switching state to obtain a single digital code; by making the analog-to-digital conversion module in the switching state generate a post-switching positive output signal and a post-switching negative output signal based on the differential signal, so as to generate a post-switching output comparison signal based on the post-switching positive output signal and the post-switching negative output signal, thereby obtaining a post-switching control signal based on the post-switching output comparison signal, and then controlling the switching state analog-to-digital conversion module to perform a grounding conversion action based on the post-switching control signal to obtain the next single digital code until the preset switching completion condition is met; and obtaining the initial digital code based on all the single digital codes.
[0017] In the above scheme, through several cycles of cyclic actions, the ground conversion action of the analog-to-digital conversion module is performed by adjusting the signal, and then the differential signal is converted to obtain a positive output signal and a negative output signal, and a single digital code is obtained to finally obtain the initial digital code after completing the cycle, thereby quickly realizing the conversion of the voltage signal to the digital signal.
[0018] Furthermore, the control error calibration module obtains a target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage, including: the control error calibration module obtains a wide range digital code based on the offset digital code and the initial digital code; and performs a reverse transformation based on the wide range digital code and a preset output transition range to obtain the target digital code, thereby completing the digital conversion of the temperature voltage.
[0019] In the above scheme, the offset digital code is used for calibration, which solves the problem of overall digital code offset caused by system imbalance, such as mismatch error caused by deviations in production of each module and capacitance value deviation, improves the accuracy of temperature-voltage digital conversion, and has strong anti-interference ability.
[0020] The present invention provides a voltage-to-digital conversion method for temperature detection. The method controls the grounding of a logic switch module through a clock signal, thereby generating an offset digital code based on the basic operating state of the system used, and performs differential processing, range conversion processing and voltage-to-digital conversion processing based on a temperature-voltage signal control, thereby obtaining an initial digital code, realizing digital conversion of temperature and voltage, and calibrating based on the offset digital code and the initial digital code to obtain a desired target digital code, thereby improving the accuracy of temperature detection based on temperature-voltage numerical conversion; performing differential processing and narrowing the voltage input range, thereby increasing the input voltage range of temperature-voltage digital conversion; realizing accurate monitoring of temperature values, and having an offset calibration function and strong anti-interference capability.
[0021] The present invention also provides a voltage-to-digital conversion system for temperature detection, which implements a voltage-to-digital conversion method for temperature detection, including: a control module, an analog-to-digital conversion module, an error calibration module, a logic switch module, a temperature sensor, and a single-ended-to-differential module, wherein:
[0022] The temperature sensor detection end is located at the location to be detected, the temperature sensor output end is electrically connected to the logic switch module receiving end, the temperature sensor performs temperature detection on the location to be detected to obtain a temperature voltage signal, and feeds back the temperature voltage signal to the logic switch module;
[0023] The output end of the logic switch module is electrically connected to the receiving end of the single-ended to differential conversion module, and the regulating end of the logic switch module is electrically connected to the switch control end of the control module; in the reset phase of the voltage digital conversion system, the logic switch module performs a grounding action based on the reset clock signal, thereby enabling the control module to obtain the offset digital code; in the conversion phase of the voltage digital conversion system, the logic switch module performs a path action based on the conversion clock signal to receive the temperature voltage signal fed back by the temperature sensor, and sends the temperature voltage signal to the single-ended to differential conversion module;
[0024] The first output end of the single-ended to differential module is electrically connected to the first receiving end of the analog-to-digital conversion module, and the second output end of the single-ended to differential module is electrically connected to the second receiving end of the analog-to-digital conversion module; the single-ended to differential module obtains a differential signal based on the temperature voltage signal, and feeds back the differential signal to the analog-to-digital conversion module;
[0025] The positive output terminal of the analog-to-digital conversion module is electrically connected to the positive input terminal of the control module, the negative output terminal of the analog-to-digital conversion module is electrically connected to the negative input terminal of the control module, the first regulating terminal of the analog-to-digital conversion module is electrically connected to the first control terminal of the control module, and the second regulating terminal of the analog-to-digital conversion module is electrically connected to the second control terminal of the control module; the analog-to-digital conversion module performs an analog-to-digital conversion step based on the differential signal to obtain a positive output signal and a negative output signal, and feeds back the positive output signal and the negative output signal to the control module;
[0026] The output end of the control module is electrically connected to the receiving end of the error calibration module; the control module generates a reset clock signal and a conversion clock signal, so as to control the logic switch module to perform a grounding action based on the reset clock signal in the reset phase of the voltage digital conversion system, thereby obtaining an offset digital code, and feeding back the offset digital code to the error calibration module; in the conversion phase of the voltage digital conversion system, the logic switch module is controlled to perform a path action based on the conversion clock signal, so as to enable the logic switch module to receive the temperature voltage signal fed back by the temperature sensor and send the temperature voltage signal to the single-ended to differential module, thereby enabling the single-ended to differential module to obtain a differential signal based on the temperature voltage signal, thereby controlling the single-ended to differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs an analog-to-digital conversion step and feeds back a positive output signal and a negative output signal; thereby obtaining a control signal based on the positive output signal and the negative output signal, and obtaining an initial digital code based on the control signal and the differential signal, and feeding back the initial digital code to the error calibration module; finally, the error calibration module is controlled to obtain a target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage;
[0027] The error calibration module obtains a target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage.
[0028] The above scheme provides a temperature-voltage digital conversion system, which controls the logic switch module to ground the voltage conversion system through a reset clock signal sent by the control module to obtain an offset digital code, and controls each module to perform corresponding conversion and control actions through a conversion clock signal sent by the control module, receives a temperature-voltage signal and performs voltage signal differential conversion and multi-cycle analog-to-digital conversion processing based on the clock conversion signal, thereby completing circuit regulation and output of multiple cycles and obtaining an initial digital code based on this, and then uses the offset digital code for calibration processing through the error calibration module to finally obtain a target digital code obtained by converting the temperature-voltage signal, complete the digital conversion of the temperature-voltage, realize temperature detection, realize the monitoring of the temperature value and have an offset calibration effect, thereby improving the accuracy of temperature detection.
[0029] Further, the logic switch module includes a grounding submodule and a path submodule, wherein:
[0030] The first end of the grounding submodule is grounded, the first end of the grounding submodule serves as the grounding end of the logic switch module, and the output end of the grounding submodule is electrically connected to the output end of the passage submodule;
[0031] The receiving end of the path submodule serves as the receiving end of the logic switch module, and the output end of the path submodule serves as the output end of the logic switch module;
[0032] The grounding submodule performs a grounding action based on a reset clock signal during the reset phase of the voltage-to-digital conversion system, thereby enabling the control module to obtain an offset digital code;
[0033] The path submodule performs a path action based on a conversion clock signal during the conversion phase of the voltage-to-digital conversion system to receive a temperature voltage signal fed back by a temperature sensor and send the temperature voltage signal to the single-ended-to-differential conversion module.
[0034] In the above scheme, the logic switch module performs corresponding operations under the action of the clock signal sent by the control module, so that the system generates an offset digital code or receives a temperature voltage signal for digital conversion to obtain an initial digital code, providing a data basis for subsequent offset calibration.
[0035] Furthermore, the analog-to-digital conversion module includes a sampling switch submodule, a first capacitor array and a second capacitor array, wherein:
[0036] The positive input end of the sampling switch submodule is used as the first receiving end of the analog-to-digital conversion module, the negative input end of the sampling switch submodule is used as the second receiving end of the analog-to-digital conversion module, the positive output end of the sampling switch submodule is electrically connected to the first capacitor array input end, and the negative output end of the sampling switch submodule is electrically connected to the second capacitor array input end;
[0037] The lower plate interface of the first capacitor array is electrically connected to the positive input terminal of the control module, the lower plate interface of the first capacitor array serves as the positive output terminal of the analog-to-digital conversion module, and the regulating terminal of the first capacitor array serves as the first regulating terminal of the analog-to-digital conversion module;
[0038] The lower plate interface of the second capacitor array is electrically connected to the negative input terminal of the control module, the lower plate interface of the second capacitor array serves as the negative output terminal of the analog-to-digital conversion module, and the control terminal of the second capacitor array serves as the second control terminal of the analog-to-digital conversion module;
[0039] The sampling switch submodule is turned on during the conversion phase of the voltage digital conversion system, so that the analog-to-digital conversion module enters the sampling phase and obtains the differential signal, and is turned off after the analog-to-digital conversion module obtains the differential signal, so that the analog-to-digital conversion module enters the comparison phase, thereby keeping the differential signal on the first capacitor array and the second capacitor array;
[0040] In the comparison stage of the analog-to-digital conversion module, the first capacitor array generates a positive output signal based on the differential signal and sends it to the control module, and the second capacitor array generates a negative output signal based on the differential signal and sends it to the control module, so that the control module generates a control signal based on the positive output signal and the negative output signal, and the first capacitor array and the second capacitor array perform ground conversion based on the differential signal and the control signal.
[0041] In the above scheme, an analog-to-digital conversion module is composed of a sampling switch submodule, a first capacitor array and a second capacitor array. The received differential signal is maintained on the capacitor array through the sampling switch submodule, and a ground conversion action is performed by utilizing the electrical connection relationship of the capacitor array and the control of the control module, so that different output signals are generated at the output end, and then multi-cycle voltage digital conversion is quickly performed, so that the control module obtains the initial digital code after the voltage digital conversion according to the different output signals generated at the output end.
[0042] Further, the control module includes a comparator and a control logic submodule, wherein:
[0043] The positive input terminal of the comparator is used as the positive input terminal of the control module, the negative input terminal of the comparator is used as the negative input terminal of the control module, and the output terminal of the comparator is electrically connected to the input terminal of the control logic submodule;
[0044] The first control end of the control logic submodule serves as the first control end of the control module, the second control end of the control logic submodule serves as the second control end of the control module, the switch control end of the control logic submodule serves as the switch control end of the control module, and the output end of the control logic submodule serves as the output end of the control module;
[0045] The comparator obtains an output comparison signal based on the positive output signal and the negative output signal;
[0046] The control logic submodule generates a control signal based on the output comparison signal, so as to control the analog-to-digital conversion module to perform a ground conversion action based on the control signal, thereby obtaining an initial digital code.
[0047] In the above scheme, the control module compares the different output signals generated by the output terminal through a comparator, thereby generating a control signal to enable the analog-to-digital conversion module to perform a ground conversion action, thereby realizing the control of the analog-to-digital conversion module to quickly perform multi-cycle voltage digital conversion, storing the single digital code generated by each conversion to form an initial digital code, realizing the control generation process of temperature and voltage digital conversion, and realizing the function of a successive comparison analog-to-digital converter together with the analog-to-digital conversion module.
[0048] Furthermore, the system further comprises: a voltage buffer module, wherein:
[0049] The first receiving end of the voltage buffer module is electrically connected to the first output end of the single-ended differential converter, the second receiving end of the voltage buffer module is electrically connected to the second output end of the single-ended differential converter, the first output end of the voltage buffer module is electrically connected to the first receiving end of the analog-to-digital conversion module, and the second output end of the voltage buffer module is electrically connected to the second receiving end of the analog-to-digital conversion module.
[0050] In the above scheme, by adding a voltage buffer module to provide a larger driving current, the conversion system can still stably transfer the single-to-dual output voltage to the next level with less error when running at high speed, thereby enhancing the stability and anti-interference ability of the system.
[0051] The present invention provides a voltage-to-digital conversion system for temperature detection. The clock signal sent by the control module controls the grounding of the logic switch module, thereby generating an offset digital code based on the basic operating state of each module, and controls other modules to perform differential processing, range conversion processing and voltage-to-digital conversion processing based on the temperature voltage signal, thereby obtaining an initial digital code and realizing digital conversion of temperature and voltage, and controlling the error calibration module to perform calibration based on the offset digital code and the initial digital code to obtain the required target digital code, thereby improving the temperature detection accuracy of the system based on temperature-voltage numerical conversion; adopting a single-ended to differential module for differential processing and narrowing the voltage input range, and adding a voltage buffer module, thereby realizing conversion detection of the full temperature voltage range; the system realizes accurate monitoring of temperature values through the interaction of each module, and has an offset calibration function and strong anti-interference ability. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 A schematic diagram of a voltage-to-digital conversion method for temperature detection provided by an embodiment of the present invention;
[0053] Figure 2 A schematic diagram of a voltage-to-digital conversion system for temperature detection provided by an embodiment of the present invention;
[0054] Figure 3 A schematic diagram of a voltage-to-digital converter for temperature detection provided by an embodiment of the present invention;
[0055] Figure 4 A schematic diagram of input and output range changes of a voltage-to-digital conversion system for temperature detection provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] Embodiment 1:
[0058] The present embodiment provides a voltage digital conversion method for temperature detection, which is applied to a voltage digital conversion system. The voltage digital conversion system includes a control module, an analog-to-digital conversion module, an error calibration module, a logic switch module, a temperature sensor, and a single-ended differential conversion module. The control module is electrically connected to the analog-to-digital conversion module, the control module is electrically connected to the error calibration module, the control module is electrically connected to the logic switch module, the logic switch module is electrically connected to the temperature sensor, the logic switch module is electrically connected to the single-ended differential conversion module, and the single-ended differential conversion module is electrically connected to the analog-to-digital conversion module. The method uses the control module as an execution subject and includes the following steps: Figure 1 As shown:
[0059] S1: Generate reset clock signal and conversion clock signal;
[0060] S2: In the reset phase of the voltage-to-digital conversion system, the logic switch module is controlled to perform a grounding action based on the reset clock signal, thereby obtaining an offset digital code;
[0061] S3: In the conversion phase of the voltage-to-digital conversion system, the logic switch module is controlled to perform a path action based on the conversion clock signal, so that the logic switch module receives the temperature voltage signal fed back by the temperature sensor and sends the temperature voltage signal to the single-ended to differential module, and then the single-ended to differential module obtains a differential signal based on the temperature voltage signal, thereby controlling the single-ended to differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs the analog-to-digital conversion step and feeds back a positive output signal and a negative output signal;
[0062] S4: obtaining a control signal based on the positive output signal and the negative output signal, and obtaining an initial digital code based on the control signal and the differential signal;
[0063] S5: Control the error calibration module to obtain a target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage.
[0064] The above scheme provides a temperature-voltage digital conversion method, which controls the logic switch module through a reset clock signal to ground the voltage conversion system to obtain an offset digital code, controls each module to perform corresponding conversion and regulation actions through a conversion clock signal, receives a temperature-voltage signal and performs voltage signal differential conversion and multi-cycle analog-to-digital conversion processing based on the clock conversion signal, thereby completing circuit regulation and output of multiple cycles and obtaining an initial digital code based on this, and then uses the offset digital code for calibration processing to finally obtain a target digital code obtained by converting the temperature-voltage signal, complete the digital conversion of the temperature-voltage signal, realize temperature detection, realize monitoring of the temperature value and have an offset calibration effect, thereby improving the accuracy of temperature detection.
[0065] In the specific implementation process, due to the deviation in the production of transistors inside the specific system during the system production process, an offset will be generated, which is equivalent to generating a fixed voltage at the input end, and there will be a capacitance value deviation during the production of the analog-to-digital conversion module, which will lead to mismatch errors. These system offset errors will cause the overall digital code to shift, and thus the method of sending a clock signal to ground the logic switch module is used to obtain the offset digital code, in preparation for subsequent digital calibration.
[0066] Optionally, in step S3, during the conversion phase of the voltage-to-digital conversion system, the logic switch module is controlled based on the conversion clock signal to perform a path action, so that the logic switch module receives the temperature voltage signal fed back by the temperature sensor and sends the temperature voltage signal to the single-ended-to-differential module, thereby enabling the single-ended-to-differential module to obtain an initial differential signal based on the temperature voltage signal; and then enabling the single-ended-to-differential module to obtain a differential signal according to a preset output transition range based on the initial differential signal, thereby controlling the single-ended-to-differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs the analog-to-digital conversion step and feeds back a positive output signal and a negative output signal.
[0067] Optionally, step S4 includes: generating an output comparison signal based on the positive output signal and the negative output signal to obtain a control signal based on the output comparison signal; and controlling the analog-to-digital conversion module to perform a ground conversion action based on the control signal and the differential signal to obtain an initial digital code.
[0068] In the specific implementation process, the control signal is formed by the positive output signal and the negative output signal to control the analog-to-digital conversion module to perform a ground conversion action to obtain an initial digital code, thereby realizing the conversion of the voltage signal into a digital signal.
[0069] Optionally, step S5 includes: controlling the analog-to-digital conversion module to perform a grounding conversion action based on the control signal and the differential signal, so that the analog-to-digital conversion module becomes a switching state to obtain a single digital code; enabling the analog-to-digital conversion module in the switching state to generate a post-switching positive output signal and a post-switching negative output signal based on the differential signal, so as to generate a post-switching output comparison signal based on the post-switching positive output signal and the post-switching negative output signal, thereby obtaining a post-switching control signal based on the post-switching output comparison signal, and then controlling the switching state analog-to-digital conversion module to perform a grounding conversion action based on the post-switching control signal to obtain the next single digital code until the preset switching completion condition is met; and obtaining the initial digital code based on all single digital codes.
[0070] In the specific implementation process, through several cycles of cyclic actions, the ground conversion action of the analog-to-digital conversion module is performed by adjusting the signal, and then the differential signal is converted to obtain a positive output signal and a negative output signal, and a single digital code is obtained to finally obtain the initial digital code after completing the cycle, thereby quickly realizing the conversion of the voltage signal to the digital signal.
[0071] Optionally, step S5 also includes: controlling the error calibration module to obtain a wide range digital code based on the offset digital code and the initial digital code; performing reverse transformation based on the wide range digital code and a preset output transition range to obtain a target digital code, thereby completing digital conversion of the temperature voltage.
[0072] In the specific implementation process, in the conversion stage, after receiving the temperature voltage signal fed back from the temperature sensor, the single-ended to differential module is used to convert the temperature voltage signal into a differential signal, and the range of the input temperature voltage signal is reduced by 1 / 2. The analog-to-digital conversion module and the control module are combined to realize the function of a successive approximation analog-to-digital converter (SAR ADC). The analog-to-digital conversion module includes N+1 conversion cycles, so that the N+1bit digital code is output to the next level. Since the range of the single-ended to differential module is reduced by 1 / 2, its actual effective code value range is only N bits. Therefore, the error calibration module subtracts the offset digital code from the N+1bit initial digital code, and then discards the highest bit. The converted N bit digital code is the desired target digital code; that is, the code range corresponding to the extra 1bit code can be used to deal with the overall digital code offset problem caused by system imbalance.
[0073] The present embodiment provides a voltage-to-digital conversion method for temperature detection. The method controls the grounding of a logic switch module through the emitted clock signal, thereby generating an offset digital code based on the basic operating state of the system used, and performs differential processing, range conversion processing, and voltage-to-digital conversion processing based on the temperature-voltage signal control, thereby obtaining an initial digital code, realizing digital conversion of temperature and voltage, and calibrating based on the offset digital code and the initial digital code to obtain the required target digital code, thereby improving the accuracy of temperature detection based on temperature-voltage numerical conversion; performing differential processing and narrowing the voltage input range, thereby increasing the input voltage range of temperature-voltage digital conversion; realizing accurate monitoring of temperature values, and having an offset calibration function and strong anti-interference capability.
[0074] Embodiment 2:
[0075] This embodiment provides a voltage-to-digital conversion system for temperature detection. Figure 2 As shown, a voltage digital conversion method for temperature detection is implemented, comprising: a control module, an analog-to-digital conversion module, an error calibration module, a logic switch module, a temperature sensor and a single-ended to differential conversion module, wherein:
[0076] The temperature sensor detection end is located at the location to be detected, the temperature sensor output end is electrically connected to the logic switch module receiving end, the temperature sensor performs temperature detection on the location to be detected to obtain a temperature voltage signal, and feeds back the temperature voltage signal to the logic switch module;
[0077] The output end of the logic switch module is electrically connected to the receiving end of the single-ended to differential conversion module, and the regulating end of the logic switch module is electrically connected to the switch control end of the control module; in the reset phase of the voltage digital conversion system, the logic switch module performs a grounding action based on the reset clock signal, thereby enabling the control module to obtain the offset digital code; in the conversion phase of the voltage digital conversion system, the logic switch module performs a path action based on the conversion clock signal to receive the temperature voltage signal fed back by the temperature sensor, and sends the temperature voltage signal to the single-ended to differential conversion module;
[0078] The first output end of the single-ended to differential module is electrically connected to the first receiving end of the analog-to-digital conversion module, and the second output end of the single-ended to differential module is electrically connected to the second receiving end of the analog-to-digital conversion module; the single-ended to differential module obtains a differential signal based on the temperature voltage signal, and feeds back the differential signal to the analog-to-digital conversion module;
[0079] The positive output terminal of the analog-to-digital conversion module is electrically connected to the positive input terminal of the control module, the negative output terminal of the analog-to-digital conversion module is electrically connected to the negative input terminal of the control module, the first regulating terminal of the analog-to-digital conversion module is electrically connected to the first control terminal of the control module, and the second regulating terminal of the analog-to-digital conversion module is electrically connected to the second control terminal of the control module; the analog-to-digital conversion module performs an analog-to-digital conversion step based on the differential signal to obtain a positive output signal and a negative output signal, and feeds back the positive output signal and the negative output signal to the control module;
[0080] The output end of the control module is electrically connected to the receiving end of the error calibration module; the control module generates a reset clock signal and a conversion clock signal, so as to control the logic switch module to perform a grounding action based on the reset clock signal in the reset phase of the voltage digital conversion system, thereby obtaining an offset digital code, and feeding back the offset digital code to the error calibration module; in the conversion phase of the voltage digital conversion system, the logic switch module is controlled to perform a path action based on the conversion clock signal, so as to enable the logic switch module to receive the temperature voltage signal fed back by the temperature sensor and send the temperature voltage signal to the single-ended to differential module, thereby enabling the single-ended to differential module to obtain a differential signal based on the temperature voltage signal, thereby controlling the single-ended to differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs an analog-to-digital conversion step and feeds back a positive output signal and a negative output signal; thereby obtaining a control signal based on the positive output signal and the negative output signal, and obtaining an initial digital code based on the control signal and the differential signal, and feeding back the initial digital code to the error calibration module; finally, the error calibration module is controlled to obtain a target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage;
[0081] The error calibration module obtains the target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage.
[0082] The above scheme provides a temperature-voltage digital conversion system, which controls the logic switch module to ground the voltage conversion system through a reset clock signal sent by the control module to obtain an offset digital code, and controls each module to perform corresponding conversion and control actions through a conversion clock signal sent by the control module, receives a temperature-voltage signal and performs voltage signal differential conversion and multi-cycle analog-to-digital conversion processing based on the clock conversion signal, thereby completing circuit regulation and output of multiple cycles and obtaining an initial digital code based on this, and then uses the offset digital code for calibration processing through the error calibration module to finally obtain a target digital code obtained by converting the temperature-voltage signal, complete the digital conversion of the temperature-voltage, realize temperature detection, realize the monitoring of the temperature value and have an offset calibration effect, thereby improving the accuracy of temperature detection.
[0083] Optionally, the logic switch module includes a grounding sub-module and a path sub-module, wherein: the first end of the grounding sub-module is grounded, the first end of the grounding sub-module serves as the grounding end of the logic switch module, and the output end of the grounding sub-module is electrically connected to the output end of the path sub-module; the receiving end of the path sub-module serves as the receiving end of the logic switch module, and the output end of the path sub-module serves as the output end of the logic switch module; in the reset stage of the voltage-to-digital conversion system, the grounding sub-module performs a grounding action based on a reset clock signal, thereby enabling the control module to obtain an offset digital code; in the conversion stage of the voltage-to-digital conversion system, the path sub-module performs a path action based on the conversion clock signal to receive the temperature voltage signal fed back by the temperature sensor and send the temperature voltage signal to the single-ended to differential module.
[0084] In the specific implementation process, in the reset stage, the grounding submodule is turned on, the path submodule is disconnected, and the ground signal (GND) is connected to the voltage-to-digital conversion system to obtain an offset digital code, which includes the offset of the digital output code value caused by the system offset, and the value is saved in the register of the error calibration module; in the conversion stage, the grounding submodule is disconnected, the path submodule is connected, and the temperature voltage signal (Vin) obtained by the temperature sensor is transmitted to the single-ended differential module through the path submodule and converted into a differential signal: the input range of the single-ended differential module is the ground signal (GND) ~ power supply voltage (VDD), and the common mode voltage formed is VCM = VDD / 2, and the output range is VCM1 / 2 ~ VCM2 / 3. The differential signal includes Von and Vop output from the two output ends of the single-ended differential module. When the input voltage temperature signal is Vin, Von = VCM + | Vin-VCM | / 2, and Vop = VCM- | Vin-VCM | / 2.
[0085] Optionally, the analog-to-digital conversion module includes a sampling switch submodule, a first capacitor array and a second capacitor array, wherein: the positive input end of the sampling switch submodule serves as the first receiving end of the analog-to-digital conversion module, the negative input end of the sampling switch submodule serves as the second receiving end of the analog-to-digital conversion module, the positive output end of the sampling switch submodule is electrically connected to the input end of the first capacitor array, and the negative output end of the sampling switch submodule is electrically connected to the input end of the second capacitor array; the lower plate interface of the first capacitor array is electrically connected to the positive input end of the control module, the lower plate interface of the first capacitor array serves as the positive output end of the analog-to-digital conversion module, and the first capacitor array regulation end serves as the first regulation end of the analog-to-digital conversion module; the lower plate interface of the second capacitor array is electrically connected to the negative input end of the control module, and the lower plate interface of the second capacitor array serves as the negative output end of the analog-to-digital conversion module , the second capacitor array control end is connected to the second control end of the analog-to-digital conversion module; the sampling switch submodule is turned on during the conversion phase of the voltage-to-digital conversion system, so that the analog-to-digital conversion module enters the sampling phase and obtains the differential signal, and is disconnected after the analog-to-digital conversion module obtains the differential signal, so that the analog-to-digital conversion module enters the comparison phase, thereby keeping the differential signal on the first capacitor array and the second capacitor array; in the comparison phase of the analog-to-digital conversion module, the first capacitor array generates a positive output signal based on the differential signal and sends it to the control module, and the second capacitor array generates a negative output signal based on the differential signal and sends it to the control module, so that the control module generates a control signal based on the positive output signal and the negative output signal, and the first capacitor array and the second capacitor array perform a ground conversion action based on the differential signal and the control signal.
[0086] In the specific implementation process, the first capacitor array and the second capacitor array have the same structure, and each includes n+1 capacitors, denoted as C1, C2,..., Cn+1 (n=1, 2,). The sampling switch submodule controls the differential signals Von and Vop to be transmitted and maintained on the capacitor array: in the sampling stage, the sampling switch submodule is turned on, and Von and Vop pass through the switch and the capacitor array; in the comparison stage, the sampling switch submodule is disconnected, and Von and Vop are maintained on the capacitor array. At this time, the first capacitor array outputs a positive output signal (V+), and the second capacitor array outputs a negative output signal (V-). At this time, V+=Von, V-=Vop, so that the control module obtains a single digital code according to V+ and V-, and the control module generates a control signal to control the switch of the lower plate of the capacitor array, thereby controlling the grounding GND or power supply VDD of the lower plate of the capacitor array, thereby generating new V+ and V-, and performing a cyclic conversion until the switching completion condition is met, that is, the switching of the lowest-order capacitor electrode plate is completed.
[0087] Optionally, the control module includes a comparator and a control logic sub-module, where: the positive input terminal of the comparator serves as the positive input terminal of the control module, the negative input terminal of the comparator serves as the negative input terminal of the control module, and the output terminal of the comparator is electrically connected to the input terminal of the control logic sub-module; the first control terminal of the control logic sub-module serves as the first control terminal of the control module, the second control terminal of the control logic sub-module serves as the second control terminal of the control module, the switch control terminal of the control logic sub-module serves as the switch control terminal of the control module, and the output terminal of the control logic sub-module serves as the output terminal of the control module; the comparator obtains an output comparison signal based on the positive output signal and the negative output signal; the control logic sub-module generates a regulation signal based on the output comparison signal to control the analog-to-digital conversion module to perform a ground conversion action based on the regulation signal, thereby obtaining an initial digital code.
[0088] In the specific implementation process, a comparator is used to compare V+ and V- to generate a comparison signal to obtain a single digital code and a regulation signal. For example: if V+ > V-, the lower plate of the highest-bit capacitor Cn+1 in the V+ terminal capacitor array switches from ground to VDD, the lower plate of the highest-bit capacitor Cn+1 in the V- terminal capacitor array remains unchanged, and the digital code Dn+1 is obtained; since the value of the lower plate of the capacitor in the V+ terminal changes, the V+ voltage changes, and the values of V+ and V- are compared again. If V+ > V-, continue to switch the lower plate of the capacitor Cn in the V+ terminal from ground to VDD; if V+ < V-, switch the lower plate of the capacitor Cn in the V- terminal from ground GND to VDD, and the digital code Dn is obtained; compare and switch the lower plates of the capacitor array in sequence until the switching of the electrode plates of the lowest-bit capacitor C1 is completed, and the digital code Dn+1 (n = 1, 2...) is obtained, and the obtained digital code is sent and stored in the register of the error calibration module.
[0089] In the specific implementation process, the N+1bit digital code Dn+1 (n = 1, 2...) obtained by the error calibration module includes the system offset. The error calibration module subtracts the offset digital code saved in the register during the reset phase from Dn+1 (n = 1, 2...) and discards the highest bit to obtain the final N bit target digital code Dn (n = 1, 2...).
[0090] Optionally, the system further includes: a voltage buffer module, where: the first receiving terminal of the voltage buffer module is electrically connected to the first output terminal of the single-ended to differential conversion, the second receiving terminal of the voltage buffer module is electrically connected to the second output terminal of the single-ended to differential conversion, the first output terminal of the voltage buffer module is electrically connected to the first receiving terminal of the analog-to-digital conversion module, and the second output terminal of the voltage buffer module is electrically connected to the second receiving terminal of the analog-to-digital conversion module.
[0091] In the specific implementation process, by adding a voltage buffer module to provide a larger driving current, the conversion system can still stably and with less error transfer the single-to-double output voltage to the next stage during high-speed operation, enhancing the stability and anti-interference ability of the system.
[0092] The present embodiment provides a voltage-to-digital conversion system for temperature detection. The clock signal sent by the control module controls the grounding of the logic switch module, thereby generating an offset digital code based on the basic operating state of each module, and controlling other modules to perform differential processing, range conversion processing and voltage-to-digital conversion processing based on the temperature voltage signal, thereby obtaining an initial digital code and realizing digital conversion of temperature and voltage, and controlling the error calibration module to perform calibration based on the offset digital code and the initial digital code to obtain the required target digital code, thereby improving the temperature detection accuracy of the system based on temperature-voltage numerical conversion; using a single-ended to differential module for differential processing and narrowing the voltage input range, and adding a voltage buffer module, thereby realizing conversion detection of the full temperature voltage range; the system realizes accurate monitoring of temperature values through the interaction of each module, and has an offset calibration function and strong anti-interference ability.
[0093] Embodiment three:
[0094] This embodiment provides a voltage-to-digital converter for temperature detection. Figure 3 As shown, it includes: a temperature sensor, a logic switch circuit, a single-ended to differential circuit, a sampling switch, a first capacitor array, a second capacitor array, a comparator, a control logic circuit and an error calibration circuit (DEC), wherein: the output end of the temperature sensor is electrically connected to the receiving end of the logic switch circuit; the output end of the logic switch circuit is electrically connected to the receiving end of the single-ended to differential circuit, the output end of the logic switch circuit is grounded, and the adjustment end of the logic switch circuit is electrically connected to the switch control end of the control logic circuit; the first output end of the single-ended to differential circuit is electrically connected to the first input end of the sampling switch, and the second output end of the single-ended to differential circuit is electrically connected to the sampling The second input terminal of the sampling switch is electrically connected, the first output terminal of the sampling switch is electrically connected to the input terminal of the first capacitor array, and the second output terminal of the sampling switch is electrically connected to the input terminal of the second capacitor array; the lower plate interface of the first capacitor array is electrically connected to the positive input terminal of the comparator, the lower plate interface of the second capacitor array is electrically connected to the negative input terminal of the comparator, the first capacitor array regulation terminal is electrically connected to the first control terminal of the control logic circuit, and the second capacitor array regulation terminal is electrically connected to the second control terminal of the control logic circuit; the output terminal of the comparator is electrically connected to the input terminal of the control logic circuit, and the output terminal of the control logic circuit is electrically connected to the receiving terminal of the error calibration circuit. The logic switch circuit includes switches sw1 and sw2, sw2 is a ground switch; the first capacitor array and the second capacitor array have the same structure, and respectively contain n+1 capacitors, which are recorded as C1, C2, ..., Cn+1 (n=1, 2, ...).
[0095] In the specific implementation process, the control logic circuit generates non-overlapping clocks (i.e., the reset clock signal and the conversion clock signal) to control the switches of sw1 and sw2. During the reset phase, sw1 is closed and sw2 is open, and the ground signal (GND) is connected to the voltage digital converter to obtain an offset digital code, which contains the offset of the digital output code value caused by the system offset. This value is stored in the register of the error calibration circuit (DEC). During the normal conversion phase, sw2 is closed and sw1 is open, and the voltage value (Vin) converted from the temperature by the sensor is transmitted to the voltage digital converter. The voltage value Vin is converted into output values Von and Vop through a single-to-double circuit, where Von = VCM + |Vin - VCM| / 2 and Vop = VCM - |Vin - VCM| / 2. During the sampling phase, the sampling switch conducts, and Von and Vop pass through the switch and the capacitor array; during the comparison phase, the sampling switch disconnects, and Von and Vop are held on the capacitor array, V+ = Von, V- = Vop, and the comparator compares the magnitudes of V+ and V-. The output value of the comparator is stored in the DEC register and also controls the switch of the lower plate of the capacitor array to control whether the lower plate is grounded to GND or connected to the power supply VDD. If V+ > V-, the lower plate of the highest-bit capacitor Cn+1 of the V+ -end capacitor array is switched from ground to VDD, the lower plate of the highest-bit capacitor Cn+1 of the V- -end capacitor array remains unchanged, and the digital code Dn+1 is obtained. Due to the switching of the lower plate value of the V+ -end capacitor, the V+ voltage changes, and the values of V+ and V- are compared again. If V+ > V-, the lower plate of the V+ -end capacitor Cn is continued to be switched from ground to VDD; if V+ < V-, the lower plate of the V- -end capacitor Cn is switched from ground GND to VDD, and the digital code Dn is obtained. The lower plates of the capacitor array are compared and switched in sequence until the switching of the electrode plates of the lowest-bit capacitor C1 is completed, and the digital codes Dn+1 (n = 1, 2...) are stored in the DEC register.
[0096] In the specific implementation process, the first capacitor array, the second capacitor array, the comparator, and the control logic circuit implement the function of a successive approximation analog-to-digital converter (SAR ADC), including N + 1 conversion cycles, and the N + 1-bit digital code is output to the next stage. Since the range of the single-ended-to-differential circuit is reduced by 1 / 2, its actual effective code value range is only N bits. DEC subtracts the offset (OFFSET) code from the N + 1-bit digital code and discards the highest bit to convert it into an N-bit digital code; the code range corresponding to the extra 1-bit code can be used to process the overall digital code offset problem caused by the system offset: for example, due to the deviation in the production of comparator transistors, an offset will be generated, which is equivalent to generating a fixed voltage at the input end of the comparator; and when the capacitor array is produced, the capacitance value deviation will cause a mismatch error, and these system offset errors will all cause the overall digital code offset (OFFSET).
[0097] The converter provided in this embodiment converts temperature into a digital signal that can be processed by a microcontroller (MCU), so that temperature information can be accurately monitored and can be used to perform operations such as cooling the chip. It has the advantages of high detection accuracy, fast conversion speed, the ability to achieve conversion of the entire power supply voltage input range, offset calibration function and strong anti-interference ability.
[0098] Embodiment 4:
[0099] This embodiment provides a temperature voltage input and output variation range of a voltage-to-digital conversion system for temperature detection, such as Figure 4 As shown: A1 represents the temperature voltage signal input range of the single-ended to differential module, which is GND~VDD, the lower plate switching value of the capacitor array is GND~VDD, and the capacitor array conversion cycle is N+1 cycles, so the input voltage 0-VDD corresponds to the digital code Dn+1 (n=1, 2...) output in N+1 cycles; the single-ended to differential module changes the input range from GND~VDD to 1 / 2VCM~3 / 2VCM, that is, A2, the range of change is reduced by half, and the reduced common mode voltage VCM is still 1 / 2VDD; the digital code corresponding to this voltage range should ideally be B1, that is, N bit range and no offset (offset digital code); when the system is out of adjustment, the N bit digital range will move up or down as a whole, and the figure shows an overall upward shift, and the output is B2, that is, N bit range and with offset; at this time, the capacitor array conversion cycle is N+1, and the N+1bit digital code is obtained, but only half of it is actually valid, that is, N in the figure bit range, the rest is redundant (C); as shown in the example D in the figure, it is a 4-bit (0000~1111) code, the ideal valid range is 0100 to 1011. When the system has an offset, the valid range is 0101 to 1101, where 0101 is the offset code. The 4-bit digital code 1011 converted from Vin is subtracted from the offset code 0101 to get 0110, and then the highest bit is discarded to get the final output 3-bit digital code 110; the 3-bit digital code corresponding to the lowest input voltage GND of the voltage-to-digital converter is 000, and the 3-bit digital code corresponding to the highest voltage VDD is 111.
[0100] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A voltage-to-digital conversion method for temperature detection, characterized in that: The invention is applied to a voltage digital conversion system, wherein the voltage digital conversion system comprises a control module, an analog-to-digital conversion module, an error calibration module, a logic switch module, a temperature sensor and a single-ended to differential module, wherein the control module is electrically connected to the analog-to-digital conversion module, the control module is electrically connected to the error calibration module, the control module is electrically connected to the logic switch module, the logic switch module is electrically connected to the temperature sensor, the logic switch module is electrically connected to the single-ended to differential module, and the single-ended to differential module is electrically connected to the analog-to-digital conversion module; the method takes the control module as the execution subject and comprises the following steps: generating a reset clock signal and a conversion clock signal; In the reset phase of the voltage-to-digital conversion system, the logic switch module is controlled to perform a grounding action based on the reset clock signal, thereby obtaining an offset digital code; In the conversion phase of the voltage-to-digital conversion system, the logic switch module is controlled to perform a path action based on the conversion clock signal, so that the logic switch module receives the temperature voltage signal fed back by the temperature sensor and sends the temperature voltage signal to the single-ended to differential module, and then the single-ended to differential module obtains the differential signal based on the temperature voltage signal, thereby controlling the single-ended to differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs the analog-to-digital conversion step and feeds back the positive output signal and the negative output signal; Acquire a control signal based on the positive output signal and the negative output signal, and acquire an initial digital code based on the control signal and the differential signal; The control error calibration module obtains the target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage.
2. The voltage-to-digital conversion method for temperature detection according to claim 1, characterized in that: In the conversion phase of the voltage-to-digital conversion system, the logic switch module is controlled to perform a path action based on a conversion clock signal, so that the logic switch module receives a temperature voltage signal fed back by a temperature sensor and sends the temperature voltage signal to a single-ended-to-differential module, and then the single-ended-to-differential module obtains a differential signal based on the temperature voltage signal, thereby controlling the single-ended-to-differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs an analog-to-digital conversion step and feeds back a positive output signal and a negative output signal, including: In the conversion phase of the voltage-to-digital conversion system, the logic switch module is controlled to perform a path action based on the conversion clock signal, so that the logic switch module receives the temperature voltage signal fed back by the temperature sensor and sends the temperature voltage signal to the single-ended to differential module, thereby enabling the single-ended to differential module to obtain an initial differential signal based on the temperature voltage signal; Then, the single-ended to differential module obtains a differential signal according to a preset output transition range based on the initial differential signal, thereby controlling the single-ended to differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs the analog-to-digital conversion step and feeds back a positive output signal and a negative output signal.
3. The voltage-to-digital conversion method for temperature detection according to claim 1, characterized in that: The step of obtaining a control signal based on the positive output signal and the negative output signal, and obtaining an initial digital code based on the control signal and the differential signal, comprises: generating an output comparison signal based on the positive output signal and the negative output signal to obtain a control signal based on the output comparison signal; Based on the control signal and the differential signal, the analog-to-digital conversion module is controlled to perform a ground conversion action to obtain an initial digital code.
4. The voltage-to-digital conversion method for temperature detection according to claim 3, characterized in that: The method of controlling the analog-to-digital conversion module to perform a ground conversion action based on the control signal and the differential signal to obtain an initial digital code includes: Based on the control signal and the differential signal, the analog-to-digital conversion module is controlled to perform a ground conversion action, so that the analog-to-digital conversion module is in a switching state, and a single digital code is obtained; By making the analog-to-digital conversion module in the switching state generate a post-switching positive output signal and a post-switching negative output signal based on the differential signal, and generating a post-switching output comparison signal based on the post-switching positive output signal and the post-switching negative output signal, thereby obtaining a post-switching control signal based on the post-switching output comparison signal, and then controlling the switching state analog-to-digital conversion module to perform a grounding conversion action based on the post-switching control signal to obtain the next single digital code until a preset switching completion condition is met; An initial digital code is obtained based on all the individual digital codes.
5. The voltage-to-digital conversion method for temperature detection according to claim 2, characterized in that: The control error calibration module obtains a target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage, including: The control error calibration module obtains a wide range digital code based on the offset digital code and the initial digital code; Based on the large-range digital code and the preset output transition range, the target digital code is acquired by performing reverse transformation, thereby completing the digital conversion of the temperature voltage.
6. A voltage-to-digital conversion system for temperature detection, characterized in that: A voltage-to-digital conversion method for temperature detection according to any one of claims 1 to 5 is implemented, comprising: a control module, an analog-to-digital conversion module, an error calibration module, a logic switch module, a temperature sensor and a single-ended-to-differential conversion module, wherein: The temperature sensor detection end is located at the location to be detected, the temperature sensor output end is electrically connected to the logic switch module receiving end, the temperature sensor performs temperature detection on the location to be detected to obtain a temperature voltage signal, and feeds back the temperature voltage signal to the logic switch module; The output end of the logic switch module is electrically connected to the receiving end of the single-ended to differential conversion module, and the regulating end of the logic switch module is electrically connected to the switch control end of the control module; in the reset phase of the voltage digital conversion system, the logic switch module performs a grounding action based on the reset clock signal, thereby enabling the control module to obtain the offset digital code; in the conversion phase of the voltage digital conversion system, the logic switch module performs a path action based on the conversion clock signal to receive the temperature voltage signal fed back by the temperature sensor, and sends the temperature voltage signal to the single-ended to differential conversion module; The first output end of the single-ended to differential module is electrically connected to the first receiving end of the analog-to-digital conversion module, and the second output end of the single-ended to differential module is electrically connected to the second receiving end of the analog-to-digital conversion module; the single-ended to differential module obtains a differential signal based on the temperature voltage signal, and feeds back the differential signal to the analog-to-digital conversion module; The positive output terminal of the analog-to-digital conversion module is electrically connected to the positive input terminal of the control module, the negative output terminal of the analog-to-digital conversion module is electrically connected to the negative input terminal of the control module, the first regulating terminal of the analog-to-digital conversion module is electrically connected to the first control terminal of the control module, and the second regulating terminal of the analog-to-digital conversion module is electrically connected to the second control terminal of the control module; the analog-to-digital conversion module performs an analog-to-digital conversion step based on the differential signal to obtain a positive output signal and a negative output signal, and feeds back the positive output signal and the negative output signal to the control module; The output end of the control module is electrically connected to the receiving end of the error calibration module; the control module generates a reset clock signal and a conversion clock signal, so as to control the logic switch module to perform a grounding action based on the reset clock signal in the reset phase of the voltage digital conversion system, thereby obtaining an offset digital code, and feeding back the offset digital code to the error calibration module; in the conversion phase of the voltage digital conversion system, the logic switch module is controlled to perform a path action based on the conversion clock signal, so as to enable the logic switch module to receive the temperature voltage signal fed back by the temperature sensor and send the temperature voltage signal to the single-ended to differential module, thereby enabling the single-ended to differential module to obtain a differential signal based on the temperature voltage signal, thereby controlling the single-ended to differential module to feed back the differential signal to the analog-to-digital conversion module, so that the analog-to-digital conversion module performs an analog-to-digital conversion step and feeds back a positive output signal and a negative output signal; thereby obtaining a control signal based on the positive output signal and the negative output signal, and obtaining an initial digital code based on the control signal and the differential signal, and feeding back the initial digital code to the error calibration module; finally, the error calibration module is controlled to obtain a target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage; The error calibration module obtains a target digital code based on the offset digital code and the initial digital code, thereby completing the digital conversion of the temperature voltage.
7. A voltage-to-digital conversion system for temperature detection according to claim 6, characterized in that: The logic switch module includes a grounding submodule and a path submodule, wherein: The first end of the grounding submodule is grounded, the first end of the grounding submodule serves as the grounding end of the logic switch module, and the output end of the grounding submodule is electrically connected to the output end of the passage submodule; The receiving end of the path submodule serves as the receiving end of the logic switch module, and the output end of the path submodule serves as the output end of the logic switch module; The grounding submodule performs a grounding action based on a reset clock signal during the reset phase of the voltage-to-digital conversion system, thereby enabling the control module to obtain an offset digital code; The path submodule performs a path action based on a conversion clock signal during the conversion phase of the voltage-to-digital conversion system to receive a temperature voltage signal fed back by a temperature sensor and send the temperature voltage signal to the single-ended-to-differential conversion module.
8. The voltage-to-digital conversion system for temperature detection according to claim 6, characterized in that: The analog-to-digital conversion module comprises a sampling switch submodule, a first capacitor array and a second capacitor array, wherein: The positive input end of the sampling switch submodule is used as the first receiving end of the analog-to-digital conversion module, the negative input end of the sampling switch submodule is used as the second receiving end of the analog-to-digital conversion module, the positive output end of the sampling switch submodule is electrically connected to the first capacitor array input end, and the negative output end of the sampling switch submodule is electrically connected to the second capacitor array input end; The lower plate interface of the first capacitor array is electrically connected to the positive input terminal of the control module, the lower plate interface of the first capacitor array serves as the positive output terminal of the analog-to-digital conversion module, and the regulating terminal of the first capacitor array serves as the first regulating terminal of the analog-to-digital conversion module; The lower plate interface of the second capacitor array is electrically connected to the negative input terminal of the control module, the lower plate interface of the second capacitor array serves as the negative output terminal of the analog-to-digital conversion module, and the control terminal of the second capacitor array serves as the second control terminal of the analog-to-digital conversion module; The sampling switch submodule is turned on during the conversion phase of the voltage digital conversion system, so that the analog-to-digital conversion module enters the sampling phase and obtains the differential signal, and is turned off after the analog-to-digital conversion module obtains the differential signal, so that the analog-to-digital conversion module enters the comparison phase, thereby keeping the differential signal on the first capacitor array and the second capacitor array; In the comparison stage of the analog-to-digital conversion module, the first capacitor array generates a positive output signal based on the differential signal and sends it to the control module, and the second capacitor array generates a negative output signal based on the differential signal and sends it to the control module, so that the control module generates a control signal based on the positive output signal and the negative output signal, and the first capacitor array and the second capacitor array perform ground conversion based on the differential signal and the control signal.
9. A voltage-to-digital conversion system for temperature detection according to claim 8, characterized in that: The control module includes a comparator and a control logic submodule, wherein: The positive input terminal of the comparator is used as the positive input terminal of the control module, the negative input terminal of the comparator is used as the negative input terminal of the control module, and the output terminal of the comparator is electrically connected to the input terminal of the control logic submodule; The first control end of the control logic submodule serves as the first control end of the control module, the second control end of the control logic submodule serves as the second control end of the control module, the switch control end of the control logic submodule serves as the switch control end of the control module, and the output end of the control logic submodule serves as the output end of the control module; The comparator obtains an output comparison signal based on the positive output signal and the negative output signal; The control logic submodule generates a control signal based on the output comparison signal, so as to control the analog-to-digital conversion module to perform a ground conversion action based on the control signal, thereby obtaining an initial digital code.
10. The voltage-to-digital conversion system for temperature detection according to claim 6, characterized in that: Also includes: Voltage buffer module, where: The first receiving end of the voltage buffer module is electrically connected to the first output end of the single-ended differential converter, the second receiving end of the voltage buffer module is electrically connected to the second output end of the single-ended differential converter, the first output end of the voltage buffer module is electrically connected to the first receiving end of the analog-to-digital conversion module, and the second output end of the voltage buffer module is electrically connected to the second receiving end of the analog-to-digital conversion module.
Citation Information
Patent Citations
Temperature conversion method and a low-power high-precision integrated temperature sensor
CN104390715A
Digital-to-analog conversion device and method
CN104734719A
Low-power-consumption low-cost digital CMOS temperature sensor
CN117309171A
Analog-digital converter having multiple feedback, and communication device including the analog-digital converter
US20190207620A1
Temperature Sensor Semiconductor Device With Pair of Diodes and Feedback Loop
US20210164843A1