1、 课课 程程 设设 计计 课 程 名 称 单片机原理及应用 B 课 题 名 称 IC 卡读写器设计 院(系、部、中心) 通信工程学院 专 业 通信工程 班 级 姓 名 学 号 起 止 日 期 设 计 地 点 微机原理与单片机实验室 指 导 老 师 单片机原理及应用 B 摘摘 要要 IC 卡在现代生活中应用非常广泛,IC 卡读写器的设计方法有多种,其中,利 用单片机外接芯片实现的 IC 卡读写器具有编程灵活, 便于 IC 卡读写器功能的扩 充,运算存储方便等优点。 本文主要介绍用单片机外接 24C16EEPROM 的方法, 利用键盘对 24C16 进行模 拟充值的方法。本设计由单片机 P89V5
2、1RD2 芯片、24C16EEPROM 和 LCD 液晶显示 为核心,辅以必要的电路,构成了一个 IC 卡读写器,使用起来很方便 此 IC 卡读写器严格按照要求设计,最终达到预期的效果,并且添加了进行 挂失,修改密码,低值报警,透支报警等相关功能。 关键词 IC 卡读写器/单片机 /C51 编程 The Principle and Application of Single Chip Microcomputer ABSTRACT IC card is widely used in modern life。There are a variety of IC card reader design
3、methods, which use an external chip microcontroller IC card reader with programming flexibility, ease of expansion IC card reader function, operation and easy storage。 This paper describes a method 24C16EEPROM external MCU, using the keyboard to simulate 24C16 recharge methods. Designed by the MCU c
4、hip P89V51RD2, 24C16EEPROM and LCD display as the core, supplemented by the necessary circuitry, constitute an IC card reader, easy to use。 This IC card reader in strict accordance with the requirements of the design, and ultimately achieve the desired effect, and add report the loss, change passwor
5、ds, low alarm, alarm and other related functions overdraft. Keywords IC card reader /P89V51RD2 single-chip computer /C51 programming 目录 一、课程设计目的 1 二、基本思路. 1 三、实验方案. 1 四、实验开发环境及元器件 1 1 、开发工具及开发环境简介 1 1.1 单片机 . 1 1.2 Proteus . 1 1.3 KEIL. 2 2、P89V51RD2 2 3、24C16EEPROM. 2 4.、LCD1602 . 3 (1)简介. 3 (2)管脚功能 3 (3)16 进制 ASCII 码表 3 (4)特性. 4 五、系统分析与设计 4 1、系统框图 4 2、软件设计 4 (1)软件程序内容. 4 (2)软件设计流程图 . 4 (3)程设计步骤 8 (4)电路连线图 9 六、具体程序设计及步骤 . 9 1、头文件: 9 2、各个。C 文件:. 11 3、程序调试及结果: 26 调试步骤 26 实验现象 27 七、课程设计体会 27 八、参考文献 28 一一、课程设计目的课程设计目的 本课程设计是在单片机原理及应用 B课程主要内容学习之后,通过一个