摘要: 基于单片机的控制系统已经在生活中得到广泛的应用,本次课题所使用到的时钟芯片则是单片机控制系统中的其中一个较为重要的部分。在此次的作息时间控制系统设计中,要求能对时钟进行设置及显示,并且需要有打铃、照明以及课间操的功能,利用蜂鸣器和指示灯在指定的时间实现这些功能。时钟芯片DS1302是本系统中的主要芯片,其中的写入与读出操作都由命令字与片内寄存器的组合来实现。经过对DS1302的了解,同时也发现了手动加减时间所出现的问题,但经过研究,通过写入对应的数字,解决了这个问题。在此次设计中,加深了对单片机应用的理解,也深入掌握了更多芯片的使用方法。其中,系统被分为八个模块,分别是时钟模块、日期模块、闹钟模块、打铃模块、停止闹钟模块、延时闹钟模块、显示模块以及照明模块,通过AT89C51单片机与时钟芯片DS1302、显示芯片LCD1602等的结合,一一实现了本系统中的各个模块。32224
毕业论文关键词: 时钟芯片DS1302;命令字;AT89C51单片机;显示芯片LCD1602;蜂鸣器
The design of schedule control system based on SCM
Abstract: Control system based on SCM has been widely used in the life. The trickle-charge timekeeping chip used in this issue is one of the post important parts in the control system. The request of the design is that the clock can be set and displayed, and it should has the function of ringing、lighting、and exercising music.Using buzzer and LED light to achieve these functions. The trickle-charge timekeeping chip DS1302 is the main chip in this system, the operation of write in and read out is realized by the combination of command word and on chip registers. After knowing DS1302, I have found some problems when add and subtract time. But after discussing, the problem has been resolved by writing in the corresponding number. When designing this system, I have deepened my understanding about the application of the SCM, and also mastered many application methods of chips. The system has been pided into eight modules. There are clock module、date module、alarm clock module、ringing module、alarm clock stopping module、alarm clock delaying module、display module and lighting module. These modules are achieved by the combination of the SCM AT89C51、the trickle-charge timekeeping chip DS1302、display chip LCD1602 and so on.
Keywords: trickle-charge timekeeping chip DS1302; command word; SCM AT89C51; display chip LCD1602; buzzer
目录
摘要 i
Abstract i
目录 iii
1 绪论 1
1.1 引言 1
1.2 课题研究的目的及意义 1
1.3 国内外研究现状水平及发展趋势 2
2 系统硬件设计 3
2.1 仿真电路总体设计图 3
2.2 硬件模块分析 3
2.2.1 显示模块 3
2.2.2 按键模块 4
2.2.3 LED模块 4
2.2.4 蜂鸣器模块 5
2.2.5 串行接口日历时钟模块 5
2.3 相关芯片介绍 6
2.3.1 日历时钟芯片DS1302 6
2.3.2 字符型液晶显示LCD1602 8
2.3.3 单片机80C51 10
3 系统详细设计分析 14
3.1 总体流程图 14
3.2 软件模块分析 15
3.2.1 时钟设置模块 15
3.2.2 日期设置模块 16
3.2.3 打铃模块 16
3.2.4 广播操模块 17
3.2.5 照明模块 17
3.2.6 闹钟设置模块 18 AT89C51单片机作息时间控制系统设计+源程序+电路图:http://www.youerw.com/zidonghua/lunwen_28694.html