CN110501093A - Active 1-wire temperature sensor system, method and medium - Google Patents

Active 1-wire temperature sensor system, method and medium Download PDF

Info

Publication number
CN110501093A
CN110501093A CN201910668340.4A CN201910668340A CN110501093A CN 110501093 A CN110501093 A CN 110501093A CN 201910668340 A CN201910668340 A CN 201910668340A CN 110501093 A CN110501093 A CN 110501093A
Authority
CN
China
Prior art keywords
temperature
register
order
command
value
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
CN201910668340.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.)
Shanghai Shenxiling Microelectronics Technology Co Ltd
Original Assignee
Shanghai Shenxiling Microelectronics Technology 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 Shanghai Shenxiling Microelectronics Technology Co Ltd filed Critical Shanghai Shenxiling Microelectronics Technology Co Ltd
Priority to CN201910668340.4A priority Critical patent/CN110501093A/en
Publication of CN110501093A publication Critical patent/CN110501093A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K13/00Thermometers specially adapted for specific purposes
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K2219/00Thermometers with dedicated analog to digital converters

Abstract

The present invention provides a kind of active 1-wire temperature sensor system, method and media, it include: temperature conversion module: by analog voltage signal caused by temperature change, by amplifier and comparator transition at digital signal streams, digital circuit filters out high-frequency signal noise using filter circuit, then obtains the digital value of temperature;Single bus interface module: ROM order and command function on identification monobus;Register and control module: controlling the frequency of the automatic conversion of temperature conversion module, enables Busy, register to be used to indicate whether chip temperature is in temperature transition state.Monobus temperature system reads temperature and needs to wait before solving the problems, such as.Waiting temperature converts after i.e. system sends temperature transition order, then could send read register order and read temperature.Meanwhile the temperature transition of dispersion, it reduces chip on monobus and the concentration of charge is consumed.

Description

