CN103684451A - Deviation compensation device for A/D converter and temperature detecting device and method - Google Patents

Deviation compensation device for A/D converter and temperature detecting device and method Download PDF

Info

Publication number
CN103684451A
CN103684451A CN201210356406.4A CN201210356406A CN103684451A CN 103684451 A CN103684451 A CN 103684451A CN 201210356406 A CN201210356406 A CN 201210356406A CN 103684451 A CN103684451 A CN 103684451A
Authority
CN
China
Prior art keywords
converter
digital signal
resistance
normal voltage
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210356406.4A
Other languages
Chinese (zh)
Inventor
霍军亚
李强
罗宇华
付新
滕建文
梁敏游
张武军
袁兰浪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GD Midea Air Conditioning Equipment Co Ltd
Original Assignee
Guangdong Midea Refrigeration Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Midea Refrigeration Equipment Co Ltd filed Critical Guangdong Midea Refrigeration Equipment Co Ltd
Priority to CN201210356406.4A priority Critical patent/CN103684451A/en
Publication of CN103684451A publication Critical patent/CN103684451A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a deviation compensation device for an A/D converter. The device includes a standard-voltage provider used for providing a standard voltage; an A/D converter used for performing A/D conversion on the standard voltage provided by the standard-voltage provider and generating a first digital signal; and a controller used for comparing the first digital signal and a preset standard digital signal so as to generate a deviation signal and performing compensation on the conversion result of the A/D converter according to the deviation signal. The invention also discloses a temperature detecting device and a temperature detecting method. The deviation compensation device is capable of performing compensation on the conversion result of the A/D converter so that sampling precision of data is improved.

Description

