资源描述:
《毕业设计(论文)-基于at89s52单片机的教室电铃控制装置设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、摘要电铃广泛运用于学校,机关及管理严格的企事业单位中,已成为各级学校、企事业单位正常工作的指挥棒。所以电铃在生活中占据着重要地位。电铃的控制已经从手动发展到自动控制。设计一个以AT89S52单片机为核心的教室电铃控制装置,它结构简单容易实现。该装置主要包括显示部分、键盘输入部分和指示灯部分。显示部分由六位数码管组成,前两位显示小时,中间显示分钟,最后两位显示秒钟。该装置将实现时钟功能、校时功能、定时打铃功能、手动与自动转换、关闭/开启定时点等功能。本设计的软件编程采用C语言。软件由各个功能模块组成,主要包括定时器的初始化,驱动芯片初始化,时钟的设定,闹铃时间的设定,定时器中断
2、处理,按键判断,响铃判断,定时点的开启与关闭等。关键字:自动控制;单片机;电铃AbstractThebelltowidelyusedinschool,authorityandstrictmanagementofenterprisesandinstitutions,hasbecomeaschoolsatalllevels,enterpriseorbusinesstheunitnormalworkbaton.Sointhelifethebelltooccupyanimportantposition.Buzzersfrommanualcontrolhastoautomaticcon
3、trol.DesignaAT89S52SCMasthecoretocontrolthebelltotheclassroomdevice,itissimpleinstructureeasytoimplement.Thedeviceismainlyincludedisplaysection,keyboardinputpartandindicatorlightsparts.Displayinpartbythesixdigitaltubecomposition,thefirsttwohours,showthatamongminutes,thefinaltwoshowsseconds.
4、Thisdevicewillrealizetheclockfunction,resetfunction,timefunction,thebellringfunction,themanualandautomaticconversion,closed/opentimepoints,etc.Function.ThedesignofthesoftwareprogrammingusingClanguage.Softwarefromthevariousfunctionalmodules,thissectionincludestheinitializationofthetimer,thed
5、rivechipinitialization,theclocksetting,alarmtimeset,thetimerinterruptprocessing,keyjudgments,judgingrings,timingpointOnandoffandsoon.Keywords:automaticcontrol;SCM;bell目录1.绪论......................................................................................................................
6、..............11.1设计目的意义..........................................................................................................11.2国内外研究现状.....................................................................................................11.3研究内容及方法......................................
7、................................................................12.方案选择............................................................................................................................32.1基于单片机的电铃控制装置...........................................