Active 1-wire temperature sensor system, method and medium
Technical field
The present invention relates to electronic technology fields, and in particular, to active 1-wire temperature sensor system, method and Jie Matter.
Background technique
In the system composed by common unibus equipment, all equipment is in Passive Mode, and system does not have The order of host is received, the temperature in environment would not be monitored automatically, thus the limitation applied with certain system: no The purpose of energy intellectual monitoring environment, needs the intervention of superior system.Compare in the unibus equipment quantity of unibus system access When more, while when sending temperature transition, while temperature transition occurs, concentrates the charge in consumption system.Not only it will affect The influence of the precision of temperature in system, and be possible to will cause end chip and cause temperature transition because lacking charge supply due to The case where omission.
Active 1-wire temperature sensor of the invention power on after technique manufacture due to, there are one for oscillator Determine distribution character, after system brings into operation, temperature transition will occur in an orderly manner, specific sequence view Power On Reset electricity Threshold value is pressed to determine, to solve the problems in the time collection that temperature transition occurs for each sensor.Overall charge consumption also becomes In uniform, the temperature accuracy of system is improved.
Summary of the invention
For consumption of the temperature Centralized conversion to charge in unibus system in the prior art big disadvantage and temperature Acquisition needs the waiting time, and the object of the present invention is to provide a kind of active 1-wire temperature sensor system, method and media.
A kind of active 1-wire temperature sensor system provided according to the present invention characterized by comprising
Temperature conversion module: by analog voltage signal caused by temperature change, by amplifier and comparator transition at Digital signal streams, digital circuit filter out high-frequency signal noise using filter circuit, then obtain the digital value of temperature;
Single bus interface module: ROM order and command function on identification monobus;
Register and control module: controlling the frequency of the automatic conversion of temperature conversion module, enables Busy, register to be used for Whether instruction chip temperature is in temperature transition state.
Temperature latch module: the digital value of the temperature currently calculated exported temperature conversion module according to function life into Row latches, and the digital value of output temperature.
Preferably, the single bus interface module:
The ROM order include: ReadROMID order, MatchROMID order, SearchROMID order, SearchAlarmROMID order and Skip order;
The command function includes: to write register command, read register command, copy register command, readback memory Order and reading power supply powering mode order.
Preferably, the single bus interface module:
If recognizing reading register command, generates latching action signal TLock and give temperature latch module;
If recognizing ReadROMID order, 64 internal ROMID are replied;
If recognizing MatchROMID order, the ROMID of the received ROMID and therein on monobus are compared: If it is inconsistent, chip will enter unselected state;Otherwise, then enter and choose state of activation, prepare to receive subsequent function It can order;
If recognizing Search Alarm ROMID order, if the temperature of chip interior is greater than represented by TH register Temperature or less than temperature represented by TL register then replys internal ROMID;
If recognizing Skip order, it is directly entered and receives the command function stage;
If recognizing Search ROMID order, the value of all chips transmission bit0 on monobus, followed by bit0 Converse value, then host is sent in the bit0 value read on monobus, if the value for the bit0 that the chip on single line receives and Oneself send bit0 value be it is identical, then enter bit1 comparison procedure, if 64 bit be all it is matched, enter choosing Middle state of activation prepares to receive subsequent command function;If being matched to different values, enter unselected state.
Preferably, the command function:
The function of writing register command is that value is write into TH register and TL register, and the TH register is temperature high limit The register of value, TL register are the register of temperature lower limit value, TH register and TL register for Alarm function to be arranged;
The function of copying register command is to write the value of TH and TL register in nonvolatile memory;
The function of readback memory command is by value corresponding with TH and TL in non-volatile internal memory, readback to TH and TL register In;
It is power supply power supply or parasitic power supply that the function of reading power supply powering mode order, which is reading chip,.
Preferably, the temperature latch module:
The latching action signal TLock for receiving single bus interface module, by currently calculating for temperature conversion module output The digital value of temperature be latched into temperature latch module, the digital value of output temperature.
A kind of active 1-wire temperature sensor method provided according to the present invention, comprising:
Temperature transition step: by analog voltage signal caused by temperature change, by amplifier and comparator transition at Digital signal streams, digital circuit filter out high-frequency signal noise using filter circuit, then obtain the digital value of temperature;
Single bus interface step: ROM order and command function on identification monobus;
Register and rate-determining steps: the frequency of the automatic conversion of control temperature transition step enables Busy, register to be used for Whether instruction chip temperature is in temperature transition state.
Temperature latching step: the digital value of the temperature currently calculated exported temperature transition step according to function life into Row latches, and the digital value of output temperature.
Preferably, the single bus interface step:
The ROM order include: ReadROMID order, MatchROMID order, SearchROMID order, SearchAlarmROMID order and Skip order;
The command function includes: to write register command, read register command, copy register command, readback memory Order and reading power supply powering mode order;
If recognizing reading register command, generates and export latching action signal TLock;
If recognizing ReadROMID order, 64 internal ROMID are replied;
If recognizing MatchROMID order, the ROMID of the received ROMID and therein on monobus are compared: If it is inconsistent, chip will enter unselected state;Otherwise, then enter and choose state of activation, prepare to receive subsequent function It can order;
If recognizing Search Alarm ROMID order, if the temperature of chip interior is greater than represented by TH register Temperature or less than temperature represented by TL register then replys internal ROMID;
If recognizing Skip order, it is directly entered and receives the command function stage;
If recognizing Search ROMID order, the value of all chips transmission bit0 on monobus, followed by bit0 Converse value, then host is sent in the bit0 value read on monobus, if the value for the bit0 that the chip on single line receives and Oneself send bit0 value be it is identical, then enter bit1 comparison procedure, if 64 bit be all it is matched, enter choosing Middle state of activation prepares to receive subsequent command function;If being matched to different values, enter unselected state.
Preferably, the command function:
The function of writing register command is that value is write into TH register and TL register, and the TH register is temperature high limit The register of value, TL register are the register of temperature lower limit value, TH register and TL register for Alarm function to be arranged;
The function of copying register command is to write the value of TH and TL register in nonvolatile memory;
The function of readback memory command is by value corresponding with TH and TL in non-volatile internal memory, readback to TH and TL register In;
It is power supply power supply or parasitic power supply that the function of reading power supply powering mode order, which is reading chip,.
Preferably, the temperature latching step:
Latching action signal TLock based on the received, the number for the temperature currently calculated that temperature transition step is exported Word value latches, the digital value of output temperature.
A kind of computer readable storage medium for being stored with computer program provided according to the present invention, which is characterized in that Described in any item active 1-wire temperature sensor methods among the above are realized when the computer program is executed by processor The step of.
Compared with prior art, the present invention have it is following the utility model has the advantages that
1, the present invention real-time and accurately provides temperature, without waiting for the order of temperature transition order, automatically updates temperature value.
2, the present invention has dispersed consumption of the temperature transition to charge.
3, the present invention also simplifies the difficulty of software programming simultaneously, reduces consumption of the software to resource.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is active 1-wire temperature sensor structural schematic diagram provided by the invention.
Fig. 2 is that unibus system provided by the invention reads temperature information flow diagram.
Fig. 3 is the schematic network structure that active unibus system provided by the invention is constituted.
Fig. 4 is the ROM order flow diagram of active monobus chip temperature provided by the invention.
Fig. 5 is the Function order flow diagram of active monobus chip temperature provided by the invention.
Specific embodiment
The present invention is described in detail combined with specific embodiments below.Following embodiment will be helpful to the technology of this field Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this field For personnel, without departing from the inventive concept of the premise, several changes and improvements can also be made.These belong to the present invention Protection scope.
A kind of active 1-wire temperature sensor system provided according to the present invention characterized by comprising
Temperature conversion module: by analog voltage signal caused by temperature change, by amplifier and comparator transition at Digital signal streams, digital circuit filter out high-frequency signal noise using filter circuit, then obtain the digital value of temperature;
Single bus interface module: ROM order and command function on identification monobus;
It further, further include the ROMID marker of 64 bits: for guaranteeing the uniqueness of product, mainly by 3 part groups At, 8 product numbers, 48 unique encodings and 8 cyclic redundancy checks;
Register and control module: controlling the frequency of the automatic conversion of temperature conversion module, enables Busy, register to be used for Whether instruction chip temperature is in temperature transition state.
Temperature latch module: the digital value of the temperature currently calculated exported temperature conversion module according to function life into Row latches, and the digital value of output temperature.
Specifically, the single bus interface module:
The ROM order include: ReadROMID order, MatchROMID order, SearchROMID order, SearchAlarmROMID order and Skip order;
The command function includes: to write register command, read register command, copy register command, readback memory Order and reading power supply powering mode order.
Specifically, the single bus interface module:
If recognizing reading register command, generates latching action signal TLock and give temperature latch module;
If recognizing ReadROMID order, 64 internal ROMID are replied;
If recognizing MatchROMID order, the ROMID of the received ROMID and therein on monobus are compared: If it is inconsistent, chip will enter unselected state;Otherwise, then enter and choose state of activation, prepare to receive subsequent function It can order;
If recognizing Search Alarm ROMID order, if the temperature of chip interior is greater than represented by TH register Temperature or less than temperature represented by TL register then replys internal ROMID;
If recognizing Skip order, it is directly entered and receives the command function stage;
If recognizing Search ROMID order, the value of all chips transmission bit0 on monobus, followed by bit0 Converse value, then host is sent in the bit0 value read on monobus, if the value for the bit0 that the chip on monobus receives With oneself send bit0 value be it is identical, then enter bit1 comparison procedure, if 64 bit be all it is matched, enter State of activation is chosen, prepares to receive subsequent command function;If being matched to different values, enter unselected state.
Specifically, the command function:
The function of writing register command is that value is write into TH register and TL register, and the TH register is temperature high limit The register of value, TL register are the register of temperature lower limit value, TH register and TL register for Alarm function to be arranged;
The function of copying register command is to write the value of TH and TL register in nonvolatile memory;
The function of readback memory command is by value corresponding with TH and TL in non-volatile internal memory, readback to TH and TL register In;
It is power supply power supply or parasitic power supply that the function of reading power supply powering mode order, which is reading chip,.
Specifically, the temperature latch module:
The latching action signal TLock for receiving single bus interface module, by currently calculating for temperature conversion module output The digital value of temperature be latched into temperature latch module, the digital value of output temperature.
A kind of active 1-wire temperature sensor system provided by the invention, a kind of active that can be given through the invention The step process of formula 1-wire temperature sensor method is realized.Those skilled in the art can be by a kind of active monobus Temperature sensor method is interpreted as an a kind of preference of active 1-wire temperature sensor system.
A kind of active 1-wire temperature sensor method provided according to the present invention, comprising:
Temperature transition step: by analog voltage signal caused by temperature change, by amplifier and comparator transition at Digital signal streams, digital circuit filter out high-frequency signal noise using filter circuit, then obtain the digital value of temperature;
Single bus interface step: ROM order and command function on identification monobus;
Register and rate-determining steps: the frequency of the automatic conversion of control temperature transition step enables Busy, register to be used for Whether instruction chip temperature is in temperature transition state.
Temperature latching step: the digital value of the temperature currently calculated exported temperature transition step according to function life into Row latches, and the digital value of output temperature.
Specifically, the single bus interface step:
The ROM order include: ReadROMID order, MatchROMID order, SearchROMID order, SearchAlarmROMID order and Skip order;
The command function includes: to write register command, read register command, copy register command, readback memory Order and reading power supply powering mode order;
If recognizing reading register command, generates and export latching action signal TLock;
If recognizing ReadROMID order, 64 internal ROMID are replied;
If recognizing MatchROMID order, the ROMID of the received ROMID and therein on monobus are compared: If it is inconsistent, chip will enter unselected state;Otherwise, then enter and choose state of activation, prepare to receive subsequent function It can order;
If recognizing Search Alarm ROMID order, if the temperature of chip interior is greater than represented by TH register Temperature or less than temperature represented by TL register then replys internal ROMID;
If recognizing Skip order, it is directly entered and receives the command function stage;
If recognizing Search ROMID order, the value of all chips transmission bit0 on monobus, followed by bit0 Converse value, then host is sent in the bit0 value read on monobus, if the value for the bit0 that the chip on monobus receives With oneself send bit0 value be it is identical, then enter bit1 comparison procedure, if 64 bit be all it is matched, enter State of activation is chosen, prepares to receive subsequent command function;If being matched to different values, enter unselected state.
Specifically, the command function:
The function of writing register command is that value is write into TH register and TL register, and the TH register is temperature high limit The register of value, TL register are the register of temperature lower limit value, TH register and TL register for Alarm function to be arranged;
The function of copying register command is to write the value of TH and TL register in nonvolatile memory;
The function of readback memory command is by value corresponding with TH and TL in non-volatile internal memory, readback to TH and TL register In;
It is power supply power supply or parasitic power supply that the function of reading power supply powering mode order, which is reading chip,.
Specifically, the temperature latching step:
Latching action signal TLock based on the received, the number for the temperature currently calculated that temperature transition step is exported Word value latches, the digital value of output temperature.
A kind of computer readable storage medium for being stored with computer program provided according to the present invention, which is characterized in that Described in any item active 1-wire temperature sensor methods among the above are realized when the computer program is executed by processor The step of.
Below by preference, the present invention is more specifically illustrated.
Preference 1:
A kind of active 1-wire temperature sensor, feature include temperature conversion module, single bus interface module and 64 The ROMID marker of bit, register and control module, temperature latch module are constituted.As shown in Figure 1, master provided by the invention Dynamic formula 1-wire temperature sensor structural schematic diagram.
Temperature conversion module, for being turned by amplifier and comparator by analog voltage signal caused by temperature change Become digital signal streams, digital circuit filters out high-frequency signal noise using filter circuit, then obtains the digital value of temperature.
Single bus interface module, for identification the ROM order and Function order on monobus.ROM order includes ReadROMID order, Match ROMID order, Search ROMID order, Search Alarm ROMID order and Skip life It enables;Function order includes writing register command, reads the order of register (ReadScratchpad), copy register life It enables, readback memory command, reads power supply powering mode order.Once recognizing the movement for reading register command, lock will be generated It deposits action signal TLock and gives temperature latch module.If it is ReadROM order, module is by 64 ROMID inside replying; If it is MatchROM order, module will compare the ROMID of the received ROMID on monobus and therein, if different It causes, then chip will enter dormant state, otherwise enters state of activation.
The ROMID marker of 64 bits is mainly made of 3 parts for guaranteeing the uniqueness of product, and 8 products are compiled Number, 48 unique encodings and 8 cyclic redundancy checks.
Register and control module, comprising CR [2:0] be used for control temperature conversion module automatic conversion frequency and Busy register is used to indicate whether chip temperature is in temperature transition state.
Temperature latch module, for receiving the latching action signal TLock of single bus interface module, by temperature conversion module The temperature of output currently calculated is latched into temperature latch module, so that current ReadScratchpad command function exports temperature Angle value.It may insure that user's temperature value that gap is read at any time is all with primary temperature value.
The active 1-wire temperature sensor register and control module, it is characterized in that configuration (Config) deposit Contain bit in device:
7 6 5 4 3 2 1 0
Busy_Status CR[2] CR[1] CR[0] RSV RSV RSV RSV
Busy_Status is to describe whether this sensor is in temperature transition state, and 1 indicates just in temperature transition;0 indicates Not in temperature transition.
The time interval of the adjacent temperature transition twice of description of CR register, is not simple multiple proportion.
CR[2:0] Time interval (ms)
3’b000 302400
3’b001 43200
3’b010 7200
3’b011 1440
3’b100 360
3’b101 120
3’b110 60
3’b111 30
The single bus interface module can identify communication command format: reset command (communication Reset command), then ROM order (ROM command), followed by command function (Function command).
The temperature latches interface module, it is characterised in that sensor has received read register (Read Scratchpad after) ordering, the value of current temperature register can be latched into corresponding temperature latch, for list The subsequent reading of bus.This avoid the mistakes of prolonged asynchronous communication bring temperature to read.
Preference 2:
It as shown in Fig. 3, is the unibus system network for thering are 8 active 1-wire temperature sensors to constitute.Each temperature Degree sensor has the ROMID of a uniqueness and different 64 bit, such as 64 ' h2812_EF90_777A_0012,64 ‘h2812_EF90_777A_449C,64‘h2812_EF90_777A_8456,64‘h2812_EF90_777A_33E7,64 ‘h2812_EF90_777A_4241,64‘h2812_EF90_777A_5401,64‘h2812_EF90_777A_9AD4,64 ‘h2812_EF90_777A_EED4.The end D of all temperature sensors is connected together by red line, is connected to host Positive (+) port, the end G of all temperature sensors are connected together by the line of black, are connected to cathode (-) port of host.
The corresponding rule such as Fig. 4 and Fig. 5 of specific ROM order and Function order
After host powers on, with certain period temperature transition occurs for temperature sensor in an orderly manner.Host is to active The order that Search ROMID is sent in the system of monobus, may search for 64 bit of temperature sensor of carry on monobus ROMID and number.
Host directly reads the temperature of temperature sensor by the sequence of such as attached drawing 2, without sending temperature transition order When with the regular hour is waited, temperature is read.
In the description of the present application, it is to be understood that term " on ", "front", "rear", "left", "right", " is erected at "lower" Directly ", the orientation or positional relationship of the instructions such as "horizontal", "top", "bottom", "inner", "outside" is orientation based on the figure or position Relationship is set, description the application is merely for convenience of and simplifies description, rather than the device or element of indication or suggestion meaning are necessary It with specific orientation, is constructed and operated in a specific orientation, therefore should not be understood as the limitation to the application.
One skilled in the art will appreciate that in addition to realizing system provided by the invention in a manner of pure computer readable program code It, completely can be by the way that method and step be carried out programming in logic come so that provided by the invention other than system, device and its modules System, device and its modules are declined with logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion The form of controller etc. realizes identical program.So system provided by the invention, device and its modules may be considered that It is a kind of hardware component, and the knot that the module for realizing various programs for including in it can also be considered as in hardware component Structure;It can also will be considered as realizing the module of various functions either the software program of implementation method can be Hardware Subdivision again Structure in part.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited to above-mentioned Particular implementation, those skilled in the art can make a variety of changes or modify within the scope of the claims, this not shadow Ring substantive content of the invention.In the absence of conflict, the feature in embodiments herein and embodiment can any phase Mutually combination.

