DS1620 is an 8-pin integrated circuit with built-in temperature measurement and conversion to digital values. It integrates temperature sensing, temperature data conversion and transmission, temperature control and other functions. Temperature measurement range: -55~+125℃, accuracy is 0.5℃. This chip is very easy to connect with a single-chip microcomputer to achieve temperature measurement and control applications. When used as a temperature controller alone, no other auxiliary components are required.
The pin function and arrangement are shown in Figure 1.
Among them: RST, CLK/CONV and DQ are three-wire serial communication lines; DQ is the data input and output terminal. When RST is kept at a high level, corresponding to the rising edge of the CLK/CONV clock pulse, DQ can input various control instructions and data bit by bit, and start to output the 9 B temperature value bit by bit at the falling edge of the CLK/CONV clock pulse, divided into 2 bytes, the least significant bit (LSB) is output first, the first byte (8 B) output divided by 2 is the Celsius temperature value, and the last byte (only 1 B) output is the sign bit of the temperature, which is 0 for positive and 1 for negative. When RST is low, the communication ends, CLK/CONV remains low, and DQ is in a high impedance state, but the temperature is measured and digitally converted (i.e., the temperature value is updated) inside the chip, which takes about 1 s.
Pin THIGH is the high temperature critical trigger output terminal. When the measured temperature is higher than the temperature TH set in the high temperature critical register, the pin changes from low level to high level, and returns to low level when the temperature is lower than TH; TLOW is the low temperature critical trigger output terminal, and its level change is similar to THIGH; TCOM is the high/low temperature critical combination trigger output terminal; they can all be used as the output terminal of the temperature regulator to directly control the heating or cooling equipment.
There is a working mode register inside the DS1620, as shown in Table 1.
Among them: DONE is the temperature data conversion bit, which is 0 for positive, and 1 for completed conversion during the conversion process; THF: high temperature flag bit, when the temperature is higher than or equal to the set value TH in the high temperature critical register, the hardware sets this bit, but the hardware cannot clear this bit; TLF: low temperature flag bit, when the temperature is lower than or equal to the set value TL, the hardware sets this bit, and similarly, the hardware cannot clear this bit; CPU: CPU use bit, when the software clears this bit, if RST is low, the temperature data conversion can be controlled by CLK/CONV, and the software converts this specific temperature bit, if the software sets this bit to 1, the DS1620 performs the temperature conversion at this moment and waits for reading, if the bit is set to 0, the DS1620 will continue to convert the temperature.
The working state of the DS1620 is controlled by external input instructions, and the specific instructions are as follows:
AAH reads the converted temperature data; starting from the 9th clock (also known as shift) pulse after the instruction is input, the data in the temperature register will be output.
01H writes TH data to the high temperature critical register.
02H Write TL data to the low temperature critical register.
A1H Read TH data in the high temperature critical register.
A2H Read TL data in the low temperature critical register.
EEH Start converting temperature data.
22H Stop converting temperature data.
0CH Write the working mode register.
ACH Write the working mode register.
2 Circuit design
As shown in Figure 2, the microcontroller P3.3~P3.5 is connected to the DS1620 in a three-wire communication mode. The P1 port outputs seven-segment codes. P3.0~P3.2 is connected to the COM end of the common anode digital tube through the driving transistor. The three buttons provide function expansion with the cooperation of P3.7.
3 Programming
The flowchart of the program is shown in Figure 3. Each program module is a subroutine and a call to a nested subroutine. The read and write DS1620 module module is a subroutine that completes the reading and writing of 1-byte temperature values or instructions; the key service module mainly completes the rewriting of TH and TL values in the high/low temperature critical register. [page]
The following is the assembly language program of 5 subroutines such as write/read DS1620, configure DS1620, start conversion, and read temperature. The remaining modules and programs will not be repeated.
4 Conclusion
The designed digital thermometer has high measurement accuracy, reliable operation, small size, low cost, and can be expanded into a temperature regulator. The disadvantage is that due to the hysteresis of DS1620 temperature measurement, it is not suitable for real-time temperature measurement.
References
[1] http://pdfserv.maxim-ic.com/arpdf/DS1620.pdf.
[2] He Limin.Selected Microcontroller Application Technology (8)[M]. Beijing: Beijing University of Aeronautics and Astronautics Press, 2000.
[3] Xue Dongliang. Principle and Application of MCS-51/151/251 Microcontroller (2)[M]. Beijing: China Water Resources and Hydropower Press, 2001 .
Previous article:Design of vehicle-mounted compaction tester based on AT89S52
Next article:Temperature and humidity automatic detection system composed of AT89C51/55
Recommended ReadingLatest update time:2024-11-17 00:35
- Popular Resources
- Popular amplifiers
- Learning MCU Technology from Scratch (Liu Jianqing)
- Wireless doorbell alarm based on AT89C2051 single chip microcomputer
- Infrared remote control LED electronic clock using real-time clock chip DS1302+AT89C2051
- Infrared remote control LED electronic clock using real-time clock chip DS1302+AT89C2051.rar
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Why should computer science students learn to use Linux systems?
- EEWORLD University Hall----Live Replay: Secure Boot of Microprocessors
- Texas Instruments Action Camera and Handheld Gimbal Solutions
- Reading Notes on the Good Book "Operational Amplifier Parameter Analysis and LTspice Application Simulation" 05--LTspice Simulation
- Revealed: Tektronix's first oscilloscope for you is now on the market
- Avnet MT3620 module accelerates Azure Sphere IoT security implementation
- [Non-contact automatic disinfection system] Material unpacking - a little surprise
- What microcontroller can be connected to the network via optical fiber using the CAN bus?
- >>See here "New Trend Report: How to Effectively Respond to Current Challenges in the Field of Test and Measurement" and download to win prizes!
- itop4412 development board-QtE4.7-UVC camera usage examples