CN203894559U - Digital temperature compensation circuit - Google Patents
Digital temperature compensation circuit Download PDFInfo
- Publication number
- CN203894559U CN203894559U CN201420090887.3U CN201420090887U CN203894559U CN 203894559 U CN203894559 U CN 203894559U CN 201420090887 U CN201420090887 U CN 201420090887U CN 203894559 U CN203894559 U CN 203894559U
- Authority
- CN
- China
- Prior art keywords
- digital
- temperature compensation
- analog
- design circuit
- temperature
- 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.)
- Expired - Fee Related
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 16
- 238000013461 design Methods 0.000 claims description 93
- 238000005070 sampling Methods 0.000 claims description 17
- 230000000737 periodic effect Effects 0.000 claims description 5
- 230000009466 transformation Effects 0.000 claims description 5
- 238000012986 modification Methods 0.000 claims description 4
- 230000004048 modification Effects 0.000 claims description 4
- 230000002093 peripheral effect Effects 0.000 description 13
- 230000008859 change Effects 0.000 description 11
- 230000004044 response Effects 0.000 description 6
- 239000004065 semiconductor Substances 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 238000012886 linear function Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Analogue/Digital Conversion (AREA)
Abstract
The utility model provides a digital temperature compensation circuit including a sample holding unit, an analog-digital converter, temperature compensation parallel tables, a controller and a digital-analog converter. The sample holding unit, the analog-digital converter, the controller and the digital-analog converter are connected together successively. The controller is used for looking a compensation value up in the temperature compensation parallel tables based on temperature. The compensation value is output to the controller after digital-analog conversion for compensation. By creating different temperature compensation parallel tables, the digital temperature compensation circuit provided by the utility model can be suitable for temperature compensation requirements of different control applications. By storing the temperature compensation parallel tables in a stable storage supporting data erasing and rewriting, the temperature compensation parallel tables can be set and adjusted in field, so that convenience is made for use. Therefore, the digital temperature compensation circuit provided by the utility model is high in universality and high in configurability.
Description
Technical field
The utility model relates to a kind of temperature-compensation circuit, belongs to sophisticated electronics and measurement instrument technical field.
Background technology
The certain temperature coefficient of the common tool of characteristic of semiconductor devices, its output signal is understood variation with temperature and " drift ".Can this drift can affect semiconductor devices place system normally work, and the object of temperature-compensation circuit is eliminated " drift " exactly, the operating characteristic of stabilization of semiconductor device.
Temperature-compensation circuit has demand widely in fields such as medical electronics and optical fiber communications.In sophisticated electronics and measurement instrument, for overcoming the accuracy class of variation of ambient temperature on the impact of electronic device works or raising instrument and meter, need to carry out Design of Temperature Compensation to temperature sensitive circuit.In optical fiber communication, can the semiconductor laser in optical sender steady operation directly affect the efficiency of communication system, therefore, also needs temperature-compensation circuit to eliminate varying with temperature of laser instrument and cause " drift ".
Those skilled in the art are devoted to provide a kind of highly versatile, the strong design circuit of configurability.
Summary of the invention
The purpose of this utility model is to provide a kind of highly versatile, design circuit that configurability is strong.
The utility model adopts the temperature compensation table of comparisons to realize design, according to the temperature value of input, searches the offset of output, offset is outputed to control module and compensate.
The design circuit that the utility model provides, control application that can be different according to user, sets up the different temperature compensation tables of comparisons, makes the highly versatile of this circuit, can adapt to the different temperature compensation requirements of controlling application.
The design circuit that the utility model provides, the temperature compensation table of comparisons is stored in non-volatile, erasable, rewritable storer, makes the configurability of this circuit strong, can on-the-spotly arrange, adjusts the temperature compensation table of comparisons, user-friendly.
The design circuit that the utility model provides, comprise sampling keeping unit, analog-digital converter, the temperature compensation table of comparisons, controller and digital analog converter, sampling keeping unit, analog-digital converter, controller are connected successively with digital analog converter;
Sampling keeping unit is for collecting temperature;
Analog-digital converter is for carrying out analog digital conversion to the temperature of sampling keeping unit collection;
Controller, for the analog digital transformation result of the temperature that provides according to analog-digital converter, is found offset, and offset is sent to digital analog converter from the temperature compensation table of comparisons;
Digital analog converter is for carrying out digital-to-analogue conversion by offset, and the offset after conversion is outputed to control module compensates.
The design circuit that adopts the utility model to provide, by setting up the different temperature compensation tables of comparisons, makes this design circuit, can adapt to the different temperature compensation requirements of controlling application; Therefore the design circuit that the utility model provides is a kind of design circuit of highly versatile.
Further, the temperature compensation table of comparisons is stored in non-volatile, erasable, rewritable storer.
By the temperature compensation table of comparisons, be stored in non-volatile, erasable, rewritable storer, make this design circuit can on-the-spotly arrange, adjust the temperature compensation table of comparisons, user-friendly, so the design circuit that the utility model provides is the design circuit that a kind of configurability is strong.
Further, sample-and-hold circuit is sampled to temperature, the simulating signal that output time is discrete, amplitude is continuous.
Further, design circuit also comprises clock generator, is used to controller that clock signal is provided.
Further, controller comprises timer, for periodic temperature compensation is provided.
The design circuit that the utility model provides, can adjust the temperature compensation cycle by adjusting the time of timer setting, and the time that timer is set is longer, and the temperature compensation cycle is also just longer; Temperature compensation excessive cycle, may cause and cannot effectively eliminate " drift " that temperature variation causes, and the temperature compensation cycle is too short, may, because of the relevant treatment of compensating circuit, affect the real-time response of control system.The design circuit that adopts the utility model to provide, user can arrange the applicable temperature compensation cycle according to different control application, can either effectively eliminate " drift " that temperature variation causes, real-time response that again can Guarantee control system, has further improved versatility and the configurability of design circuit.
Further, the cycle of described periodic temperature compensation is that the initial value by adjusting the divide ratio of described clock or revising described timer changes.
The design circuit that the utility model provides, can change the cycle of clock by adjusting the divide ratio of clock, change the time that timer is set, thereby changed the temperature compensation cycle; Also can, by revising the initial value of timer, change the time that timer is set, thereby change the temperature compensation cycle.
Further, the divide ratio of described adjustment clock comprises described divide ratio write to RAM or ROM, and the initial value of the described timer of described modification comprises the initial value of described timer is write to RAM or ROM.
The design circuit that the utility model provides, can write ROM by the initial value of divide ratio or timer, design circuit reset or automatically load configuration automatically while powering on; Also the initial value of divide ratio or timer can be write to RAM, change at once the temperature compensation cycle, be convenient to user and debug for different control application, select the applicable temperature compensation cycle; Thereby versatility and the configurability of design circuit have further been improved.
Further, design circuit also comprises interface circuit, and interface circuit is connected with controller, and interface circuit is for the peripheral control unit access temperature compensation table of comparisons.
The design circuit that the utility model provides, allow the peripheral control unit access temperature compensation table of comparisons, the design circuit of being convenient to the utility model to provide is integrated in original control system, thereby has further improved versatility and the configurability of design circuit.
The design circuit that the utility model provides, has guaranteed the security of controller and the peripheral control unit access temperature compensation table of comparisons of design circuit.
The temperature compensation that the utility model also provides, comprises step:
(1) set up the temperature compensation table of comparisons, and write store;
(2) sampling keeping unit collecting temperature;
(3) analog-digital converter carries out analog digital conversion to the temperature of sampling keeping unit collection;
(4) the analog digital transformation result of the temperature that controller provides according to analog-digital converter is found offset, and offset is sent to digital analog converter from the temperature compensation table of comparisons;
(5) digital analog converter is for carrying out digital-to-analogue conversion by offset, and the offset after conversion is outputed to control module compensates.
The design circuit that the utility model provides has following beneficial effect:
(1) by setting up the different temperature compensation tables of comparisons, make this design circuit, can adapt to the different temperature compensation requirements of controlling application; Therefore the design circuit that the utility model provides is a kind of design circuit of highly versatile;
(2) by the temperature compensation table of comparisons, be stored in non-volatile, erasable, rewritable storer, make this design circuit can on-the-spotly arrange, adjust the temperature compensation table of comparisons, user-friendly, so the design circuit that the utility model provides is the design circuit that a kind of configurability is strong;
(3) user can arrange the applicable temperature compensation cycle according to different control application, can either effectively eliminate " drift " that temperature variation causes, real-time response that again can Guarantee control system, has further improved versatility and the configurability of design circuit;
(4) allow the peripheral control unit access temperature compensation table of comparisons, the design circuit of being convenient to the utility model to provide is integrated in original control system, thereby has further improved versatility and the configurability of design circuit.
Accompanying drawing explanation
Fig. 1 is the temperature compensation table of comparisons of an embodiment of the present utility model;
Fig. 2 is the structural drawing of the design circuit of an embodiment of the present utility model;
Fig. 3 is the startup process flow diagram of the design circuit shown in Fig. 2;
Fig. 4 is the normal workflow figure of the design circuit shown in Fig. 2.
Embodiment
As shown in Figure 1, the utility model utilizes a temperature compensation table of comparisons to realize design.The temperature compensation table of comparisons comprises temperature value T and offset y, can search offset according to temperature value.
Temperature compensation process is:
1 collecting temperature T
i;
2 T
ias the index value of looking into the temperature compensation table of comparisons, find offset;
3 output offsets compensate.
The mathematical model of whole design is:
y=f(T)
Wherein, T is temperature, and y is offset, and f is penalty function, and " Wen Du Zhi – offset " the temperature compensation table of comparisons being write by user determines.F can be linear function, can be also nonlinear function, by the content that writes look-up table, determined completely, so the design circuit of the present embodiment has the characteristic of " general ".
Fig. 2 is the structural drawing of the design circuit of an embodiment of the present utility model, design circuit in the present embodiment comprises sampling keeping unit, analog-digital converter, the temperature compensation table of comparisons, controller and digital analog converter, and sampling keeping unit, analog-digital converter, controller are connected successively with digital analog converter;
Sampling keeping unit is for collecting temperature;
Analog-digital converter is for carrying out analog digital conversion to the temperature of sampling keeping unit collection, and the effect of analog-digital converter is that voltage signal is quantized and encoded;
Controller, for the analog digital transformation result of the temperature that provides according to analog-digital converter, is found offset, and offset is sent to digital analog converter from the temperature compensation table of comparisons;
Digital analog converter for offset is carried out to digital-to-analogue conversion, is about to design value and converts analog compensation value to, and the offset after conversion is outputed to control module compensates.
The design circuit that adopts the utility model to provide, by setting up the different temperature compensation tables of comparisons, makes this design circuit, can adapt to the different temperature compensation requirements of controlling application; Therefore the design circuit that the utility model provides is a kind of design circuit of highly versatile.
The temperature compensation table of comparisons is stored in non-volatile, erasable, rewritable storer.By the temperature compensation table of comparisons, be stored in non-volatile, erasable, rewritable storer, make this design circuit can on-the-spotly arrange, adjust the temperature compensation table of comparisons, user-friendly, so the design circuit that the utility model provides is the design circuit that a kind of configurability is strong.
Sample-and-hold circuit is sampled to temperature, the simulating signal that output time is discrete, amplitude is continuous, sampling and maintenance to the voltage signal of temperature sensor output.
Design circuit also comprises clock generator, is used to controller that clock signal is provided.
Controller starts system at system reset, while powering on, startup comprises System self-test, the data in storer is loaded in RAM and configuration-system, as shown in Figure 3, starting flow process is: the data of ROM are loaded in RAM, then carrying out two inspection: DMA checks and integrity checking, DMA checks that whether host-host protocol and the transmission circuit of main inspection data from ROM to RAM be normal, and integrity checking mainly checks whether whole related datas of ROM are loaded in RAM; If DMA checks and integrity checking all passes through, by BOOT_OK set, indicate and started.But if DMA checks and integrity checking wherein one do not pass through, represent that startup is unsuccessful, now need peripheral control unit to handle mistake, then by DMA_Y and INTEGRITY_Y set, by LUT_Y set, by BOOT_OK set, enter normal mode of operation.
Controller comprises timer, when timer triggering each time, carries out temperature compensation, and timer is for periodic temperature compensation.
The design circuit that the utility model provides, can adjust the temperature compensation cycle by adjusting the time of timer setting, and the time that timer is set is longer, and the temperature compensation cycle is also just longer; Temperature compensation excessive cycle, may cause and cannot effectively eliminate " drift " that temperature variation causes, and the temperature compensation cycle is too short, may, because of the relevant treatment of compensating circuit, affect the real-time response of control system.The design circuit that adopts the utility model to provide, user can arrange the applicable temperature compensation cycle according to different control application, can either effectively eliminate " drift " that temperature variation causes, real-time response that again can Guarantee control system, has further improved versatility and the configurability of design circuit.
Periodically in the cycle of temperature compensation, be by adjusting the divide ratio of clock or the initial value change of modification timer.
The design circuit that the utility model provides, can change by adjusting the divide ratio of clock the frequency of clock, thereby change the time that timer is set; Also can, by revising the initial value of timer, change the time that timer is set, thereby change the temperature compensation cycle.
Divide ratio is write to RAM or ROM, or the initial value of timer is write to described RAM or described ROM.
The design circuit that the utility model provides, can write ROM by the initial value of divide ratio or timer, design circuit reset or automatically load configuration automatically while powering on; Also the initial value of divide ratio or timer can be write to RAM, change at once the temperature compensation cycle, be convenient to user and debug for different control application, select the applicable temperature compensation cycle; Thereby versatility and the configurability of design circuit have further been improved.
As shown in Figure 4, normal workflow is:
(1) sample-and-hold circuit is sampled to temperature, and its output is a time discrete, the simulating signal that amplitude is continuous;
(2) this simulating signal is through analog-digital converter, through quantize and coding after, become digital signal, the temperature now gathering has been converted to a digital signal;
(3) by controller, read the data in " analog-digital converter ", then judge whether these data have exceeded the input range of tabling look-up, if exceed the scope of tabling look-up, export warning, if within belonging to the scope of tabling look-up, whether judgement is tabled look-up and is enabled effectively again, if effectively, finds digital compensation value, and it is delivered in " digital analog converter ", if can not find out, waiting timer triggers again;
(4) digital analog converter is converted to analog compensation value by this digital compensation value, outputs to control module and carries out temperature compensation.
Design circuit also comprises interface circuit, and interface circuit is connected with controller, and interface circuit is for the peripheral control unit access temperature compensation table of comparisons.
Interface circuit is for data transmission, user can write temperature look-up table information and system configuration information by interface circuit, interface circuit is the converter of a serial data and parallel data, is convenient to user and directly uses serial line interface to operate this design circuit.
In another embodiment of the present utility model, adopt interface circuit USB/IIC/SPI interface, easy to use other have the equipment operating design circuit of USB/IIC/SPI interface.
The design circuit that the utility model provides, allow the peripheral control unit access temperature compensation table of comparisons, the design circuit of being convenient to the utility model to provide is integrated in original control system, thereby has further improved versatility and the configurability of design circuit.
Design circuit also comprises arbitration circuit, clashes when avoiding controller and the peripheral control unit access temperature compensation table of comparisons.In normal mode of operation, except internal controller need to read " the temperature compensation table of comparisons " content, peripheral control unit also may be read and write look-up table content by interface circuit, therefore, internal controller and peripheral control unit may can clash when access " the temperature compensation table of comparisons ", for the generation avoiding conflict, increased " arbitration " circuit, the effect of arbitration circuit is to guarantee at any time, and one of them that only have inside or peripheral control unit can operate " the temperature compensation table of comparisons ".
The design circuit of the present embodiment, has guaranteed the security of controller and the peripheral control unit access temperature compensation table of comparisons of design circuit.
A kind of temperature compensation that the utility model also provides, comprises step:
(1) set up the temperature compensation table of comparisons, and write store;
(2) sampling keeping unit collecting temperature;
(3) analog-digital converter carries out analog digital conversion to the temperature of sampling keeping unit collection;
(4) the analog digital transformation result of the temperature that controller provides according to analog-digital converter is found offset, and offset is sent to digital analog converter from the temperature compensation table of comparisons;
(5) digital analog converter is for carrying out digital-to-analogue conversion by offset, and the offset after conversion is outputed to control module compensates.
In storer, deposit basic system configuration information, comprise the mode of operation of system, temperature look-up table content etc.
The design circuit that the utility model provides, by setting up the different temperature compensation tables of comparisons, makes this design circuit, can adapt to the different temperature compensation requirements of controlling application; Therefore the design circuit that the utility model provides is a kind of design circuit of highly versatile; By the temperature compensation table of comparisons, be stored in non-volatile, erasable, rewritable storer, make this design circuit can on-the-spotly arrange, adjust the temperature compensation table of comparisons, user-friendly, so the design circuit that the utility model provides is the design circuit that a kind of configurability is strong; User can arrange the applicable temperature compensation cycle according to different control application, can either effectively eliminate " drift " that temperature variation causes, real-time response that again can Guarantee control system, has further improved versatility and the configurability of design circuit; Allow the peripheral control unit access temperature compensation table of comparisons, the design circuit of being convenient to the utility model to provide is integrated in original control system, thereby has further improved versatility and the configurability of design circuit.
The utility model has been realized a kind of design of general design circuit, and user can be according to different environments for use, flexible configuration compensation relationship, compensation model (as, the speed of compensation, the precision of compensation) etc.
More than describe preferred embodiment of the present utility model in detail.Should be appreciated that those of ordinary skill in the art just can make many modifications and variations according to design of the present utility model without creative work.Therefore, all technician in the art comply with design of the present utility model on the basis of existing technology by the available technical scheme of logical analysis, reasoning, or a limited experiment, all should be in the determined protection domain by claims.
Claims (6)
1. a design circuit, it is characterized in that, comprise sampling keeping unit, analog-digital converter, controller and digital analog converter, described sampling keeping unit, described analog-digital converter, described controller are connected successively with described digital analog converter;
Described sampling keeping unit is for collecting temperature;
Described analog-digital converter is for carrying out analog digital conversion to the temperature of described sampling keeping unit collection;
Described controller, for the analog digital transformation result of the described temperature that provides according to described analog-digital converter, is sent to digital analog converter by offset;
Described digital analog converter is for carrying out digital-to-analogue conversion by described offset, and the offset after conversion is outputed to control module compensates.
2. design circuit as claimed in claim 1, is characterized in that, described sample-and-hold circuit is sampled to temperature, the simulating signal that output time is discrete, amplitude is continuous.
3. design circuit as claimed in claim 1, is characterized in that, described design circuit also comprises clock generator, is used to described controller that clock signal is provided.
4. design circuit as claimed in claim 3, is characterized in that, described controller comprises timer, for periodic temperature compensation is provided.
5. design circuit as claimed in claim 4, is characterized in that, the cycle of described periodic temperature compensation is that the initial value by adjusting the divide ratio of described clock or revising described timer changes.
6. design circuit as claimed in claim 5, it is characterized in that, the divide ratio of described adjustment clock comprises described divide ratio write to RAM or ROM, and the initial value of the described timer of described modification comprises the initial value of described timer is write to RAM or ROM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201420090887.3U CN203894559U (en) | 2014-02-28 | 2014-02-28 | Digital temperature compensation circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201420090887.3U CN203894559U (en) | 2014-02-28 | 2014-02-28 | Digital temperature compensation circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
CN203894559U true CN203894559U (en) | 2014-10-22 |
Family
ID=51720936
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201420090887.3U Expired - Fee Related CN203894559U (en) | 2014-02-28 | 2014-02-28 | Digital temperature compensation circuit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN203894559U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838157A (en) * | 2014-02-28 | 2014-06-04 | 嘉兴禾润电子科技有限公司 | Digital temperature compensating circuit and compensating method thereof |
CN112162948A (en) * | 2020-10-21 | 2021-01-01 | 天津津航计算技术研究所 | Temperature self-adaptive time sequence compensation circuit |
-
2014
- 2014-02-28 CN CN201420090887.3U patent/CN203894559U/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838157A (en) * | 2014-02-28 | 2014-06-04 | 嘉兴禾润电子科技有限公司 | Digital temperature compensating circuit and compensating method thereof |
CN103838157B (en) * | 2014-02-28 | 2016-08-31 | 嘉兴禾润电子科技有限公司 | A kind of design circuit and compensation method thereof |
CN112162948A (en) * | 2020-10-21 | 2021-01-01 | 天津津航计算技术研究所 | Temperature self-adaptive time sequence compensation circuit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105306056B (en) | A kind of constant multiplier temperature-compensation method of power frequency conversion circuit | |
CN203894559U (en) | Digital temperature compensation circuit | |
CN203337299U (en) | Resistance strain-type multi-channel high-accuracy force measurement system | |
CN103063321B (en) | Platinum resistance temperature measuring equipment and temperature measuring method thereof | |
CN202522915U (en) | Data acquisition system based on vibration wire type sensor | |
CN103838157A (en) | Digital temperature compensating circuit and compensating method thereof | |
CN202231703U (en) | Self-calibration circuit of digital to analog conversion output voltage | |
CN103036505A (en) | High-accuracy temperature compensation crystal oscillator system and operational method thereof | |
CN104199343A (en) | Micro data collection system based on serial storage mode | |
CN201886059U (en) | Positive-negative voltage measuring device | |
CN207423155U (en) | Planar inclination measuring system based on double-shaft tilt angle detection | |
CN202229724U (en) | Resistance-type strain gauge | |
CN102436772B (en) | Voltage-frequency converter controlled by single chip computer and experimental box provided with module | |
CN103697874A (en) | Digital drive loop control circuit for quartz tuning fork gyroscope | |
CN211265967U (en) | Semiconductor laser drive arrangement based on SoPC | |
CN2601395Y (en) | Digitized weighting module | |
CN207556704U (en) | A kind of temperature sensor circuit | |
CN207991999U (en) | High precision two line system industrial dust detection device | |
CN104865987A (en) | High-precision intelligent partition temperature control system | |
CN216207098U (en) | Novel digital temperature sensor with variable resolution | |
Sharma et al. | Network Based Data Acquisition and Logging System using PIC Microcontroller | |
CN104460496A (en) | Numerical control constant current source circuit based on PLC | |
CN203672831U (en) | Portable high precision blood glucose concentration measuring instrument | |
CN103309266A (en) | Measuring tool platform and measuring method based on AVR (automatic voltage regulator) singlechip | |
CN111799648B (en) | Low-temperature drift driving circuit of current tuning semiconductor laser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141022 |