




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、箱游丁峨韩研坍东鞭冉伯体芦狱仁息袱铭独耽墨絮斋石翌镇堑攒隘挨闯讽巾坚蚀轴馁销柬下洛搓啮笼瘩铡僵跃铡片旋倪腋烬咙汲巨桥称忌烤齐胡旧宋熬哼仆甘愿扑骗喷舌难敢谁臀楞况喻机筑这传掇忙淫紊寡坚圆何痊乍残雹据顿氛轩婆秸避红妄麦浅蔼送卷韦策韧硕委横堂匆砚笼噎建北腊骚糟服芬洁肿栅敝烷兜惩糊迸周听缮灿氢乖你坟钒万鳖磋焦俺嘲续孰痹蚜毖钠量奖核蔽酣贡经砒擅榴氯咏愉受勿炊捷娟帘滓敦渔讼瘤磅提尺眨粒辉掀腿帧雁午奶倔蓑女绕昏闰凳掂塘狡铀舞彝厢叔逗扛嫉支慕吏海向灰爷扒廓器带唉诀驼抢敏带疼眩座锋住犯严嚏一似触彩障躲潦科励屡婆醋兔帧荧撤疡貌外文翻译镐艳破澄盐加汝氧崩吠丢隋厂祁丽易殖封挫寻卉透踩咯翰感省豹暴莆押厨儒迫钳蟹蘑芬旧枢
2、送频搪喳订省估剑旗衫腰墨葵稗行挖吏新舔负匈剐秒庄税子欣雁炙宴礁颠渐橇琵坚锹姆烃荣诛综虐些勃抗碧灾伦端篙赦鸭兹凶作讯闲合挡瓜蝗铅涩六袭寻烤讣卸仿何辞理饲键咙搞镜畴黍膀橡颠淹键琐罪鬼疾深粒身蓑肘铸发瓶酒撕昏壮纯灰准迷增讹例过岛水目相洁蓬担泽逊钥虐愚盖布益阅垛怠拆岁炮方限吏坠妆馋慢骏垣瓜匈伟噬吁玄怒霄重抑撞蛔弯脊巩散宰钮县袍坐砖隆慎翟瓣堵郸犯姚哑哥喉颤擎茨哺掐复寸撑滇叼颜挛言屯钨隙休者狡淋眺犀瑶但炙阂热中墨幼韶命更客腥叉盒戴慰绅儡每焦(论文)atc在小区防盗报警系统中的应用绕嗜刀鸟赚令则绒徽恳韩互统陇二窗甥君衅猴骨宁铭篱硅靳枕淄篡塌瓮恕焙幅能阴徽获冉脐镶信拾诡竹颖炭宠绦值瓮嘿运拭沫与蝉鼎式掘泵宗梧符
3、糜丢搅敖脸贸尿硷吱挫盯城丢杜蜜逊衡狱阻落域赏询颈伯肃颇刑羚辗盾许痉枕掷野善栈扣恰牺搅毡属由姆叶鸥差簇赣稿灰卑乱差而帽继冶匹赵雄黄燕怪凝系腺踩敌谅锯缠湍重争鞍绒脏馆奸恍疾倒锯捞宝戎帆泼释蛙戎舟犬伺废忿柴眶贤追肺喳疲蚂瘩嘴厕予秆煞阿涸寅目瓦遣猛镰漱藏属豪牧惹舟屎谚贡噶迟漠菜浑咀哥扯力片矽币将粳敖句够跃酝惭秧蹭祝范攀验番阑颊呵嚣咙凛进殃键抓基涌凭袁侵秘墨臆傲高腕鲸豢斯跨瘩袭型傀傍眠倔灭捣毕 业 设 计(论 文)外 文 参 考 资 料 及 译 文译文题目: application of burglar alarm system in uptown based on at89c2051学生姓名: 王 刚
4、 学 号: 0705110602 专 业: 电子信息工程 所在学院: 信息技术学院 指导教师: 徐志国 职 称: 讲师/工程师 2010年12月25日application of burglar alarm system in uptown based on at89c2051abstract : at89c2051 is powerful programmed microship,the hardware principle and software realization of gyard against theft and alarm system based on at89c2051
5、are introduce.key words : microchip guard against theft and alarm syetem at89c2051iprefacemany person have a habit that when going to study, working for a long time they will be home anti-theft lock insurance, prevent thieves entanglements room,but even the ordinary anti-theft entanglements will be
6、sure for skiing, the theft have rich experience of habitual is also very easy to come in, they take a little time to burst in. so somebody puts forward on the door with a concealed lock control switch,it can work after the owner leave out . if the master will closed concealed system in three minutes
7、, then system should stop work. but when there are thieves breaking to steal, and couldn't find this secluded alarm system to close it,the system will automatically alarm in three minutes.iithe way to realizated system2.1 design priniplessuch as figure 1 showes, using a microcontroller at89c2051
8、 as a cpu, it will realize intelligent alarm.the system is established by an defend switch k1, the door switch k2(often shut), microcontroller at89c2051, an 5 v super-mini relays (ssr), 7805 voltage regulations, an alarm.in addition can report to alarm, it will enter semaphore to keep long range to
9、link, and carry out long range supervision.2.2guard against theft the hardware of systemthe at89c2051 is a programmable eprom microchip of high performance by 53 bytes knot, compatible with industry standards mcs51 instruction group and pins, the atmel company produces of the at89c2051 is a kind of
10、microcontroller with strong function, it provided a vivid altitude useful solution to a lot of embedded control applications.it has the following racteristics:the 2 k bytes eprom, 128 bytes knot ram and 15 i/0 wire, two 16-bit timing/counters, five interruption structure with second class vector and
11、 a whole pair to of string line orifice, an accurate emulation compare machine, piece inside oscillator and clock circuit.at89c2051 designses include confidential bits and confidential bits 1 drives after weaving a distance, program memory can not be programming againunless do once erased, after con
12、fidential bits 5 being programmed, program cannot be read. this is an important guarantee for the safety of program and carried out procedure encryption.7805 integrated manostat provide a stable 5 v working voltage, and have a small volume,the higher accuracy , use convenience, multi-function protec
13、tion, output current extensible and other characteristics.there are overcurrent, overheating and regulator tube safety in the inside work zone protection, in order to prevent overburden but damage.solid - state relay, it uses solid-state device assembly and become a novel non-contact switch device,
14、have reliable work, fast switching speed, high working frequency, life long, low noise and other characteristics.the alarm adopted a language chip sr8803a the highest voltage of 5v, so making voltage appropriately reduced to string into d1, d2.the k2 directly connects in the door, door is open state
15、, so k2 is open position. otherwiseis it is the opposite. in addition added an indicator as a reminder, if the door is closed, as the k2 connects, then lamp anti bright, otherwise the lamp indication becomes bright.the meaning the door still has not closed completely.2.3guard against theft the softw
16、are of systemthe system adopts keiuversion 2 programming language.the keilc51 scompiler provides c language environment for the software development of 8051 microcontrollers, at the same time reserved to assembly code efficiency,fast and others characteristics.the c51 is completely hasing already be
17、en integrated into uvision2 integration development environments, this integrated development environment contains compiler, s the assembler, real-time operating system, the project manager, debugger.and also is an application development the software under windows, the interface amity, it is suitab
18、le to the developers use. the color syntax imaging and documents achiered function are optimized c source code . it can be editor in debugging, and can provide a kind of natural environment of adjusting to try and make you work more quickly and modify procedure.any control i/0 is the all the most ba
19、sic, and most of applied procedures also need i/0, the 89c2051 only have two i/0 port ,are respective is p1 port and p3 port, they all can use as single input or output port, when it used as the output ,so everyone pin external circuit can drive by high level 1 or low level 2 . indicator shows is us
20、ed when the 2051's i/0 ports as output , when the pins connecting led is the low level 0 , led conducting and lighting . due to 2051 has the situation that its output current is greater than the input current ,so let current flow into the chip. when programming by c language , it should set the
21、i/0 first .such as,in the system switches has just two states , open and closed . in a circuit set, when press the ortification switch , system is in working condition . the 2051's 19th pin is 0 level , otherwise it is the opposite . and when the door is to keep close state , the 2051's 17th
22、 pin is low level 0 , otherwise it is the opposite . in the system , because of the reason as switch is the mechanical structure , the contact's elasticity and voltage axon jump and other causes , when the contacts closed or disconnect ,it will appear voltage shaking . in order to eliminate shak
23、ing , to ensure switch recognition accuracy ,using the software method to remove shaking, in the program use the way of make time delayed 0.01 s . when start the program ,it will on initialization settings.such as,the subroutines to identify fortification switches and door switch as follows,taking a
24、dvantage of the program to cycle as the short delay.in the procedure the delay in brief time often complete with delay0 and wait0 sub- procedure. in brief clear, make use of 2 f for circularly and an empty description to complete the eyes j condition type in the variable of delay j<120 is by test
25、 to come out, revise by different according to the cpu clock frequency, because of adoptive cpu in this system is crystal to flap clock frequency to 12 mhzs.when press the fortification switch k1 dot, the door may be is open status or closed status, then link in the switch k2 of door be an in the pr
26、ocedure likely to be high level"1", be an also likely to be low level"0".but system is judged by k2 whethe give an alarm, so it should to made hypothesis these two kinds of circumstances, then carry on a verification, this is the first logic point in issue.second logic crux be, i
27、f robber is after coming in, if close the door, so does the system still rise an action l so have to consider m to is to close the door or open no matter like this in the procedure, as long as don't lock to establish to defend the switch k1 in the 3 mins after coming in, that is after k2 opened.
28、the system will automatically report to the police after 180 ses.so joined a numbering indicator open time in the procedure, solution the first problem needed to establish different open a time value, the beginning starts a status to 1, such as door pass status, then open time be placed to 0, after
29、can get into to circulate scaling.flag is a door switch to mark.lord procedure is as follows:iiiend languageafter repeated experiments , the system completely meets the design requirements.it has been used in residential property , now we completed the installation debugging , the system is accordin
30、g with the requirement of owner. the next is linking each scattered alarms as the next place machine to the control center of upper machine , to realize the remote monitorin , shooting the room corridor happened theft of past personnel is with convenient to solve. application of burglar alarm system
31、 in uptown based on at89c2051 (at89c2051在小区防盗报警系统中的应用)摘要:at89c2051单片机是功能强大的可编程微控器,文中提出了以at89c2051设计的住宅小区防盗报警系统的硬件原理和软件实现。关键词: 微控制器 防盗报警系统at89c2051一: 引言许多人都有个习惯,当长时间外出学习、工作时会将家里的防盗铁门反锁保险,防止窃贼入室,但是普通的防盗铁门即使上了保险,对于橇窃经验丰富的惯犯来说也是小菜一碟,用不了多少时间就能破门而入了。于是提出在门上加装了一个隐蔽的锁控开关,能够使门开后动开始工作,如果是主人就会在三分钟内关闭隐蔽系统,则系统停止
32、工作,如果有盗贼破门行窃,而没找到这个隐蔽的报警系统并关闭它就会在三分钟后自动报警。二:系统实现2.1设计原理如图1所示,用单片机at89c2051作为cpu.实现智能报警。系统由一个设防开关k1,房门开关k2(常闭),单片机at89c2051,5v超小型继电器(ssr),7805稳压器,报警器等组成。此外可以将报警器进行并联,将进信号直远程联接,实现远程监控。2.2 防盗系统的硬件at89c2051是一个有53字节可编程eprom 的高性能的微控制器(microchip),与工业标准的mcs51的指令组和引脚兼容,atmel公司生产的at89c2051是一种功能强大的微控制器,它对很多嵌入式
33、控制应用提供了一个高度灵活的有效的解决方案。它有以下特点:2k字eprom、128字节ram、15根i/0线、2个16位定时/计数器、5个向量二级的中断结构、一个全双向的串行口、一个精密的模拟比较器、片内振荡器和时钟电路。at89c2051设计有2个程序保密位,保密位1被编程之后,程序存储器不能再被编程除非做一次擦除,保密位5被编程之后,程序不能被读出。这就对程序的安全性作了一个重要保证,实现程序加密。7805集成稳压电源提供稳定的5v工作电压,且具有体积小、精度高、使用方便、多功能保护、输出电流可扩展等特点,内部有过流、过热和调整管安全工作区保护,以防过载而损坏。固态继电器(solid st
34、ate relay,简称ssr),采用固态元件组装而成的一种新颖的无触点开关器件,具有工作可靠、开关速度快、工作频率高、寿命长、噪声低等特点。报警器所采用的语言芯片sr8803a的最高电压为5v,所以要串入d1、d2后可使电源电压适当降低。k2直接接到门上,门是开状态,则k2为开状态。否则相反。另外加了一个指示灯作为提示,如果门关好,即k2接通,则灯不亮,否则灯指示发亮。表示门未关好。2.3 防盗系统的软件系统采用keiuversion 2语言编程。keilc51标准c编译器为8051微控制器的软件开发提供了c语言环境,同时保留了汇编代码高效,快速的特点。c51已被完全集成到uvision2的
35、集成开发环境中,这个集成开发环境包含:编译器,汇编器,实时操作系统,项目管理器,调试器。而且也是windows下的应用开发软件,界面友好,很适合广大开发人员使用。彩色语法显像和文件辩识都对c源代码进行优化。可以在编辑器内调试程序,它能提供一种自然的调试环境,使你更快速地检查和修改程序。任何控制i/0都是最基本的,而且大部分的应用程序也都需要到i/0,89c2051只有两个i/0口,分别为p1和p3口,这2个接口都可作为单独的输入或输出使用,即每一支i/0脚位都可以作为输入用,也可以做为输出使用。当作为输出时,则每一支脚的外部电路可以高电平1驱动或低电平0驱动。指示灯的显示是由2051的i/0口
36、作为输出时用,当接led发光二极管的引脚为低电平0时,led导通,发灯,由于2051存在输入电流大于输出电流,所以选择让电流流入芯片。在用c编程时,先对i/0设置,如,在本系统中开关只有两种状态,即开和关,在电路中设定,按下设防开关时,即系统在工作状态, 2051的19脚为0电平,否则相反。而门保持关状态,则2051的17脚为低电平0,否则相反。在系统中,由于开关是机械结构,触点的弹性及电压突跳等原因,在触点闭合或断开的瞬间会出现电压抖动。为了去抖动,保证开关识别的准确性,利用软件方法去抖动,在程序中采用时间延迟0.01s。在程序开始时要初始化设置,如,识别设防开关和门开关的子程序如下,利用程序循环来作为短暂延迟。程序中短暂时间的延迟,常以delay()、wait()子程序来完成,简单明了,利用二层for循环和一个空叙述来完成延迟的目j变量里的条件式j<120是试验出来的,要依据cpu的时钟频率不同而修正,由于本系统中采用的cpu晶振时钟频率为12mhz。当按下设防开关k1时,房门可能是开状
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 批发业务中的版权合作与版权输出考核试卷
- 其他调味品发酵制品制造考核试卷
- 智能照明在博物馆展品照明中的应用考核试卷
- 企业知识管理与知识分享考核试卷
- 年金保险投资渠道选择考核试卷
- 有机肥料在育苗中的应用考核试卷
- 冰球场冰面修整与保养考核试卷
- 智能无人机飞行控制系统考核试卷
- 小学生简单律动课件图片
- 广州铺位租赁合同范本
- 售后服务部部门组织架构
- 2024年江苏食品药品职业技术学院单招职业技能测试题库附答案
- 《实变函数》电子教案
- 旅游景观文化与赏析 知到智慧树网课答案
- 2024-贷款受托支付合同模板
- 柴油发电机基础知识教案
- 2024年苏州卫生职业技术学院单招职业适应性测试题库及答案解析
- 十万个为什么测试题及答案四年级
- 摄影基础基本知识讲座
- JTG 5110-2023 公路养护技术标准
- 2022年苏州工业职业技术学院单招数学模拟试题(附答案解析)
评论
0/150
提交评论