本科毕业设计(论文)
题 目 基于单片机的时控打铃设计
专业班级 学 号 学生姓名 指导教师 设计所在单位
基于单片机的时控打铃设计
摘要:随着家用电器的越来越普及和人们生活节奏的加快,人们对电器的依赖
性进一步提高,对电器的定时需求也进一步增大。定时开关打铃可用于工厂、学校等需要定时打铃的场合。定时开关打铃的使用能够做到节能、安全、方便等。本文介绍了一种基于STC89C52RC单片机的定时开关打铃设计方案。
本文首先介绍定时开关打铃设计要实现的功能,接着阐述系统电路的设计及原理说明,包括设计方案选择、关键元器件介绍、电路设计说明(包括电源电路、键盘、单片机控制电路、液晶1602显示、蜂鸣器工作电路)软件设计流程以及系统的测试。最后总结了定时开关打铃设计完成的任务,分析系统的不足并提出了系统的应用展望。
关键词:STC89C52RC;定时打铃;1602液晶;键盘
Design of Control Outlet Based on SCM
Abstract: with the increasing popularity of household appliances and people life rhythm speeding up, people for the dependence of the electrical appliances to further improve, demand for electric timing also increases further. Time switch ringing the bell can be used in factories, schools and so on need to regular the occasion of ringing the bell. Time switch the use of ringing the bell can achieve energy saving, safety, convenience, etc. This paper introduces a kind of based on STC89C52RC single-chip microcomputer timer switch design of ringing the bell.
This paper introduces the time switch design in order to realize the function of ringing the bell, and then expounds design and principle of the circuit system, including design scheme selection, key components, circuit design specificSTCion (including power circuit, keyboard, 1602 single chip microcomputer control circuit, liquid crystal display, relay circuit) software design process, and system test. Finally summarizes the time switch ringing the bell design task, the shortcoming of the system and put forward the applicSTCion prospect of the system.
Key words:STC89C52RC,Timer switch,LCD 1602,Keyboard
目录
目录
第一章 绪论 .................................................................................................... 1
1.1 选题的目的与意义 ............................................................................ 1 第二章 系统设计方案 .................................................................................... 2
2.1 系统结构与功能 ................................................................................ 2 2.2 方案框图 ............................................................................................ 2
2.2.1 方案1 ....................................................................................... 2 2.2.2 方案2 ....................................................................................... 2 2.3 开关的选择 ........................................................................................ 3 2.4 显示方式选择 .................................................................................... 4 2.5 时钟的实现及单片机的选择 ............................................................ 4 2.6 按键控制部分的实现 ........................................................................ 4 第三章 主要元器件原理及其应用 ................................................................ 6
3.1 单片机STC89C52简介 ...................................................................... 6
3.1.1 主要特性 .................................................................................. 6 3.1.2 引脚功能说明 .......................................................................... 7 3.2 1602工业字符型液晶简介 ............................................................... 9
3.2.1 主要特性 .................................................................................. 9 3.3 蜂鸣器介绍 ...................................................................................... 10
3.3.1 蜂鸣器的继电特性 ................................................................ 10 3.3.2 蜂鸣器工作原理及特性 ........................................................ 10 3.3.3 蜂鸣器主要产品技术参数 .................................................... 11 3.3.4 蜂鸣器的选用 ........................................................................ 12
第四章 硬件电路的设计 .............................................................................. 13
4.1 单片机最小系统 .............................................................................. 13 4.2 液晶显示 .......................................................................................... 14 4.3 蜂鸣器驱动电路 .............................................................................. 15 4.4 键盘电路 .......................................................................................... 15 第五章 系统软件设计 .................................................................................. 17
5.1 开发环境 .......................................................................................... 17 5.2 各模块程序设计 .............................................................................. 17
5.2.1 主程序流程图 ........................................................................ 17
第1页