Claims (10)

1. a kind of active 1-wire temperature sensor system characterized by comprising
Temperature conversion module: by analog voltage signal caused by temperature change, by amplifier and comparator transition at number Signal stream, digital circuit filter out high-frequency signal noise using filter circuit, then obtain the digital value of temperature;
Single bus interface module: ROM order and command function on identification monobus;
Register and control module: controlling the frequency of the automatic conversion of temperature conversion module, enables Busy, register to be used to indicate Whether chip temperature is in temperature transition state.
Temperature latch module: it is ordered according to function and locks the digital value for the temperature currently calculated that temperature conversion module exports It deposits, and the digital value of output temperature.
2. active 1-wire temperature sensor system according to claim 1, which is characterized in that the single bus interface Module:
The ROM order include: ReadROMID order, MatchROMID order, SearchROMID order, SearchAlarmROMID order and Skip order;
The command function includes: to write register command, read register command, copy register command, readback memory command And read power supply powering mode order.
3. active 1-wire temperature sensor system according to claim 2, which is characterized in that the single bus interface Module:
If recognizing reading register command, generates latching action signal TLock and give temperature latch module;
If recognizing ReadROMID order, 64 internal ROMID are replied;
If recognizing MatchROMID order, the ROMID of the received ROMID and therein on monobus are compared: if Inconsistent, then chip will enter unselected state;Otherwise, then enter and choose state of activation, prepare to receive subsequent function life It enables;
If recognizing Search Alarm ROMID order, if the temperature of chip interior is greater than temperature represented by TH register Or less than temperature represented by TL register, then internal ROMID is replied;
If recognizing Skip order, it is directly entered and receives the command function stage;
If recognizing Search ROMID order, all chips send the value of bit0, followed by the converse value of bit0 on monobus, Then host is sent in the bit0 value read on monobus, if the value for the bit0 that the chip on single line receives and oneself hair The bit0 value sent be it is identical, then enter bit1 comparison procedure, if 64 bit be all it is matched, enter choose activation State prepares to receive subsequent command function;If being matched to different values, enter unselected state.
4. active 1-wire temperature sensor system according to claim 3, which is characterized in that the command function:
The function of writing register command is that value is write into TH register and TL register, and the TH register is temperature ceiling value Register, TL register are the register of temperature lower limit value, TH register and TL register for Alarm function to be arranged;
The function of copying register command is to write the value of TH and TL register in nonvolatile memory;
The function of readback memory command is by value corresponding with TH and TL in non-volatile internal memory, and readback is into TH and TL register;
It is power supply power supply or parasitic power supply that the function of reading power supply powering mode order, which is reading chip,.
5. active 1-wire temperature sensor system according to claim 4, which is characterized in that the temperature latches mould Block:
The latching action signal TLock for receiving single bus interface module, the temperature currently calculated that temperature conversion module is exported The digital value of degree is latched into temperature latch module, the digital value of output temperature.
6. a kind of active 1-wire temperature sensor method characterized by comprising
Temperature transition step: by analog voltage signal caused by temperature change, by amplifier and comparator transition at number Signal stream, digital circuit filter out high-frequency signal noise using filter circuit, then obtain the digital value of temperature;
Single bus interface step: ROM order and command function on identification monobus;
Register and rate-determining steps: the frequency of the automatic conversion of control temperature transition step enables Busy, register to be used to indicate Whether chip temperature is in temperature transition state.
Temperature latching step: it is ordered according to function and locks the digital value for the temperature currently calculated that temperature transition step exports It deposits, and the digital value of output temperature.
7. active 1-wire temperature sensor method according to claim 6, which is characterized in that the single bus interface Step:
The ROM order include: ReadROMID order, MatchROMID order, SearchROMID order, SearchAlarmROMID order and Skip order;
The command function includes: to write register command, read register command, copy register command, readback memory command And read power supply powering mode order;
If recognizing reading register command, generates and export latching action signal TLock;
If recognizing ReadROMID order, 64 internal ROMID are replied;
If recognizing MatchROMID order, the ROMID of the received ROMID and therein on monobus are compared: if Inconsistent, then chip will enter unselected state;Otherwise, then enter and choose state of activation, prepare to receive subsequent function life It enables;
If recognizing Search Alarm ROMID order, if the temperature of chip interior is greater than temperature represented by TH register Or less than temperature represented by TL register, then internal ROMID is replied;
If recognizing Skip order, it is directly entered and receives the command function stage;
If recognizing Search ROMID order, all chips send the value of bit0, followed by the converse value of bit0 on monobus, Then host is sent in the bit0 value read on monobus, if the value for the bit0 that the chip on single line receives and oneself hair The bit0 value sent be it is identical, then enter bit1 comparison procedure, if 64 bit be all it is matched, enter choose activation State prepares to receive subsequent command function;If being matched to different values, enter unselected state.
8. active 1-wire temperature sensor method according to claim 7, which is characterized in that the command function:
The function of writing register command is that value is write into TH register and TL register, and the TH register is temperature ceiling value Register, TL register are the register of temperature lower limit value, TH register and TL register for Alarm function to be arranged;
The function of copying register command is to write the value of TH and TL register in nonvolatile memory;
The function of readback memory command is by value corresponding with TH and TL in non-volatile internal memory, and readback is into TH and TL register;
It is power supply power supply or parasitic power supply that the function of reading power supply powering mode order, which is reading chip,.
9. active 1-wire temperature sensor method according to claim 8, which is characterized in that the temperature latches step It is rapid:
Latching action signal TLock based on the received, the digital value for the temperature currently calculated that temperature transition step is exported It latches, the digital value of output temperature.
10. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the computer program is located Manage the step of active 1-wire temperature sensor method described in any one of claim 6 to 9 is realized when device executes.
CN201910668340.4A 2019-07-23 2019-07-23 Active 1-wire temperature sensor system, method and medium Pending CN110501093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910668340.4A CN110501093A (en) 2019-07-23 2019-07-23 Active 1-wire temperature sensor system, method and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910668340.4A CN110501093A (en) 2019-07-23 2019-07-23 Active 1-wire temperature sensor system, method and medium

