《基于单片机的万年历加温度显示设计毕业设计92页》由会员分享,可在线阅读,更多相关《基于单片机的万年历加温度显示设计毕业设计92页(92页珍藏版)》请在金锄头文库上搜索。
1、1本科毕业论文(设计)题 目 基于单片机的万年历加温度显示设计 I基于单片机的万年历加温度显示设计摘摘 要要本设计将制作一种基于单片机控制的带实时温度显示、具有定时功能的电子万年历。传统的电子日历大都体积大,功耗大,显示不准确等特点。为了缩小体积,减小功耗,使其变得小巧灵敏,本设计加入了时钟芯片 DS1302,可对时间进行准确记时,同时可设置定时时间,实现定时功能。另外本设计具有显示实时温度的功能。传统的温度传感器系统大都采用放大、调理、A/D 转换,转换后的数字信号送入计算机处理,处理电路复杂、可靠性相对较差,占用计算机的资源比较多。本设计将采用 DS18B20 一线制数字温度传感器,可将温
2、度信号直接转换成数字信号送给微处理器,电路简单,成本低,实现了时间温度同时显示的效果。最后,温度和时间都将通过 12864 液晶显示器进行显示。测试表明系统达到了设计要求的各项功能,各部分工作正常。关键词 时钟/温度检测/单片机/温度MICROCONTROLLER-BASHEDIICALENDER AND TEMPERATURE DISPLAY DESIGNABSTRACTThis design creates an electronic calendar with real-time temperature display and timing function based on singl
3、e chip control. Most of traditional calendars are characterized by large size, high power consumption and inaccurate display. In order to reduce volume and power consumption and make calendars become small and exquisite, the design adds a clock chip DS1302, which can accurately record the time and s
4、et a regular time to achieve timing function. In addition, this design displays real-time temperature function. Traditional temperature sensor system is mostly amplified, recuperated and A / D converted. The converted digital signal is input the computer to be processed, but the processing circuit i
5、s complicated with relatively poor reliability and occupies more resources of the computer. This design uses the DS18B20 first-line system digital temperature sensor to directly convert the temperature signal into digital signal and send it the microprocessor, whose circuit is simple and low cost, a
6、chieving the displayed effect of time and temperature simultaneously. Finally, the temperature and time will be displayed through the 12864 liquid crystal display. The test indicates that the system has reached various functions of the design requirements and each part operates smoothly.KEY WORDS cl
7、ock, temperature detection, SCM, temperature1目 录中文摘要 .I英文摘要.II1 概论.11.1 万年历发展背景.11.2 电子万年历的特点.11.3 国内外现状、发展.12 系统基本方案选择和论证.22.1 单片机芯片的选择方案和论证.22.2 显示模块的选择方案和论证.32.3 时钟芯片的选择方案和论证.42.4 温度传感器的选择方案和论证.42.5 电路设计最终方案确定.53 系统硬件电路设计.63.1 系统功能模块划分.63.2 各单元模块功能分析及模块电路设计.63.2.1 时钟模块 .63.2.2 温度模块.73.2.3 显示模块 .1
8、03.2.5 独立键盘模块.1923.2.6 蜂鸣器模块 .203.2.7 单片机模块 .213.3 电路原理图的绘制和电路的焊接.243.3.1 原理图绘制软件 PROTEL .243.3.2 PCB 制作.243.3.3 元器件的焊接.254 系统软件设计.274.1 万年历软件系统的流程图.274.2 温度信息的采集.284.3 时钟的读取.314.3.1 DS1302 控制字节的说明.314.3.2 DS1302 时间日期寄存器及相应位定义 .324.3.3 DS1302 数据的输入和输出 .324.3.4 DS1302 读写部分(程序)部分.334.4 温度的显示控制.334.5 键盘模块.354.6 蜂鸣器模块.355 设计总结.36致谢.