摘要:在现代社会中,科技的进步创造出各种先进的电子设备,信息数字化正在改变着时代,也为我们的生产和生活带来了愈来愈多的便利。人们生活在地球上必然与温度紧密相连,为了准确的测量温度值,一个读数方便的温度计是必不可少的。为了这一目的本次设计就设计了这样一款读数方便、测量精度高、低功耗的温度计模型。本论文主要是用单片机AT89S51为主控制芯片,DS18B20代替传统温度传感器直接读取被测温度进行计算和转换,最终显示在液晶显示器上。该数字温度计扩展功能还包括可设置温度范围,并且安装了声光报警系统,当温度超出设定范围可自动报警。33585 毕业论文关键词:数字化;AT89C51;DS18B20;传感器;温度计
The Design of Digital Thermometer Based on Single Chip Processor
Abstract: In the modern society, the progress of science and technology to create all kinds of advanced electronic equipment, information is changing the digital era, also for our production and life has brought more and more convenient.People living on earth is closely combined with the temperature, in order to accurately measuring temperature, a thermometer readings convenient is indispensable.This design for this item would design such a reading is convenient, high measuring accuracy, low power consumption model of the thermometer.This thesis mainly is to use single chip AT89S51 as the main control chip, DS18B20 read directly instead of traditional temperature sensor temperature calculation and transformation, finally display on the LCD.The digital thermometer extensions also includes can set temperature range, and the sound and light alarm system installed, when the temperature exceeds the scope can be automatic alarm.
Key Words: Digital; AT89C51; DS18B20; The sensor; The thermometer
目 录
摘要 1
引言 2
1.系统整体方案设计 2
2.硬件设计 4
2.1元器件的选择 4
2.2单片机最小系统设计 4
2.3测温电路 6
2.4显示电路 7
2.5报警电路及报警指示灯 8
2.6稳压电路和按键电路 8
3.软件设计 9
3.1系统流程图 10
3.2主程序 11
3.3读温度子程序 11
3.4中断子程序 12
3.5显示子程序 13
4.系统的调试与仿真 13
5.结束语 15
参考文献 15
附录..16
附录1:电路原理图.16
附录2:程序.17
致谢 30