目 录
摘 要 .......................................................................................................................................................................I
ABSTRACT............................................................................................................................................................II
1 引言.......................................................................................................................................................................1
2 功能要求...............................................................................................................................................................1
3 方案论证与设计...................................................................................................................................................1
3.1 控制部分的方案选择....................................................................................................................................1
3.2 测温部分的方案选择....................................................................................................................................1
3.3 显示部分的方案选择....................................................................................................................................2
4 系统硬件电路设计...............................................................................................................................................2
4.1 主控器 AT89C52 ..........................................................................................................................................2
4.2 时钟电路 DS1302 .........................................................................................................................................3
4.2.1. DS1302 的性能特性 ..............................................................................................................................3
4.2.2 DS1302 数据操作原理 ...........................................................................................................................3
4.3 测温电路的设计............................................................................................................................................5
4.3.1 温度传感器工作原理 ............................................................................................................................5
4.3.2 DS18B20 与单片机的接口电路.............................................................................................................8
4.4 显示电路的设计............................................................................................................................................9
4.5 键盘接口的设计 ........................................................................................................................................10
5 系统程序的设计.................................................................................................................................................10
5.1 阳历程序设计..............................................................................................................................................10
5.2 时间调整程序设计......................................................................................................................................11
5.3 温度程序设计..............................................................................................................................................12
5.3.1 主程序 ..................................................................................................................................................12
5.3.2 读出温度子程序 ..................................................................................................................................12
5.3.3 温度转换命令子程序 ..........................................................................................................................12
5.3.4 计算温度子程序 ..................................................................................................................................13
5.3.5 显示数据刷新子程序 ...........................................................................................................................13
6 调试及性能分析...............................................................................................................................................13
6.1 调试步骤......................................................................................................................................................14
6.2 性能分析......................................................................................................................................................14
7 总结...................................................................................................................................................................14
参考文献.................................................................................................................................................................14
致 谢.....................................................................................................................................................................14