多功能密码锁课程设计

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

学号:

HEBEI UNITED UNIVERSITY

微机原理课程设计说明书

设计题目:

学生姓名:

专业班级:

学院:

指导教师:

2012年11月25日

成绩评定表

摘要

密码锁在输入密码正确的条件下输出开锁电平,控制电控锁开启,同显示00字样。当输入密码错误时,发出错误警告声音,同时显示FF字样。当六次误码输入的条件下,产生报警电平报警。还可以实现对密码的修改,修改成功后,蜂鸣器发出确认音。密码锁的基本功能是可输入密码、修改码以及判断密码是否正确,故需要输入设备及其与CPU的接口电路及相关存储设备;判断密码则涉及逻辑分析,即要实现逻辑功能;另外相关的报警提示功能则需要相关的输出设备及其接口电路。

我采用8255A的B口作为显示器的输出,c口为选管和接蜂鸣器,开锁及报警电平。对于6次密码错误输入,可以直接用软件控制,线路简单,程序也很易实现。用蜂鸣器发声次数来区分确认和警告声音,一声表示确认,三声表示警告。键盘上的按键用SW-PB共12个,0-9为数字键,连接到8255A的A口对应二进制数,还有确认键和密码修改键,按下表示A口接收到低电平信号。

关键词;密码锁, 蜂鸣器, 微机原理,接口技术,

Abstract

Cipher lock when the input password is correct conditions the output level control electric lock lock, open, the samedisplay the words 00. When the input password mistake, sending the error warning sound, at the same time display FF. When the six error input conditions, generating alarm level alarm. Also can be achieved on the password modification, modification is successful, the buzzer sends confirmation tone. The cipher lock is the basic function of input password, modify the code and password to determine whether the correct, so it needs to input device and an interface circuit of CPU and related storage device; Determine whether the password to logical analysis, namely, to realize the logic function; the related alarm function needs to output equipment and its interface circuit.

I use the 8255A B as the display output, C for selected tube and a buzzer, lock and alarm level. For the 6 time password input errors, starting with a 8253 counter, and then found can be directly controlled by the software, simple circuit, the program is very easy to realize. With buzzer sound frequency to distinguish and confirm the warning sound, a sound that confirm, three sound warning. The keys on the keyboard to use SW-PB in all 12, for the number keys 0-9, connect to the 8255A A port corresponding binary number, and a confirmation key and password modify key, press the A port receives a low level signal.

Keywords:Password lock, buzzer, microcomputer principle, interface technology,

目录

摘要 (Ⅲ)

Abstract (Ⅳ)

第1章绪论 (7)

1.1密码锁的发展现状 (7)

1.2密码锁的发展前景 (7)

第2章密码锁的工作原理及结构设计方案 (8)

2.1目的 (8)

2.2内容 (8)

2.3设计任务‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥8

2.4方案选择及原理‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥8 第3章硬件系统设计 (9)

3.1所用到的相关芯片元件及其介绍‥‥‥‥‥‥‥‥‥‥‥‥‥‥9

3.1.1所用器件‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥9

3.1.2主要元件及芯片介绍‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥9

3.2硬件电路图 ............................. 错误!未定义书签。

3.2.1.8086和存储器连接‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥11

3.2.2 CPU与8255A连接‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥12

3.2.3 8255A的A口与键盘连接‥‥‥‥‥‥‥‥‥‥‥‥‥‥12

3.2.4 8255A的B、C口‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥13

3.3完整电路图‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥14 第4章软件设计 (15)

4.1软件设计思路‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥15

4.2流程图 (16)

4.2.1主流程图 (16)

4.2.2子流程图‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥17 第5章程序编码 (17)

第六章总结 (20)

6.1设计中的难点‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥20

相关文档
最新文档