A/D converter is carried out to device, temperature-detecting device and the method for deviation compensation
Technical field
The present invention relates to electron electric power technical field, particularly a kind of device, temperature-detecting device and temperature checking method that A/D converter is carried out to deviation compensation.
Background technology
Along with IC(Integrated Circuit, integrated circuit) raising of integrated level, the main control MCU that current domestic electric appliance is used (Micro Control Unit, microcontroller) is all built-in with an analog-digital conversion module (A/D converter) and a plurality of analog to digital input channel mostly.
Fig. 1 shows existing temperature sensing circuit and auxiliary circuit thereof, and MCU(IC1) and peripheral auxiliary circuits.In MCU, be built-in with A/D converter.Use same A/D converter one by one the analog quantity of the temperature detection signal from temperature sensing circuit to be converted to the needed data volume of MCU by selector channel.Realize thus temperature, electric current, voltage and other environmental index collection.But the built-in A/D converter of MCU has following shortcoming:
(1) A/D converter is built in MCU inside completely, and conversion accuracy can only be determined by the Design and manufacture level of the manufacturer of MCU, and household electrical appliances producer cannot improve the precision of A/D converter.
(2) technical merit of different MCU producers is different, and the precision of its A/D converter is also inconsistent.If household electrical appliances producer adopts the IC of different MCU producer simultaneously, its Product Precision designing also can be inconsistent.The transformation result deviation of finding the built-in mould A/D converter of most of MCU through measuring is 1-3 data bit.
Above-mentioned shortcoming causes the transformation result deviation of A/D converter larger, and sampling precision is not high, thereby affects follow-up using and controlling transformation result.
Summary of the invention
The present invention one of is intended to solve the problems of the technologies described above at least to a certain extent or at least provides a kind of useful business to select.For this reason, first object of the present invention is to propose a kind of device that A/D converter is carried out to deviation compensation, and this device can compensate the transformation result of A/D converter, thereby improves the sampling precision of data.Second object of the present invention is to propose a kind of temperature-detecting device.The 3rd object of the present invention is to propose a kind of temperature checking method.
For achieving the above object, the embodiment of first aspect present invention provides a kind of device that A/D converter is carried out to deviation compensation, comprising: normal voltage provides device, for normal voltage is provided; A/D converter, for providing the normal voltage that device provides to carry out A/D conversion and generate the first digital signal to described normal voltage; Controller, for described the first digital signal and preset standard digital signal are compared to generate deviation signal, and compensates the transformation result of described A/D converter according to described deviation signal.
According to the embodiment of the present invention, A/D converter is carried out to the device of deviation compensation, by calculating the deviation of A/D converter mould conversion, and according to deviation, the transformation result of A/D converter is compensated, the transformation result of A/D converter can be temperature, electric current, voltage and other environmental index collection result, thereby realize accuracy calibration effect, improve the sampling precision of the relevant parameter of the product collecting.
This scheme is used on controller electric current, voltage sample, can be improved the control high accuracy of air conditioner direct current brushless compressor, refrigerator brush DC compressor, direct-current brushless fan motor.This scheme is used to the collection in other environmental parameters such as carbon dioxide, dust, can improve certainty of measurement and control precision equally.
In one embodiment of the invention, the first resistance and the second resistance that described normal voltage provides device to comprise mutual series connection, between described the first resistance and the second resistance, there is node, the input of described A/D converter is connected with described node, and one end of described the first resistance is connected with power supply, one end of described the second resistance is connected to the ground.
Further, described A/D converter and described controller are positioned among same microcontroller.
The embodiment of second aspect present invention provides a kind of temperature-detecting device, comprising: temperature detecting unit, for generating temperature detection signal; Normal voltage provides device, for normal voltage is provided; Microcontroller, described microcontroller has A/D converter, described in described microprocessor controls, A/D converter provides the normal voltage that device provides to carry out A/D conversion and generate the first digital signal to described normal voltage, and the temperature detection signal that described temperature detecting unit is generated carries out A/D conversion and generates the second digital signal, and described the first digital signal and preset standard digital signal are compared to generate deviation signal, and according to described deviation signal, described the second digital signal is compensated.
According to the temperature-detecting device of the embodiment of the present invention, by calculating the deviation of A/D converter mould conversion, and according to deviation, the temperature digital amount of A/D converter is compensated, thereby realize the accuracy calibration effect to temperature digital amount, improve the sampling precision of the temperature collecting.
In one embodiment of the invention, the first resistance and the second resistance that described normal voltage provides device to comprise mutual series connection, between described the first resistance and the second resistance, there is node, the input of described A/D converter is connected with described node, and one end of described the first resistance is connected with power supply, one end of described the second resistance is connected to the ground.
The embodiment of third aspect present invention provides a kind of temperature checking method, comprises the steps:
Detect the temperature of device under test and generate temperature detection signal, and normal voltage is provided;
Described normal voltage is carried out A/D conversion and generated the first digital signal, and described temperature detection signal is carried out A/D conversion and generates the second digital signal;
Described the first digital signal and preset standard digital signal are compared to generate deviation signal; And
According to described deviation signal, described the second digital signal is compensated.
According to the temperature checking method of the embodiment of the present invention, by calculating the deviation of A/D converter mould conversion, and according to deviation, the temperature digital amount of A/D converter is compensated, thereby realize the accuracy calibration effect to temperature digital amount, improve the sampling precision of the temperature collecting.
The temperature checking method of the embodiment of the present invention, also comprises the steps: the result after described the second digital signal being compensated according to described deviation signal, calculates the temperature of the described device under test detecting.
Additional aspect of the present invention and advantage in the following description part provide, and part will become obviously from the following description, or recognize by practice of the present invention.
Accompanying drawing explanation
Above-mentioned and/or additional aspect of the present invention and advantage accompanying drawing below combination obviously and is easily understood becoming the description of embodiment, wherein:
Fig. 1 is the circuit diagram of existing temperature-detecting device;
Fig. 2 is for carrying out the structural representation of the device of deviation compensation according to the embodiment of the present invention to A/D converter;
Fig. 3 is for carrying out the circuit diagram of the device of deviation compensation according to the embodiment of the present invention to A/D converter;
Fig. 4 is according to the schematic diagram of the temperature-detecting device of the embodiment of the present invention;
Fig. 5 is according to the circuit diagram of the temperature-detecting device of the embodiment of the present invention;
Fig. 6 is according to the circuit diagram of the A/D converter of the embodiment of the present invention;
Fig. 7 is according to the flow chart of the temperature checking method of the embodiment of the present invention;
Fig. 8 is the deviation signal product process figure according to the embodiment of the present invention; And
Fig. 9 is according to the flow chart compensating according to deviation signal of the embodiment of the present invention.
Embodiment
Describe embodiments of the invention below in detail, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of identical or similar functions from start to finish.Below by the embodiment being described with reference to the drawings, be exemplary, be intended to for explaining the present invention, and can not be interpreted as limitation of the present invention.
In addition, term " first ", " second " be only for describing object, and can not be interpreted as indication or hint relative importance or the implicit quantity that indicates indicated technical characterictic.Thus, one or more these features can be expressed or impliedly be comprised to the feature that is limited with " first ", " second ".In description of the invention, the implication of " a plurality of " is two or more, unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, the terms such as term " installation ", " being connected ", " connection ", " fixing " should be interpreted broadly, and for example, can be to be fixedly connected with, and can be also to removably connect, or connect integratedly; Can be mechanical connection, can be to be also electrically connected to; Can be to be directly connected, also can indirectly be connected by intermediary, can be the connection of two element internals.For the ordinary skill in the art, can understand as the case may be above-mentioned term concrete meaning in the present invention.
Below with reference to Fig. 2 and Fig. 3, the device that A/D converter is carried out to deviation compensation of the embodiment of the present invention is described.
As shown in Figure 2, the device 100 that A/D converter is carried out to deviation compensation of the embodiment of the present invention comprises that normal voltage provides device 110, A/D converter 120 and controller 130.
Normal voltage provides device 110 to provide normal voltage to A/D converter 120, and this normal voltage is analog signal.
A/D converter 120, after receiving this normal voltage, carries out this normal voltage A/D conversion and generates the first digital signal Value1.
In one embodiment of the invention, 120 pairs of normal voltages of A/D converter provide the normal voltage that device 110 provides to gather M time, and carry out respectively A/D conversion, obtain M digital quantity.120 couples of above-mentioned M of A/D converter digital quantity values of averaging are calculated, and obtain the first digital signal Value1, and this first digital signal Value1 is provided to controller 130.Wherein, M >=1.Preferably, M=100.
Controller 130 compares the first digital signal Value1 from A/D converter 120 and preset standard digital signal Value2, and generates deviation signal Value3 according to comparative result.
Wherein, Value3=Value1-Value2.
In an example of the present invention, the theoretical digital quantity that preset standard digital signal Value2 is normal voltage.Wherein, preset standard digital signal Value2 can provide the circuit structure of device 110 and the figure place of A/D converter 120 to calculate according to normal voltage by controller 130.
Controller 130 further obtains the transformation result Value_out1 of A/D converter 120, and according to deviation signal Value3, transformation result Value_out1 is compensated, and is compensated rear transformation result Value_out2.
Wherein, Value_out2=Value_out1-Value3=Value_out1-(Value1-Value2).
After compensation, transformation result Value_out2 has higher precision with respect to Value_out1, and the conversion accuracy that has overcome A/D converter 120 self is not high, and the problem that transformation result deviation is large, realized more accurately to signal collecting and controlling.
In one embodiment of the invention, A/D converter 120 and controller 130 can independently arrange, and also can be positioned at same MCU(Micro Control Unit, microcontroller) in.
Fig. 3 shows a kind of circuit structure that normal voltage provides device 110.As shown in Figure 3, normal voltage provides device 110 to comprise the first resistance R 21 and the second resistance R 20, and wherein, the first resistance R 21 and the second resistance R 20 are connected mutually, and one end of the first resistance R 21 is connected with power supply, and one end of the second resistance R 20 is connected with signal ground.Wherein, the magnitude of voltage of power supply can be 5V.It should be noted that, the magnitude of voltage of above-mentioned power supply only for exemplary purposes, rather than in order to limit the present invention, provide to the voltage of the first resistance R 21 can also be other magnitudes of voltage.
In an embodiment of the present invention, when A/D converter 120 and controller 130 are arranged in same MCU, one end of the first resistance R 21 is connected with the anodal AVref of reference voltage of A/D converter 120 in MCU, and one end of the second resistance R 20 is connected with the reference voltage negative pole AVss of A/D converter 120 in MCU.
Wherein, the first resistance R 21 and the second resistance R 20 are precision resister.Preferably, the precision of the first resistance R 21 and the second resistance R 20 is 0.05%.
Preferably, the first resistance R 21 is 20K ohm, and precision is that 0.05%, the second resistance R 20 is 410 ohm, and precision is 0.05%.
Between the first resistance R 21 and the second resistance R 20, there is node A, node A outputting standard voltage.The input of A/D converter 120 is connected to gather normal voltage with this node A, the output of A/D converter 120 is connected with controller 130.
A/D converter 120 gathers the normal voltage that M minor node A provide, and carries out respectively A/D and be converted to M digital quantity, to above-mentioned N the digital quantity value of averaging calculating, obtains the first digital signal Value1, and provides to controller 130.
The theoretical digital quantity of the normal voltage that controller 130 computing node A provide, i.e. preset standard digital signal Value2.
Wherein, Value2=R20* (2 n-1)/and (R21+R20), N is the figure place of A/D converter 120, for example 8,10 or 12.
Controller 130 compares the first digital signal Value1 and the above-mentioned Value2 calculating, generate deviation signal Value3, and according to deviation signal Value3, the transformation result Value_out1 of A/D converter 120 is compensated, be compensated rear transformation result Value_out2.The conversion accuracy that overcomes thus A/D converter 120 self is not high, and the problem that transformation result deviation is large, has realized more accurately to signal collecting and controlling.
Be understandable that, the circuit that above-mentioned normal voltage provides device 110 is the object in example only, and normal voltage provides device to provide under the object of normal voltage can realize to A/D converter 120, can also, for other circuit structures, not repeat them here.
According to the embodiment of the present invention, A/D converter is carried out to the device of deviation compensation, by calculating the deviation of A/D converter mould conversion, and according to deviation, the transformation result of A/D converter is compensated, the transformation result of A/D converter can be temperature, electric current, voltage and other environmental index collection result, thereby realize accuracy calibration effect, improve the sampling precision of the relevant parameter of the product collecting.The device that A/D converter is carried out to deviation compensation of the embodiment of the present invention can also be applied on the electric current, voltage sample of the controller of air-conditioning, refrigerator and fan, thereby can improve the brush DC compressor of air-conditioning, the control high accuracy of the brush DC compressor of refrigerator, direct-current brushless fan motor.In addition, the device that A/D converter is carried out to deviation compensation of the embodiment of the present invention further can be applied to the collection to other environmental parameters such as carbon dioxide, dust, can improve certainty of measurement and control precision equally.
To sum up, the device that A/D converter is carried out to deviation compensation of the embodiment of the present invention goes for multiple acquisition parameter, by calculating the deviation of A/D converter mould conversion, and according to deviation, A/D converter is compensated the transformation result of above-mentioned acquisition parameter, all can realize the precision measure to corresponding acquisition parameter, improve the sampling precision of relevant parameter.
Below with reference to Fig. 4 to Fig. 6, describe according to the temperature-detecting device 1000 of the embodiment of the present invention.
As shown in Figure 4, according to the temperature-detecting device 1000 of the embodiment of the present invention, comprise that temperature detecting unit 200, normal voltage provide device 110 and microcontroller 300.Wherein, microcontroller 300 has A/D converter.
Temperature detecting unit 200 can detect the temperature of device under test, and generates temperature detection signal, and this temperature detection signal is sent to microcontroller 300.Wherein, this temperature detection signal is analog signal.It should be noted that, temperature detecting unit 200 comprises temperature sensor and accessory circuit thereof.The accessory circuit collaborative work of temperature sensor and this temperature sensor, realizes the detection to the temperature of device under test, and the corresponding temperature detection signal generating is further sent to microcontroller 300.
Normal voltage provides device 110 to provide normal voltage to the A/D converter in microcontroller 300, and this normal voltage is analog signal.
Microcontroller 300 is controlled A/D converter provides the normal voltage that device 110 provides to carry out A/D conversion and generate the first digital signal Value1 to normal voltage respectively, and the temperature detection signal that temperature detecting unit 200 is sent carries out A/D conversion and generates the second digital signal Value_Temp1.
Particularly, A/D converter gathers M time normal voltage, and carries out respectively A/D conversion, obtains M digital quantity.A/D converter calculates above-mentioned M digital quantity value of averaging, and obtains the first digital signal Value1.Wherein, M >=1.Preferably, M=100.
Microcontroller 300 compares the first digital signal Value1 from A/D converter and preset standard digital signal Value2, and generates deviation signal Value3 according to comparative result.
Wherein, Value3=Value1-Value2.
In an example of the present invention, the theoretical digital quantity that preset standard digital signal Value2 is normal voltage.Wherein, preset standard digital signal Value2 can provide the circuit structure of device 110 and the figure place of A/D converter to calculate according to normal voltage by microcontroller 300.
Microcontroller 300 further obtains the second digital signal Value_Temp1, and according to deviation signal Value3, the second digital signal Value_Temp1 is compensated, and is compensated rear transformation result Value_Temp2.
Wherein, Value_Temp2=Value_Temp1-Value3=Value_Temp1-(Value1-Value 2).
After compensation, transformation result Value_Temp2 has higher precision with respect to Value_Temp1, and the conversion accuracy that has overcome A/D converter self is not high, and the problem that transformation result deviation is large has realized more accurately to the collection of temperature and control.
As shown in Figure 5, normal voltage provides device 110 to comprise the first resistance R 21 and the second resistance R 20, wherein, the first resistance R 21 and the second resistance R 20 are connected mutually, one end of the first resistance R 21 is connected with the anodal AVref of reference voltage of A/D converter in microcontroller 300, and one end of the second resistance R 20 is connected with the reference voltage negative pole AVss of A/D converter in microcontroller 300.
Wherein, the first resistance R 21 and the second resistance R 20 are precision resister.Preferably, the precision of the first resistance R 21 and the second resistance R 20 is 0.05%.
Preferably, the first resistance R 21 is 20K ohm, and precision is that 0.05%, the second resistance R 20 is 410 ohm, and precision is 0.05%.
Between the first resistance R 21 and the second resistance R 20, there is node A, node A outputting standard voltage.The input ANI7/P27 of A/D converter 120 is connected to gather normal voltage with this node A.
A/D converter gathers the normal voltage that M minor node A provides, and carries out respectively A/D and be converted to M digital quantity, to above-mentioned N the digital quantity value of averaging calculating, obtains the first digital signal Value1.
Fig. 6 shows the circuit diagram of the A/D converter in microcontroller 300.As shown in FIG., A/D converter comprises channel to channel adapter 121, sampling and holding circuit 122, successively comparison controller 123, voltage comparator 124 and series resistance configurator 125.
Channel to channel adapter 121 comprises 8 acquisition channels, for selecting one or more passages to gather analog signal, is respectively passage 0, passage 1, passage 2, passage 3, passage 4, passage 5, passage 6 and passage 7.Temperature detection signal and normal voltage (voltage of node A) collect A/D converter by above-mentioned passage.
Sampling and holding circuit 122 comprise switch and capacitor C 3, and wherein, one end of capacitor C 3 is connected with switch, other end ground connection.For the instantaneous value of the analog signal from channel to channel adapter 121 is sampled, and keep a period of time at output.
The anodal AVref of one termination reference voltage of series resistance configurator 125, another termination reference voltage negative pole AVss.Series resistance configurator 125 can be exported a plurality of different reference voltage levels.
An input of voltage comparator 124 is connected with sampling and holding circuit 122, and the other end is connected with series resistance configurator 125, and output is connected with comparison controller 123 successively.
Successively comparison controller 123 repeatedly compares the analog signal from sampling and holding circuit 122 from the different reference voltage level from series resistance configurator 125, makes the digital quantity of changing gained numerically successively approach input analog amount respective value.Then, by the corresponding A/D transformation result of 123 output of comparison controller successively.
In one embodiment of the invention, when the signal of channel to channel adapter 121 accesses is normal voltage and/or temperature detection signal, successively comparison controller 123 is exported the first digital signal and/or the second digital signal accordingly.
The theoretical digital quantity of the normal voltage that microcontroller 300 computing node A provide, i.e. preset standard digital signal Value2.
Wherein, Value2=R20* (2 n-1)/(R21+R20), the figure place that N is A/D converter, for example 8,10 or 12.
Microcontroller 300 compares the first digital signal Value1 and the above-mentioned Value2 calculating, generate deviation signal Value3, and according to deviation signal Value3, the second digital signal Value_Temp1 is compensated, be compensated rear transformation result Value_Temp2.The conversion accuracy that overcomes thus A/D converter self is not high, and the problem that transformation result deviation is large has realized more accurately to temperature signal collection and control.
In some embodiments of the invention, microcontroller 300 adopts IC chip 78F0511, as shown in Figure 4.Wherein, the peripheral auxiliary circuits of microcontroller 300 and temperature sensor and accessory circuit thereof are this area common circuit, do not repeat them here.
According to the temperature-detecting device of the embodiment of the present invention, by calculating the deviation of A/D converter mould conversion, and according to deviation, the temperature digital amount of A/D converter is compensated, thereby realize the accuracy calibration effect to temperature digital amount, improve the sampling precision of the temperature collecting.
Below with reference to Fig. 7 to Fig. 9, describe according to the temperature checking method of the embodiment of the present invention.
As shown in Figure 7, the temperature checking method that the embodiment of the present invention provides, comprises the steps:
Step S701, detects the temperature of device under test, and generates temperature detection signal, and normal voltage is provided.
By temperature detecting unit, detected the temperature of device under test, and generate temperature detection signal.Wherein, this temperature detection signal is analog signal.Temperature detecting unit can comprise temperature sensor and accessory circuit thereof.By normal voltage, provide device to provide normal voltage to A/D converter, this normal voltage is also analog signal.
Step S702, carries out A/D conversion and generates the first digital signal Value1 normal voltage, and temperature detection signal is carried out A/D conversion and generates the second digital signal Value_Temp1.
A/D converter carries out A/D conversion to normal voltage respectively and generates the first digital signal Value1, and temperature detection signal is carried out A/D conversion and generates the second digital signal Value_Temp1.
Particularly, A/D converter gathers M time normal voltage, and carries out respectively A/D conversion, obtains M digital quantity.A/D converter calculates above-mentioned M digital quantity value of averaging, and obtains the first digital signal Value1.Wherein, M >=1.Preferably, M=100.
Step S703, compares to generate deviation signal Value3 by the first digital signal Value1 and preset standard digital signal Value2.
The first digital signal Value1 from A/D converter and preset standard digital signal Value2 are compared, and generate deviation signal Value3 according to comparative result.
Wherein, Value3=Value1-Value2.
In an example of the present invention, the theoretical digital quantity that preset standard digital signal Value2 is normal voltage.
Step S704, compensates the second digital signal Value_Temp1 according to deviation signal Value3.
According to deviation signal Value3, the second digital signal Value_Temp1 is compensated, be compensated rear transformation result Value_Temp2.
Wherein, Value_Temp2=Value_Temp1-Value3=Value_Temp1-(Value1-Value 2).
After compensation, transformation result Value_Temp2 has higher precision with respect to Value_Temp1, and the conversion accuracy that has overcome A/D converter self is not high, and the problem that transformation result deviation is large has realized more accurately to the collection of temperature and control.
Fig. 8 shows the product process of deviation signal Value3.
As shown in Figure 8, the product process of deviation signal Value3, comprises the steps:
Step S801, carries out A/D conversion to normal voltage.
After system powers on, A/D converter provides the normal voltage that device provides to carry out A/D conversion and generate the first digital signal Value1 to normal voltage.Particularly, A/D converter gathers M time normal voltage, and carries out respectively A/D conversion, obtains M digital quantity.A/D converter calculates above-mentioned M digital quantity value of averaging, and obtains the first digital signal Value1.Wherein, M >=1.Preferably, M=100.
Step S802, calculates standardized digital signal Value2.
Standardized digital signal Value2 is the theoretical digital quantity of normal voltage.Wherein, preset standard digital signal Value2 can provide the circuit structure of device and the figure place of A/D converter to calculate according to normal voltage by microcontroller.
Step S803, generates deviation signal Value3.
Microcontroller can compare the first digital signal Value1 from A/D converter and preset standard digital signal Value2, and generates deviation signal Value3 according to comparative result.
Wherein, Value3=Value1-Value2.
Fig. 9 shows the flow process compensating according to deviation signal.
As shown in Figure 9, according to deviation signal, compensate, comprise the steps:
Step S901, the deviation of the inner A/D converter of detection microcontroller.
Obtain the deviation signal Value3 calculating in above-mentioned steps S803.
Step S902, carries out A/D conversion to temperature detection signal.
The temperature detection signal that A/D converter sends temperature detecting unit carries out A/D conversion and generates the second digital signal Value_Temp1.
Step S903, compensates the temperature results of A/D conversion.
Microcontroller compensates the second digital signal Value_Temp1 according to deviation signal Value3, is compensated rear transformation result Value_Temp2.
Step S904, calculates the temperature detecting according to compensation result.
According to the temperature value of the device under test that after compensation, transformation result Value_Temp2 accounting temperature detecting unit detects.
According to the temperature checking method of the embodiment of the present invention, by calculating the deviation of A/D converter mould conversion, and according to deviation, the temperature digital amount of A/D converter is compensated, thereby realize the accuracy calibration effect to temperature digital amount, improve the sampling precision of the temperature collecting.
In flow chart or any process of otherwise describing at this or method describe and can be understood to, represent to comprise that one or more is for realizing module, fragment or the part of code of executable instruction of the step of specific logical function or process, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can be not according to order shown or that discuss, comprise according to related function by the mode of basic while or by contrary order, carry out function, this should be understood by embodiments of the invention person of ordinary skill in the field.
The logic and/or the step that in flow chart, represent or otherwise describe at this, for example, can be considered to for realizing the sequencing list of the executable instruction of logic function, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise that the system of processor or other can and carry out the system of instruction from instruction execution system, device or equipment instruction fetch), use, or use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can comprise, storage, communication, propagation or transmission procedure be for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically of computer-readable medium (non-exhaustive list) comprises following: the electrical connection section (electronic installation) with one or more wirings, portable computer diskette box (magnetic device), random-access memory (ram), read-only memory (ROM), the erasable read-only memory (EPROM or flash memory) of editing, fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other the suitable medium that can print described program thereon, because can be for example by paper or other media be carried out to optical scanner, then edit, decipher or process in electronics mode and obtain described program with other suitable methods if desired, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, a plurality of steps or method can realize with being stored in memory and by software or the firmware of suitable instruction execution system execution.For example, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: have for data-signal being realized to the discrete logic of the logic gates of logic function, the application-specific integrated circuit (ASIC) with suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, this program, when carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module usings that the form of software function module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
In the description of this specification, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means to be contained at least one embodiment of the present invention or example in conjunction with specific features, structure, material or the feature of this embodiment or example description.In this manual, the schematic statement of above-mentioned term is not necessarily referred to identical embodiment or example.And the specific features of description, structure, material or feature can be with suitable mode combinations in any one or more embodiment or example.
Although illustrated and described embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, those of ordinary skill in the art can change above-described embodiment within the scope of the invention in the situation that not departing from principle of the present invention and aim, modification, replacement and modification.

Claims (7)

1. A/D converter is carried out to a device for deviation compensation, it is characterized in that, comprising:
Normal voltage provides device, for normal voltage is provided;
A/D converter, for providing the normal voltage that device provides to carry out A/D conversion and generate the first digital signal to described normal voltage; And
Controller, for described the first digital signal and preset standard digital signal are compared to generate deviation signal, and compensates the transformation result of described A/D converter according to described deviation signal.
2. the device that A/D converter is carried out to deviation compensation as claimed in claim 1, it is characterized in that, the first resistance and the second resistance that described normal voltage provides device to comprise mutual series connection, between described the first resistance and the second resistance, there is node, the input of described A/D converter is connected with described node, and one end of described the first resistance is connected with power supply, one end of described the second resistance is connected to the ground.
3. the device that A/D converter is carried out to deviation compensation as claimed in claim 1, is characterized in that, described A/D converter and described controller are positioned among same microcontroller.
4. a temperature-detecting device, is characterized in that, comprising:
Temperature detecting unit, for generating temperature detection signal;
Normal voltage provides device, for normal voltage is provided; And
Microcontroller, described microcontroller has A/D converter, described in described microprocessor controls, A/D converter provides the normal voltage that device provides to carry out A/D conversion and generate the first digital signal to described normal voltage, and the temperature detection signal that described temperature detecting unit is generated carries out A/D conversion and generates the second digital signal, and described the first digital signal and preset standard digital signal are compared to generate deviation signal, and according to described deviation signal, described the second digital signal is compensated.
5. temperature-detecting device as claimed in claim 4, it is characterized in that, the first resistance and the second resistance that described normal voltage provides device to comprise mutual series connection, between described the first resistance and the second resistance, there is node, the input of described A/D converter is connected with described node, and one end of described the first resistance is connected with power supply, one end of described the second resistance is connected to the ground.
6. a temperature checking method, is characterized in that, comprises the following steps:
Detect the temperature of device under test and generate temperature detection signal, and normal voltage is provided;
Described normal voltage is carried out A/D conversion and generated the first digital signal, and described temperature detection signal is carried out A/D conversion and generates the second digital signal;
Described the first digital signal and preset standard digital signal are compared to generate deviation signal; And
According to described deviation signal, described the second digital signal is compensated.
7. temperature checking method as claimed in claim 6, is characterized in that, also comprises the steps:
Result after described the second digital signal being compensated according to described deviation signal, the temperature of the described device under test that calculating detects.
CN201210356406.4A 2012-09-20 2012-09-20 Deviation compensation device for A/D converter and temperature detecting device and method Pending CN103684451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210356406.4A CN103684451A (en) 2012-09-20 2012-09-20 Deviation compensation device for A/D converter and temperature detecting device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210356406.4A CN103684451A (en) 2012-09-20 2012-09-20 Deviation compensation device for A/D converter and temperature detecting device and method

