1、 微 机 原 理微 机 原 理课 程课 程 设 计 说 明 书设 计 说 明 书 设计题目:设计题目: 学生姓名:学生姓名: 专业班级专业班级: 学学 院:院: 指导教师:指导教师: 20122012 年年 1111 月月 2525 日日 II 摘 要 密码锁在输入密码正确的条件下输出开锁电平,控制电控锁开启,同显示 00 字样。当输入密码错误时,发出错误警告声音,同时显示 FF 字样。当六次误 码输入的条件下,产生报警电平报警。还可以实现对密码的修改,修改成功后, 蜂鸣器发出确认音。密码锁的基本功能是可输入密码、修改码以及判断密码是否 正确,故需要输入设备及其与 CPU 的接口电路及相关存储
2、设备;判断密码则涉及 逻辑分析,即要实现逻辑功能;另外相关的报警提示功能则需要相关的输出设备 及其接口电路。 我采用 8255A 的 B 口作为显示器的输出,c 口为选管和接蜂鸣器,开锁及报 警电平。对于 6 次密码错误输入,可以直接用软件控制,线路简单,程序也很易 实现。 用蜂鸣器发声次数来区分确认和警告声音, 一声表示确认, 三声表示警告。 键盘上的按键用 SW-PB 共 12 个,0-9 为数字键,连接到 8255A 的 A 口对应二进 制数,还有确认键和密码修改键,按下表示 A 口接收到低电平信号。 关键词;密码锁, 蜂鸣器, 微机原理,接口技术, 微机原理课程设计说明书 III Ab
3、stract 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
4、 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 C
5、PU 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. F
6、or 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 p