文档介绍:摘要
随着也不断地在提高。家里的贵重物品越来越多,从而具有强大功能的保险柜便显得愈来愈重要。红外遥控电子密码锁也是保险柜的一大功臣,通过改良其还拥有强烈震动检测防盗功能,并拥有防控模块。
本系统软件由单片机最小系统、键盘扫描、LCD1602A显示、时间日期显示、掉电存储、电机控制、声光报警、防控系统、强烈震动检测系统、红外遥控等模块组成。系统能完成输入密码开锁、密码修改、遥控主机功能。除了上述基本功能外系统还有液晶显示、时间日期显示、防控设置与撤销、连续三次输入错误系统锁定、掉电密码保存、时间修改、声光提示等功能。其中时间日期显示是通过定时器Timer0溢出中断实现的,而遥控接收解码模块则是通过外部中断0实现的。本系统软件特点是在使用单片机基本知识外,还同时使用了定时器Timer0溢出中断、外部中断0以及8255A扩展端口控制、以及红外发收编码解码以及强烈震动异常检测处理等相关知识,系统内容相当的丰富,极大的巩固了我们所学的专业知识。
关键词:单片机,掉电保存,液晶显示、红外遥控、防控
The Software Design of Electronic Cipher Lock for Safe
Abstract
As the country has e increasingly prosperous, people’s standard of living also is increasing ceaselessly. Home valuables is increasing, which has powerful function of safe appears more and more important. Infrared remote control of electronic locks are the big hero of safes, and through the improvement it also has the strong vibration detection anti-theft function, and has a control module.
The system’s software is consist of SCM minimum system, keyboard scanning, LCD 1602A display, time and date display, power-down memory, motor control, alarm control system, strong vibration detection system,infrared remote contol module. The system plete the input password of lock, password modification, remote host function. In addition to the above basic function, system is also with the function ,like liquid crystal display, time and date display, control settings and revocation , three consecutive input errors system locking, power-off password save, time changing, acousto-optic tips and other functions. The time and date display is through Timer 0 timer overflow interrupt to achieve, and the remote control receiving and decoding module is realized through the external interrupt 0. The system software is characterized in the use of single-chip puter basic knowledge, also used the Timer 0 overflow interrupt, external interrupt 0 and 8255A expansion port control, as well as infrared sending and receiving the encoding and decoding ,strong vibratio