Publications (1)

Publication Number Publication Date
CN103684451A true CN103684451A (en) 2014-03-26

Family

ID=50320911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210356406.4A Pending CN103684451A (en) 2012-09-20 2012-09-20 Deviation compensation device for A/D converter and temperature detecting device and method

Country Status (1)

Country Link
CN (1) CN103684451A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104807561A (en) * 2015-04-29 2015-07-29 清华大学深圳研究生院 Calibrating circuit and calibrating method for resistance-type temperature sensing chip
CN106452439A (en) * 2016-08-31 2017-02-22 北京德威特继保自动化科技股份有限公司 Sampling method and device
CN107271762A (en) * 2017-06-14 2017-10-20 广东美的暖通设备有限公司 The compensation circuit of sample circuit, compensation method, air conditioner
WO2021129162A1 (en) * 2019-12-24 2021-07-01 追觅科技(上海)有限公司 Temperature control circuit and method for circuit board of electric hair dryer
WO2021196088A1 (en) * 2020-04-01 2021-10-07 深圳市汇顶科技股份有限公司 Analog-to-digital conversion method, apparatus, and chip, electronic device, and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104807561A (en) * 2015-04-29 2015-07-29 清华大学深圳研究生院 Calibrating circuit and calibrating method for resistance-type temperature sensing chip
CN104807561B (en) * 2015-04-29 2017-11-28 清华大学深圳研究生院 The calibration circuit and calibration method of resistor-type TEMP chip
CN106452439A (en) * 2016-08-31 2017-02-22 北京德威特继保自动化科技股份有限公司 Sampling method and device
CN107271762A (en) * 2017-06-14 2017-10-20 广东美的暖通设备有限公司 The compensation circuit of sample circuit, compensation method, air conditioner
WO2021129162A1 (en) * 2019-12-24 2021-07-01 追觅科技(上海)有限公司 Temperature control circuit and method for circuit board of electric hair dryer
WO2021196088A1 (en) * 2020-04-01 2021-10-07 深圳市汇顶科技股份有限公司 Analog-to-digital conversion method, apparatus, and chip, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
CN103684451A (en) Deviation compensation device for A/D converter and temperature detecting device and method
EP3480605A1 (en) Current detection system, method and device
CN102486181B (en) A kind of temperature control device and temperature control method adjusting temperature in closed equipment
JP5609071B2 (en) Power storage device
CN102162820B (en) Current sensor and battery with current sensor
JP7471337B2 (en) Monitoring system for series-connected battery cells
WO2019082535A1 (en) Method and device for on-line monitoring dc-bus capacitor
JP2010204091A (en) Multichannel converter equipped with self-diagnostic function
CN107407699B (en) Battery management device, battery monitoring circuit, and control system
CN104535214A (en) High-precision temperature collecting circuit based on NTC temperature sensors and method
CN104111426B (en) A kind of remote control detection method of quantity of electricity and device
CN202889329U (en) Device used for deviation compensation of A/D converter, temperature detection device
CN107181300B (en) Charge protector, the method and apparatus for calibrating charging equipment
CN101441235A (en) Systems and methods for an open circuit current limiter
US20130239709A1 (en) Multi-function measurement and signal generation device with application selector
CN104917434B (en) For power electronic converter without sensor type current sense method
US20220229116A1 (en) Method and Device for Determining the Degradation of a Battery Module or Battery Cell
CN111665380A (en) Current sampling device, system and method
CN105572462A (en) Current detector
CN117330805B (en) Automatic gear shifting circuit for current detection and current detection device
CN103166640B (en) For monitoring the method and system of the change of converter voltage reference
CN215621434U (en) Charging CC signal processing circuit, power battery management system and electric vehicle
CN104833404A (en) Oil level detection device, automobile, oil tank and oil level detection method
CN111398812A (en) Motor carrier frequency calibration system, method and device
KR101536111B1 (en) Apparatus and method for detecting over voltage or low voltage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326