Proteus软件的单片机仿真(ATM)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
摘要
基于Proteus软件的单片机自动取款机(ATM)仿真系统设计,硬件电路需要单片机开发板和12864液晶显示器,能够实现自动取款的全部功能。通过在在计算机上用C语言编程来将生成文件下载到单片机控制其它外围器件工作。但是在EDA新技术的引入使得系统的开发成本降低而且灵活性增强,在Proteus软件中都可以找到上述硬件元件,通过电路图连接完全可以实现仿真功能。在Keil软件环境下通过C语言编程,编译调试后生成单片机下载的HEX(十六进制)文件,硬件电路图是在Proteus 软件中进行建模。通过Proteus和Keil结合建立的虚拟系统实现联合仿真,单片机实时控制12864LCD实现汉字的显示,扫描键盘从而达到用户与ATM的信息交换,使得ATM系统设计变为现实。
ATM系统,是一个有数据库组成的应用系统。用户的初始信息通过E2PROM存放,这样免去了掉电丢失数据的弊端。系统功能有用户在ATM上提取现金、查询账户余额、修改密码、账户冻结、密码保护、自动存款及转账功能。可以仿真实现最基本的银行服务。
关键词:ATM;51单片机;Proteus;Keil;12864LCD;E2PROM;虚拟仿真
Abstract
Automatic Teller Machine system is based on Proteus 51-microcontroller.Hardware circuit includes microcontroller developer board and 12864LCD display. All features of ATM can be well worked on it. Programming on PC then download created file to 51-microcontroller to control outer circuit. However, with the introduction of EDA, new technology, which lower the cost of system exploration and enhance flexibility. Programing with C language, compiling and debugging under the environment of Keil software,creating a HEX file which will be downloaded by microcontroller later. Hardware schematic diagrams are established with Proteus software. According to the combination of Proteus and Keil , making a virtual system , successfully achieve united simulation. Microcontroller controls 12864LCD to display Chinese words, scans keyboard to exchange information between customer and ATM, which makes virtual ATM system becoming reality.
ATM system includes databases, which are used for the storage of customers’ initial information, leading to emerge from the disadvantage of data lost when power cuts. The functions of ATM are as follows: withdraw cash, search client and remaining modify password, client freezed, password protection, automatic deposit and transfer client. This system simulates to realize the bank’s fundamental services.
Keywords:ATM;51microcontroller;Proteus;Keil;12864LCD;E2PROM;virtual simulation
目录
引言 (1)
第一章 Proteus软件的单片机ATM系统 (3)
1.1 Proteus软件的ATM概述 (3)
1.2 Proteus软件的ATM安全性分析 (3)
1.3 Proteus软件的ATM稳定性分析 (3)
1.4 Proteus软件的ATM主要功能分析 (3)
第二章 Proteus软件仿真的硬件系统设计 (5)
2.1 MCS-51系列单片机 (5)
2.1.1 AT89C51单片机 (5)
2.1.2 单片机应用系统硬件设计 (5)
2.2 串行传输 (5)
2.3 I2C串行总线 (6)
2.4 E2PROM (8)
2.5 12864液晶显示模块 (10)
2.5.1引脚功能 (10)
2.5.2 12864DDRAM存储器 (10)
2.5.3 显示控制控制方法 (11)
2.6 蜂鸣器 (12)
2.7 键盘 (12)
2.7.1 键的识别 (12)
2.7.2 键盘扫描流程图 (13)
2.8 ATM硬件原理图 (13)
第三章 Proteus单片机仿真软件系统设计 (15)
3.1 C-51简介 (15)
3.1.1 C-51具有特点 (15)
3.1.2 C-51具有优点 (15)
3.1.3 C-51独特地方 (15)
3.2 ATM自动取款机系统流程 (16)
3.3 程序介绍 (16)