Publications (1)

Publication Number Publication Date
CN110501093A true CN110501093A (en) 2019-11-26

Family

ID=68587697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910668340.4A Pending CN110501093A (en) 2019-07-23 2019-07-23 Active 1-wire temperature sensor system, method and medium

Country Status (1)

Country Link
CN (1) CN110501093A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111337148A (en) * 2020-03-06 2020-06-26 上海申矽凌微电子科技有限公司 Temperature measurement display method and system
CN111476991A (en) * 2020-03-06 2020-07-31 上海申矽凌微电子科技有限公司 Double-point temperature measurement system and method suitable for master-slave single bus communication protocol

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106508008B (en) * 2007-12-27 2012-03-07 中国航天科技集团公司燎原无线电厂 Multi way temperature chip interface implementation method based on FPGA
CN109844862A (en) * 2016-10-10 2019-06-04 美光科技公司 The temperature of memory device updates

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106508008B (en) * 2007-12-27 2012-03-07 中国航天科技集团公司燎原无线电厂 Multi way temperature chip interface implementation method based on FPGA
CN109844862A (en) * 2016-10-10 2019-06-04 美光科技公司 The temperature of memory device updates

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
《智能集成电路应用手册》编写组: "《智能集成电路应用手册》", 30 September 2007, 福建科学技术出版社 *
佚名: "DS1820单总线数字温度计", 《百度文库》 *
冯冲 等: "《飞思卡尔MC9S12(X)开发必修课》", 30 June 2014, 北京航空航天大学出版社 *
沙占友 编著: "《集成传感器应用》", 30 September 2005 *
马飒飒: "《智能仪表设计开发与应用》", 31 May 2018, 西安电子科技大学出版社 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111337148A (en) * 2020-03-06 2020-06-26 上海申矽凌微电子科技有限公司 Temperature measurement display method and system
CN111476991A (en) * 2020-03-06 2020-07-31 上海申矽凌微电子科技有限公司 Double-point temperature measurement system and method suitable for master-slave single bus communication protocol

