AbstractThis paper introduces a new digital thermometer that uses the S12 microcontroller of FREESCALE as the main control element and measures temperature through the DS18S20 temperature sensor of DALLAS. It mainly includes the design of hardware circuit and system program. The hardware circuit mainly includes the main controller, temperature measurement circuit and display circuit, etc. The main controller uses the single-chip microcomputer MC9S12DG128, the temperature sensor uses the DS18S20 produced by the American DALLAS Semiconductor Company, and the display circuit uses a 4-bit common cathode LED digital tube to directly read and display by dynamic scanning method. The system program mainly includes the main program, the temperature reading subroutine, the temperature processing subroutine, the LED display subroutine, etc. In addition, the system test is also introduced. This digital thermometer design uses an intelligent temperature sensor DS18S20 launched by the American DALLAS Semiconductor Company as the detection element, with a temperature measurement range of -55~125℃ and a maximum resolution of 0.0625℃. The main controller uses the single-chip microcomputer MC9S12DG128, which has high integration and rich on-chip resources. The interface modules include SPI, SCI, I2C, A/D, PWM, etc. The display circuit uses a 4-bit common cathode LED digital tube, outputs segment codes from port B, and column scanning is implemented using port K. Due to the use of the improved intelligent temperature sensor DS18S20 as the detection element, compared with the traditional thermometer, this digital thermometer reduces the external hardware circuit, has the characteristics of low cost and easy use. The DS18S20 thermometer can also be used in high temperature alarm, long-distance multi-point temperature measurement control and other aspects for application development, and has a good development prospect.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore