下载后可任意编辑基于 C 语言 STC89C52 单片机电子密码锁的设计 摘要:本设计阐述通过 Proteus 软件成功仿真的电子密码锁的实现过程,选用 STC89C52 单片机为核心的系统来实现按键输入、开锁和密码识别
采纳具备 I2C 总线接口的 E2PROM 芯片来完成密码的存储,通过 1602A 液晶显示器提示程序运行状态和使用步骤,利用蜂鸣器模拟报警,发光二极管模拟锁的开关
该系统用 C 语言编写程序,与汇编语言相比具有更好的移植性和可读性,便于修改和增减功能
关键词:Proteus;密码锁;单片机;C 语言Design of Electronic Code Lock Using STC89C52 MCU Based on C Language Abstract: The paper introduces the implementation of the electronic code lock which was successfully simulated by Proteus
It uses STC89C52 single-chip microcomputer to achieve key input, the unlocking and identification of the code
It adopts I2C bus based E2PROM chip to complete the code's storage, using LCD 1602A to prompt the program's running state and working procedures, adopting buzzer to imitate the alarm and LED to imitate the switch
It is conv