Similar Documents

Publication Publication Date Title
Grammatico et al. A scenario approach for non-convex control design
CN110501093A (en) Active 1-wire temperature sensor system, method and medium
EP3805972A1 (en) Blockchain-based energy interaction device, energy internet system and interaction method
CN101447894B (en) Identification of physical address of partial node, network configuration and maintaining method, and network system
CN203858627U (en) Portable RFID (radio frequency identification) equipment
CN103099639B (en) Ring topological structure of positron emission tomography (PET) imaging system and achieving method thereof
CN101915727B (en) FPGA-based particle detection statistical system and method
WO2018099179A1 (en) Small function board recognition system and method
CN110163289A (en) A kind of clustering method and system of the arbitrary shape data based on maximum neighbour's ratio
CN106656614B (en) Customization forwarding table generation method and system based on distribution terminal equipment XML file
CN107885500A (en) A kind of runtime environment generation method towards AUTOSAR software architectures
CN109685940A (en) Shared bicycle, smart lock and its application method and system, server
CN110032906A (en) Books recognition method, device and the storage medium of shared bookcase
CN107800816A (en) A kind of IP address database method for building up and terminal device
CN112230575B (en) Low-power-consumption switch detection control method and device and electronic equipment
CN210111691U (en) Distributed new energy storage system
CN207216630U (en) A kind of RFID125K low-power consumption card reading modules based on phase method
CN206849500U (en) It is grouped programmed circuit
CN219162745U (en) Lockset control circuit and intelligent door lock
CN103415079A (en) Time slot scheduling method and device used in wireless sensor network
US11734024B2 (en) Device for managing digital twins
CN108629487A (en) A kind of big data intelligent management apapratus
CN110212258A (en) BMS project installation configuration method, device and terminal device
CN115037517B (en) Intelligent Internet of things terminal safety state acquisition method and device and electronic equipment
CN109164982A (en) Data processing circuit, method and data storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20191126