好文档 - 专业文书写作范文服务资料分享网站

自动打铃系统设计

天下 分享 时间: 加入收藏 我要投稿 点赞

<<综合课程设计>> 自动打铃系统设计报告

题 目:自动打铃系统 专 业:电子信息工程 年 级: 学 号: 学生: 联系: 指导老师:

完成日期: 2013年12月30日

自动打铃系统

摘要

在现如今快节奏的生活中,人们对于时间的要求越来越苛刻,很多时候需要对时间规划,然后到时间点就要有时间提醒,这就必须用到时中提醒装置,亦可称为打铃装置。打铃装置有很多种,比如手机的打铃系统,闹钟的机械打铃系统,广播打铃系统等等,但是日常生活中见得最多的还是校园的自动打铃系统。在学校生活中,每天上课都离不开打铃系统的使用。打铃器可以为上下课的学生和老师们提供时间提醒,有利于师生对上课和学习的合理安排。同事也可以作为一个提醒学生作息时间的时间表,让老师和学生都有一个规律科学的时间安排。因此,打铃系统的核心部分也是时钟部分,为系统提供时间基准。

本设计主要是针对适用于校园打铃系统要求的,其介绍了一种基于单片机的自动打铃系统的设计方法,系统以STC89C52单片机为控制器,以DS1302时钟芯片为系统提供时间,并在1602液晶显示器上显示,通过按键可以设定定时打铃时间和打铃间隔。系统软件设计采用C语言来完成,C语言语法简洁,使用方便,用于完成软件设计非常方便。

关键词:打铃器、STC89C52单片机、DS1302、LCD1602

ABSTRACT

In today's fast-paced life, people are more and more requirements, in many cases

need time to plan, and then to point in time will have time to remind, which must be used to remind device, also known as Bell equipment. Bell devices there are many, such as phone ringing system, the mechanical Bell alarm clock system, broadcast the Bell System, and so on, but in everyday life up to the school bell system automatically. In school life, are inseparable from the Bell system used in class every day. Bell can provide reminder of students and teachers to and from school, reasonable arrangements conducive to teachers and students on school and learning. Colleagues can be used as an alert student hours schedule, so that teachers and students have a timeline of the laws of science. Accordingly, Bell clock in the core part of the system, provide a time reference for the system. Designed primarily for the Bell System requirements apply to the campus, and introduces an automatic Bell system based on single-chip design methods, systems with STC89C52 single-chip controller, DS1302 provides the system time clock chip, in 1602 and displayed on the LCD by pressing the set ringing and ringing in intervals of time on a regular basis. System software design using the c language to complete, c language syntax is simple, easy to use, is very convenient for completing a software design.

Key Words: t Bell, DS1302, collector, STC89C52 single-chip LCD1602

目录

摘要 ................................................................................................................................... I ABSTRACT ..................................................................................................................... II

1.1设计要求 ............................................................................................................. 1 1.2 系统基本方案选择和论证 ................................................................................ 1

1.2.1 单片机芯片的选择方案和论证 .............................................................. 1 1.2.3 时钟芯片的选择方案和论证: .............................................................. 2 1.3 电路设计最终方案决定 .................................................................................... 2 2主要元件介绍 ............................................................................................................... 3

2.1 STC89C52以及最小系统介绍 ....................................................................... 3

2.1.1 STC89C52主要功能及PDIP封装 ...................................................... 3 2.1.2 STC89C52引脚介绍 ............................................................................. 3 2.1.3 STC89C52最小系统 ............................................................................. 5 2.2 DS1302时钟芯片以及时钟集成模块介绍 .................................................... 6

2.2.1 DS1302概述 .......................................................................................... 6 2.2.2 DS1302引脚介绍 .................................................................................. 7 2.2.3 DS1302使用方法 .................................................................................. 7 2.2.4 时钟集成模块部原理图 ...................................................................... 10 2. 3 1602字符液晶以及显示模块介绍 .............................................................. 10

2.3.1 1602液晶概述 ..................................................................................... 10 2.3.2 1602引脚介绍 ......................................................................................... 11 2.3.3 1602字符液晶使用方法 ..................................................................... 12 2.3.4 LCD显示模块原理图 ............................................................................ 14

3系统硬件设计 ............................................................................................................. 15

3.1 电路设计框图 .................................................................................................. 15 3.2 系统硬件概述 .................................................................................................. 16 4系统的软件设计 ......................................................................................................... 16

4.1程序流程框图 ................................................................................................... 16 5系统测试与总结 ......................................................................................................... 17

5.1 系统测试 .......................................................................................................... 17 5.2 总结 .................................................................................................................. 18 参考文献 ........................................................................................................................ 19 附录一: ........................................................................................................................ 21 附录二: ........................................................................................................................ 22

1设计要求与方案论证

1.1设计要求

1. 打铃的时间可设置 2. 系统具有多种工作模式

3. 可以通过按键选择系统的工作模式 4. 其他扩展功能

1.2 系统基本方案选择和论证

1.2.1 单片机芯片的选择方案和论证

方案一:

采用STC89C52芯片作为硬件核心。STC89C52部具有8KB ROM 存储空间,512字节数据存储空间,带有2K字节的EEPROM存储空间,与MCS-51系列单片机完全兼容,STC89C52可以通过串口下载。 方案二:

采用AT89S52。AT89S52片具有8K字节程序存储空间,256字节的数据存储空间没有EEPROM存储空间,也与MCS-51系列单片机完全兼容,具有在线编程可擦除技术。

两种单片机都完全能够满足设计需要,STC89C52相对ATS89C52价格便宜,且

抗干扰能力强。考虑到成本因素,因此选用STC89C52。 1.2.2 显示模块选择方案和论证: 方案一:

采用点阵式数码管显示。点阵式数码管是由八行八列的发光二极管组成,对于显示文字比较适合,如采用在显示数字显得太浪费,且也相对较高,所以不用此

自动打铃系统设计

<>自动打铃系统设计报告题目:自动打铃系统专
推荐度:
点击下载文档文档为doc格式
0vsyp2o7o155mbv23rb17u3cm9b9nu004oc
领取福利

微信扫码领取福利

微信扫码分享