摘 要
本文设计了一种基于AT89C52单片机的电梯自动控制系统。该系统通过三行按键矩阵开关电路实现外呼内选的呼叫控制,并模拟电梯的实际运行情况。每层楼层的到达信号由10个独立按键模拟传输至单片机,单片机则通过内部电路驱动数码管显示当前楼层数。当电梯到达选定楼层时,模拟开门延时以等待乘客进出并选层,随后执行关门延时以响应请求。若无新的请求,电梯将停在当前楼层等待。软件部分采用C语言编写,利用查询方式检测用户请求的按键信息,实现电梯的自动控制和状态显示。该设计不仅具有实际应用价值,还为电梯控制系统的研究和开发提供了有益的参考。
关键词:AT89C52单片机;电梯自动控制;按键矩阵开关;数码管显示;C语言编程;
Abstract
This paper designs an automatic control system based on AT89C52. The system realizes the call control through the three-line key matrix switch circuit, and simulates the actual operation of the elevator. The arrival signal of each floor is transmitted by 10 independent keys to the MCU, and the MCU drives the current number of floors through the internal circuit. When the elevator reaches the selected floor, simulate the opening delay to wait for passengers to enter and exit and select the floor, and then the closing delay is executed to respond to the request. If there is no new request, the elevator will stop on the current floor waiting. The software part is written in C language, using the query method to detect the key information requested by the user, and realizing the automatic control and status display of the elevator. This design not only has the practical application value, but also provides a useful reference for the research and development of the elevator control system.
Key words: AT89C52 microcontroller; elevator automatic control; key matrix switch; digital tube display; C language programming;
目 录
摘 要
Abstract
1 绪论
1.1 选题背景及意义
1.1.1 选题背景
1.1.2 选题意义
1.2 国内外研究现状及发展趋势
1.2.1 国内研究现状
1.2.2 国外研究现状
1.2.3 发展趋势
1.3研究主要内容
2 整体方案设计
3 系统硬件电路设计
3.1 单片机最小系统电路
3.2 开关控制电路
3.3 显示电路
3.3.1 led楼层触发显示灯电路
3.3.2 当前楼层显示电路
3.4 8155串行口扩展电路
3.5 总设计图
4 系统程序设计
4.1 主程序流程图
4.2 定时器子程序流程图
4.3 扫描子程序流程图
4.4 显示子程序流程图
4.5 延时流程图
5 系统调试
5.1 Proteus软件仿真调试
5.2 硬件调试
6. 总结与展望
6.1 总结
6.2 展望
参考文献
致 谢
附录:程序清单