摘要自动打铃系统,是以一片8位单片机为核心的实时时钟及控制系统。本设计以AT89S51单片机为控制器,以DS1302时钟芯片为系统提供时间,并在液晶显示器上显示。其原理是:与单片机连接的石英晶体振荡器能提供稳定、准确的基准频率,并经12分频后向内部定时器提供实时基准频率信号。此外,通过按键可以设定定时打铃的时间点和打铃的时间间隔,并对系统当前时间以及打铃时间进行调节、存储、清空操作,同时可以使用外部存储器24C02C完成打铃时间的存储。本设计在系统掉电的情况下仍可以正常地打铃,进行时间的设定和数据的保持。本文提出的设计方法电路简单,同时具有体积小、功耗低,实用性强,可靠性高,价格便宜,使用方便等优点。43288
关键词 单片机 AT89S51 DS1302 24C02C 实时时钟
毕业设计说明书外文摘要
Title The design of the campus bell system based on single chip microcomputer
Abstract
Automatic bell system, is based on a 8 bit micro-controller as the core of the real-time clock and control system. The design of the AT89S51 micro-controller as the controller, DS1302 clock chip to provide time for the system, and in the liquid crystal display. The principle is: the single chip connected with the quartz crystal oscillator can provide a stable and accurate reference frequency, and after 12 frequency to the internal timer to provide real-time reference frequency signal. In addition, through the buttons can set the time interval of timing bell time and rang the bell, and to the current system time and the bell ring of time for adjustment, storage, vacuuming, also can use external memory 24C02C complete bell time of storage. This design can still be normal bell in case of power failure the system, maintain time setting and data. The design method proposed in this paper is simple, and has the advantages of small size, low power consumption, strong practicability, high reliability, low price, easy to use, etc..
Keywords SINGLESHIP AT89S51 DS1302 24C02C TIME CLOCK
目 录
1 引言 1
2 方案设计与论证 2
2.1 设计要求 2
2.2 设计方案选择与比较 2
2.2.1 控制模块方案选择 2
2.2.2 显示模块方案选择 4
2.2.3 存储模块方案选择 4
2.3 总体方案设计 5
2.3.1 设计课题概述 5
2.3.2 系统软硬件划分 5
2.3.3 单片机选型 5
2.4 总体设计框图 5
3 硬件电路设计 7
3.1 基本原理概述 7
3.2 模块设计 7
3.2.1 控制模块设计 7
3.2.3 存储模块设计 10
3.2.4 键盘控制模块设计 14
3.2.5 显示模块设计 15
3.3 总体运行进程 17
4 软件电路设计及流程图 19