CN101853033A - Multipoint temperature reading and transforming method - Google Patents
Multipoint temperature reading and transforming method Download PDFInfo
- Publication number
- CN101853033A CN101853033A CN200910048583A CN200910048583A CN101853033A CN 101853033 A CN101853033 A CN 101853033A CN 200910048583 A CN200910048583 A CN 200910048583A CN 200910048583 A CN200910048583 A CN 200910048583A CN 101853033 A CN101853033 A CN 101853033A
- Authority
- CN
- China
- Prior art keywords
- temperature
- bus
- temperature sensor
- main frame
- reads
- 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
Links
Images
Landscapes
- Measuring Temperature Or Quantity Of Heat (AREA)
Abstract
The invention discloses a multipoint temperature reading and transforming method, which is characterized in that three temperature sensors are connected with the same bus and a PIC single chip control system is also connected with the bus, and comprises an initialization step and a multipoint temperature reading and transforming step. Through a one-bus multipoint reading and transforming way, the distribution reading of the single chip for the refrigeration box and the centralized control of the computer are realized, and the control performance is high.
Description
Technical field
The present invention relates to a kind of temperature reading and transforming method, relate in particular to a kind of multipoint temperature reading and transforming method that is used for household freezer.
Technical background
Temperature detection is a kind of mode relatively more commonly used in the control system, and general at present employing mimic channel or digital circuit realize most temperature acquisition control function, and control performance is not high.
The single-chip microcomputer significance of application is not limited only to its broad range and the economic benefit of being brought, priorly be that also it has fundamentally changed traditional Control System Design thought and method for designing, but the temperature acquisition for household freezer detects, also do not use single-chip microcomputer to realize at present, applicant of the present invention is devoted to study a kind of multipoint temperature reading and transforming method by chip microcontroller, to improve control performance.
Summary of the invention
The objective of the invention is to overcome the defective of prior art, and a kind of multipoint temperature reading and transforming method is provided, it has realized by single-chip microcomputer the distribution of household freezer being read and the computing machine centralized control, the control performance height.
The technical scheme that realizes above-mentioned purpose is: a kind of multipoint temperature reading and transforming method, wherein, three temperature sensors are mounted on the same bus, and a PIC single-chip computer control system also is mounted on this bus, comprise that initialization step and multi-point temp read switch process, wherein:
Described initialization step comprises:
Step S11, the main frame of PIC single-chip computer control system send reseting pulse signal to temperature sensor;
Step S12, main frame discharges bus;
Step S13 judges whether bus uprises,
If bus uprises, then enter step S14;
If bus does not uprise, then return step S11;
Step S14 judges whether temperature sensor exists signal,
If there is signal in temperature sensor, then enter step S15;
If there is not signal in temperature sensor, then return step S12;
Step S15, bus step-down, detected temperatures sensor response end signal;
Step S16 judges whether bus uprises,
If bus uprises, then enter step S17;
If bus does not uprise, then return step S15;
Step S17, time-delay 300us finishes initialization, returns;
Described multi-point temp reads switch process and comprises:
Step S21, main frame sends reset command to all temperature sensors;
Step S22 skips coupling ROM;
Step S23, main frame sends the temperature transition order to all temperature sensors;
Step S24 delays time 1 second to wait for that whole temperature transition finish;
Step S25, main frame sends reset command to all temperature sensors;
Step S26 mates first temperature sensor;
Step S27 reads the temperature of first temperature sensor;
Step S28, main frame sends reset command to all temperature sensors;
Step S29 mates second temperature sensor;
Step S30 reads the temperature of second temperature sensor;
Step S31, main frame sends reset command to all temperature sensors;
Step S32 mates the 3rd temperature sensor;
Step S33 reads the temperature of the 3rd temperature sensor;
Step S34 returns, and promptly returns step S21.
Above-mentioned multipoint temperature reading and transforming method, wherein, described temperature sensor is an one-wire bus formula temperature sensor.
The invention has the beneficial effects as follows: multipoint temperature reading and transforming method of the present invention has realized that by the conversion regime that reads of a line multipoint mode distributed temperature reads and changes, and centralized control has improved control performance.
Description of drawings
Fig. 1 is the process flow diagram of initialization step of the present invention;
Fig. 2 is the process flow diagram that multi-point temp of the present invention reads switch process.
Embodiment
Below will the invention will be further described for an embodiment.
See also Fig. 1 and Fig. 2, there is shown a kind of multipoint temperature reading and transforming method of the present invention, three temperature sensors are mounted on the same bus, and a PIC single-chip computer control system also is mounted on this bus, comprise that initialization step and multi-point temp read switch process, wherein:
Initialization step comprises:
Step S11, the main frame of PIC single-chip computer control system send reseting pulse signal to temperature sensor;
Step S12, main frame discharges bus;
Step S13 judges whether bus uprises,
If bus uprises, then enter step S14;
If bus does not uprise, then return step S11;
Step S14 judges whether temperature sensor exists signal,
If there is signal in temperature sensor, then enter step S15;
If there is not signal in temperature sensor, then return step S12;
Step S15, bus step-down, detected temperatures sensor response end signal;
Step S16 judges whether bus uprises,
If bus uprises, then enter step S17;
If bus does not uprise, then return step S15;
Step S17, time-delay 300us finishes initialization, returns;
Multi-point temp reads switch process and comprises:
Step S21, main frame sends reset command to all temperature sensors;
Step S22 skips coupling ROM;
Step S23, main frame sends the temperature transition order to all temperature sensors;
Step S24 delays time 1 second to wait for that whole temperature transition finish;
Step S25, main frame sends reset command to all temperature sensors;
Step S26 mates first temperature sensor;
Step S27 reads the temperature of first temperature sensor;
Step S28, main frame sends reset command to all temperature sensors;
Step S29 mates second temperature sensor;
Step S30 reads the temperature of second temperature sensor;
Step S31, main frame sends reset command to all temperature sensors;
Step S32 mates the 3rd temperature sensor;
Step S33 reads the temperature of the 3rd temperature sensor;
Step S34 returns, and promptly returns step S21.
Among the present invention, temperature sensor is an one-wire bus formula temperature sensor.
Above embodiment is only for the usefulness that the present invention is described, but not limiting the scope of the invention.Relevant those skilled in the art under the situation that does not break away from the spirit and scope of the present invention, can also make various conversion or modification, and the technical scheme that all are equal to also should belong within the category of the present invention's protection, is limited by each claim.
Claims (2)
1. a multipoint temperature reading and transforming method is characterized in that, three temperature sensors is mounted on the same bus, and a PIC single-chip computer control system also is mounted on this bus, comprises that initialization step and multi-point temp read switch process, wherein:
Described initialization step comprises:
Step S11, the main frame of PIC single-chip computer control system send reseting pulse signal to temperature sensor;
Step S12, main frame discharges bus;
Step S13 judges whether bus uprises,
If bus uprises, then enter step S14;
If bus does not uprise, then return step S11;
Step S14 judges whether temperature sensor exists signal,
If there is signal in temperature sensor, then enter step S15;
If there is not signal in temperature sensor, then return step S12;
Step S15, bus step-down, detected temperatures sensor response end signal;
Step S16 judges whether bus uprises,
If bus uprises, then enter step S17;
If bus does not uprise, then return step S15;
Step S17, time-delay 300us finishes initialization, returns;
Described multi-point temp reads switch process and comprises:
Step S21, main frame sends reset command to all temperature sensors;
Step S22 skips coupling ROM;
Step S23, main frame sends the temperature transition order to all temperature sensors;
Step S24 delays time 1 second to wait for that whole temperature transition finish;
Step S25, main frame sends reset command to all temperature sensors;
Step S26 mates first temperature sensor;
Step S27 reads the temperature of first temperature sensor;
Step S28, main frame sends reset command to all temperature sensors;
Step S29 mates second temperature sensor;
Step S30 reads the temperature of second temperature sensor;
Step S31, main frame sends reset command to all temperature sensors;
Step S32 mates the 3rd temperature sensor;
Step S33 reads the temperature of the 3rd temperature sensor;
Step S34 returns, and promptly returns step S21.
2. multipoint temperature reading and transforming method according to claim 1 is characterized in that, described temperature sensor is an one-wire bus formula temperature sensor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910048583A CN101853033A (en) | 2009-03-31 | 2009-03-31 | Multipoint temperature reading and transforming method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910048583A CN101853033A (en) | 2009-03-31 | 2009-03-31 | Multipoint temperature reading and transforming method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101853033A true CN101853033A (en) | 2010-10-06 |
Family
ID=42804562
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910048583A Pending CN101853033A (en) | 2009-03-31 | 2009-03-31 | Multipoint temperature reading and transforming method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101853033A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103411701A (en) * | 2013-08-22 | 2013-11-27 | 四川大学 | Automatic temperature monitoring system for power station tail water or riverway water |
CN103528628A (en) * | 2013-10-29 | 2014-01-22 | 上海工程技术大学 | Humiture data acquisition method |
-
2009
- 2009-03-31 CN CN200910048583A patent/CN101853033A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103411701A (en) * | 2013-08-22 | 2013-11-27 | 四川大学 | Automatic temperature monitoring system for power station tail water or riverway water |
CN103528628A (en) * | 2013-10-29 | 2014-01-22 | 上海工程技术大学 | Humiture data acquisition method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101853033A (en) | Multipoint temperature reading and transforming method | |
CN201656956U (en) | A/D type key circuit | |
CN202127416U (en) | Routing module of power line carrier communication ad hoc network | |
CN105472782B (en) | A kind of wireless communication terminal | |
CN204556108U (en) | A kind of infrared ray sensing device | |
CN104034953A (en) | Current zero crossing detection circuit for BUCK type synchronous rectification converter | |
CN101852651A (en) | Intelligent multipoint temperature measuring method | |
CN102541788A (en) | APB (advanced peripheral bus) bridge and method for executing reading or writing by using APB bridge | |
CN103560796B (en) | Matrix circuit and scan method | |
CN105528570A (en) | Optical fingerprint serial-communication anti-creeping system | |
CN103273632A (en) | Injection moulding machine control system based on function adapter line boxes with CPUs (central processing units) | |
CN203232283U (en) | Bus controller integrated with protocol conversion and information collection functions | |
CN203911793U (en) | Zero-cross detection circuit applied to switch power supply synchronous rectification converter | |
CN201187962Y (en) | Plate-type heat exchanger | |
CN202282736U (en) | Switch power supply compatible of synchronous rectification and diode rectification | |
CN201730002U (en) | Integral water level monitoring device | |
CN204841647U (en) | Mounting bracket of fabrics emulsion reation kettle condenser tube flowmeter | |
CN203489927U (en) | Bus type thermal flow switch | |
CN209214766U (en) | A kind of illumination sensing circuit | |
CN204924285U (en) | Take humiture data acquisition system of dry contact | |
CN202384263U (en) | Mechanical and electronic combined relay | |
CN202856851U (en) | Signal acquisition system of contact-type image sensor | |
CN102253650A (en) | Energy consumption monitoring device and system | |
CN202758181U (en) | Novel practical IO module | |
CN202939431U (en) | Touch screen control circuit in embroidery machine system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20101006 |