基于单片机的校园作息时间控制系统.doc
《基于单片机的校园作息时间控制系统.doc》由会员分享,可在线阅读,更多相关《基于单片机的校园作息时间控制系统.doc(45页珍藏版)》请在启牛文库网上搜索。
1、西南科技大学本科生毕业论文II目 录第1章 绪论11.1 概述11.2 国内外发展现状11.3 课题的题出21.4 本文设计内容与结构2第2章 方案设计与论证42.1系统的设计思想42.2方案设计与论证42.2.1 单片机芯片42.2.2 显示模块52.2.3 时钟芯片62.2.4 电路设计方案62.3本章小结7第3章 系统硬件设计83.1主控模块设计83.1.1 STC89C52单片机83.1.2 电路设计103.2时钟模块设计113.2.1 DS1302时钟芯片113.2.2电路设计133.3 键盘接口电路设计143.4 显示模块设计143.4.1 LCD1602液晶显示模块143.4.2
2、 电路设计163.5 输出控制模块设计173.6 本章小结18第4章 系统软件设计194.1 主程序设计194.2 显示程序设计194.3 按键程序设计214.4 输出程序设计224.5 时钟程序设计244.6 本章小结24第5章 系统仿真与硬件调试255.1 软件调试255.1.1 Keil C51255.1.2 Protues仿真265.1.3系统软件仿真275.2 硬件调试295.3 系统联调315.3.1联调中问题及分析315.3.2系统联调的实现335.4 本章小结33结 论34致 谢35参考文献36附录1 系统原理图37附录2 LCD1602字符显示表38附录3 系统实物图39基于
3、单片机的校园作息时间控制系统摘要:校园作息时间控制系统主要用于学校,对一些以24小时为周期的开关量进行自动控制。如上下课打铃、教学楼照明的定时开与关、学生宿舍灯及校园路灯的定时开关、水泵的定时启动以及自来水供水时间控制等等。本文介绍了基于单片机的校园作息时间控制系统,该控制系统是采用STC89C52单片机来实现对上述开关量的控制,利用DS1302时钟芯片来提供时钟信息,LCD显示器,实时显示时间。系统设有输入键盘,用以修改实时时钟。并设有停电保护,避免了停电等偶然因素所带来的不便。整个设计总体体现了系统简单、工作稳定可靠、价廉、控制时间精确及系统体积小等优点。关键词:STC89C52;作息时间
4、;DS1302;仿真Campus work schedules control system based on Single-Chip MicrocomputerAbstract: Campus work schedules control system which is mainly used in the campus, it auto-control some switches which have periods of 24 hours. Such as the bells ringing when classes begin or finish, the time switches
5、of lamps in teaching buildings and student dormitories, the time start-up of water pump, and the tap water supply control system, etc.This article describes the characteristic of Campus work schedules control system based on Single-Chip Microcomputer, it control system carries out the switch paramet
6、er controls all above by SCM STC89C52. It uses the clock chip called DS1302 to provide the clock information. It could show the real time with LCD Monitor. And it could modify the real time clock with the input keyboard. It also has power failure protection, to avoid inconvenience such as accidental
7、 power outages and other factors. The design reflects the overall system is simple, reliable, cheap and accurate control of time and the advantages of small size.Key words: STC89C52,Work schedules,DS1302,Simulation目 录第1章 绪论11.1 概述11.2 国内外发展现状11.3 课题的题出21.4 本文设计内容与结构2第2章 方案设计与论证42.1系统的设计思想42.2方案设计与论证
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 单片机 校园 作息 时间 控制系统