内容发布更新时间 : 2024/11/2 17:31:58星期一 下面是文章的全部内容请认真阅读。
攀枝花学院本科毕业设计(论文) 摘 要
摘 要
自动售货机是自动化技术在人们生活中的重要应用。随着人们生活质量的不断提高,对自动售货机的性能要求越来越高。自动售货机的主要功能是通过人机对话的形式完成自动售货这一过程。
本文设计了一款以INTEL公司出品的80C51单片机为核心的自动售货机,并且着重详细地介绍了自动售货机的整体系统设计方案、硬件选择基础、软件使用方法及技巧。以80C51作为CPU处理单元连接各个功能模块;以4*4矩阵键盘作为输入控制模块对货物进行种类和数量的选择以及模拟货币的投入功能;以LCD1602液晶作为显示模块来显示当前的购物状态以及货币状态;以LED的显示来表示当前选择货物以及出货的状态。通过Protues7.5单片机电路原理图进行连接布线连接各个模块;再用Keil uVision3专业编译软件完成源程序编译和调试,最终进行自动售货机的实验电路仿真来模拟自动售货。结合工作原理、系统设计、软件编译和实验仿真来实现自动售货这一相关功能。
关键词 自动售货机,80C51单片机,编译仿真
I
攀枝花学院本科毕业设计(论文) ABSTRACT
ABSTRACT
The automatically vending machine is provided the the the important applications of the automation technology in people's lives. With the continuous improvement of people's quality of life, the increasingly high performance requirements of vending machines. Vending machines The main function of the form of man-machine dialogue vending this process.
The designed a produced by Intel 80C51 microcontroller as the core vending machines, and emphasizes the detailed description of the overall system design of the vending machines, hardware options, software and the use of methods and techniques. As 80C51 CPU processing unit connected to the various functional modules; 4 * 4 matrix keyboard as an input control module of goods, the choice of the type and number of input and analog currency; LCD1602 LCD as the display module to display the current state of shopping as well as currency state; LED display indicates the current selection of goods and shipment status. By the Protues7.5 microcontroller circuit diagram connecting wiring each module; complete source code to compile and debug then the Keil uVision3 professional compiler software, eventually vending machine experiment circuit simulation to simulate the automatic vending. Combined with the working principle, system design, software compiler and experimental simulation to achieve automatic vending related functions.
Keywords automatic vending machine, 80C51 MCU, compiled simulation
II
攀枝花学院本科毕业设计(论文) 目 录
目 录
摘 要 ................................................................................................................................. I ABSTRACT .......................................................................................................................... II
1 绪论 ............................................................................................................................... 1
1.1 课题的研究背景及意义 ............................................................................................. 1 1.2 国内外现状及发展趋势 ............................................................................................. 1 1.3 本课题研究的主要内容 ............................................................................................. 2
2 自动售货机的系统结构 ............................................................................................... 4
2.1 自动售货机的系统概述 ............................................................................................. 4 2.1.1 自动售货机的系统结构 ....................................................................................... 4 2.1.2 自动售货机的控制子系统概述 ............................................................................ 4 2.2 自动售货机的功能简介 ............................................................................................. 5 2.2.1 自动售货机的功能概述 ....................................................................................... 5 2.2.2 自动售货机的设计思路 ....................................................................................... 6
3 自动售货机的硬件设计 ............................................................................................... 8
3.1 80C51的简介 ............................................................................................................ 8 3.1.1 80C51的基本概述............................................................................................... 8 3.1.2 80C51的引脚功能介绍........................................................................................ 8 3.2 LCD1602字符型液晶简介 ......................................................................................... 10 3.2.1 LCD1602的概述 ................................................................................................ 10 3.2.2 LCD1602的硬件结构 ......................................................................................... 10 3.2.3 LCD1602的指令说明 ......................................................................................... 11 3.2.4 LCD1602的基本时序操作 .................................................................................. 13 3.3 4*4矩阵键盘简介 ................................................................................................... 15 3.3.1 4*4矩阵键盘的概述 ......................................................................................... 15 3.3.2 4×4矩阵键盘的硬件结构 ................................................................................ 15 3.4 货币识别系统.......................................................................................................... 16 3.4.1 对硬币的识别 ................................................................................................... 16 3.4.2 对纸币的识别 ................................................................................................... 17 3.5 货物选择系统.......................................................................................................... 18 3.6 出货及找零系统 ...................................................................................................... 19
III