基于单片机校园时间控制系统毕业论文

基于单片机的校园时间控制系统

摘 要

随着电子技术的迅速发展,特别是是随着大规模集成电路的出现,单片机技术的应用产品已经走向了各个领域。人类生活发生了根本性的改变。

校园时间控制系统主要是介绍利用单片机设计一个时间控制系统。首先,对系统进行了深入理解,包括系统的可行性、实用性等,然后确定方案,对方案的进行论证。方案确定后,进行硬件设计,描述硬件的工作原理,用Altium Designel 6.9绘制原理图。

校园时间控制系统除了具备基本时钟功能外,即可以实时显示年月日信息,还有对上下课打铃、教学楼照明、学生宿舍灯控制。

该控制系统主要采用STC89C52单片机来实现控制部分,DS1302时钟芯片来提供时钟信息,用LED1602来实时显示时间,系统还有输入键盘,用于修改时钟时间。本系统机构简单,工作稳定,廉价,控制时间精确以及体积小等优点,非常适合学校使用。

关键词:单片机 STC89C52 DS1302 LED1602

I

Abstract

With the rapid development of electronic technology, especially with the advent of the LSI, the applicSTCion of SCM technology products has gone to the various fields. Has undergone a fundamental change in human life.

Campus time control system is to introduce the use of a single-chip design-time control system. First, the system carried out in-depth understanding, including the feasibility, practicality, and then determine the program, the program to demonstrSTCe. The plan was finalized, the hardware design, describes the hardware works, draw a schemSTCic diagram of Altium Designel 6.9.

Campus time control systems have the basic clock function, real-time real-month, day, rang the bell on the class, the teaching building lighting, student dormitories, light control.

The control system using STC89C52 to control part of the DS1302 clock chip to provide the clock informSTCion from time to time to use LED1602 display time, the system input keyboard, is used to modify the clock time. The system organizSTCion is simple, stable, inexpensive, precise control time and the advantages of small size, very suitable for use in schools.

Key words:single-chip STC89C52 DS1302 LED1602

II

目 录

摘 要 ....................................................................................................................... I Abstract ................................................................................................................. II 第1章 绪论 .......................................................................................................... 1

1.1研究的目的和意义 .................................................................................. 1 1.2国内外概况 .............................................................................................. 2 1.3本文的内容及结构 .................................................................................. 3 第2章 系统总体设计方案................................................................................... 4

2.1系统的性能和要求 .................................................................................. 4 2.2系统框图 .................................................................................................. 6 2.3方案选择 .................................................................................................. 6

2.3.1电源模块 ....................................................................................... 6 2.3.2单片机选择 ................................................................................... 7 2.3.3显示模块 ....................................................................................... 7 2.3.4时钟模块 ....................................................................................... 8 2.4本章小结 .................................................................................................. 8 第3章 硬件电路设计 .......................................................................................... 9

3.1系统硬件概述 .......................................................................................... 9 3.2单片机控制电路设计 ............................................................................... 9

3.2.1STC89C52简介 .............................................................................. 9 3.2.2单片机控制模块设计 .................................................................. 11 3.3时钟电路设计 ........................................................................................ 13

3.3.1DS1302简介 ................................................................................ 13 3.3.2数据的读写 ................................................................................. 15 3.4显示电路设计 ........................................................................................ 16

3.4.11602基本简介 .............................................................................. 16 3.4.21602与单片机接口 ...................................................................... 16 3.4.31602的指令说明及时序 .............................................................. 18 3.5电铃电路设计 ........................................................................................ 21

3.5.1ISD1820语音芯片简介 ............................................................... 21 3.5.2ISD1820工作原理 ....................................................................... 23

III

联系客服:779662525#qq.com(#替换为@)