没有合适的资源?快使用搜索试试~ 我知道了~
基于单片机的考勤管理系统毕业设计-程序附录.doc
0 下载量 87 浏览量
2023-07-09
10:09:14
上传
评论
收藏 877KB DOC 举报
温馨提示
试读
84页
基于单片机的考勤管理系统毕业设计-程序附录.doc
资源推荐
资源详情
资源评论
摘 要
“考勤管理系统”是以RFID射频卡为信息识别载体的适用于企业单位或
学校的考勤管理系统。本系统可使用人单位摆脱繁琐、低效的签到模式。识别
工作不受环境的影响,操作方便快捷,具有防污、防水、加密存储等优点。结
合网络通信技术和单片机技术,实现了企业和单位的自动考勤和对考勤数据的
分析处理,节约了考勤时间,提高了考勤效率并提高了考勤的准确率,促进了
企业单位的考勤管理信息化水平的发展。
硬件部分我们采用瑞士微电生产的EM4095构成的射频读卡电路。该芯片具
有成本低,工作稳定,精确的采样点等优点。单片机采用51系列。通过CAN总
线方式与单片机互相通信。读卡电路输出信号有单片机识别出卡号利用单片机
与上位机之间进行232通信,实时上传数据,传送到PC机行处理。PC主要实现
功能进行检测卡号数据。
硬件部分我们采用瑞士微电生产的EM4095构成的射频读卡电路。该芯片具
有成本低,工作稳定,精确的采样点等优点。单片机采用51系列的AT89C52。
软件部分分为读卡识别、CAN通信、AT89C52单片机与上位机通信、报警,
PC方检测处理等。
本设计采用的单片机开发环境为:AVR 开发环境为 CodeVisionAVR C
Compiler,AT89C52 开发环境为 Keil uVision2。
关键词:考勤管理系统;射频技术;单片机;CAN 通信;232 通信;SPI
通信。
注:页眉,居中,楷体,五号。
阅后删除此文本框。
Abstract
"Attendance Management System" is based on RFID radio frequency
identification card information carrier for business or school attendance
management system. The system can use one unit to get rid of cumbersome,
inefficient attendance patterns. Identification work from the environment, easy to
operate, with a stain resistant, waterproof, encrypted storage and so on. Combined
with network communication technology and single-chip technology, the
enterprises and units of automatic attendance and attendance data analysis and
processing, saving time and attendance time, improve efficiency and increase
attendance attendance accuracy, promote the enterprise information management
units attendance level of development.
We use the hardware part of the Swiss micro-electric production constituted
EM4095 RF reader circuitry. The chip has a low cost, stable, accurate sampling
points, and so on. Microcontroller with 51 series. Way with the microcontroller
through the CAN bus communicate with each other. Reader circuit output signals
using microcontroller microcontroller identifies the card number between 232 and
PC communication, real-time upload data transfer to a PC for processing. The main
achievement of functional testing PC card data.
We use the hardware part of the Swiss micro-electric production constituted
EM4095 RF reader circuitry. The chip has a low cost, stable, accurate sampling
points, and so on. SCM Series 51 AT89C52.
Software part is divided into reader identification, CAN communication,
AT89C52 microcontroller and PC communication, alarm, PC side detection
processing.
This design uses a microcontroller development environment: AVR
development environment for CodeVisionAVR C Compiler, AT89C52
development environment for the Keil uVision2.
Keywords: Attendance Management System; RF Technology; SCM; CAN
Communication; 232; SPI Communication.
目 录
摘 要 ...........................................................I
Abstract ..........................................................II
第一章 绪 论 ....................................................1
第二章 硬件部分设计 ................................................3
2.1 EM4095 射频芯片部分 .........................................3
2.1.1 射频芯片选型依据 ......................................3
2.1.2 EM4095 射频芯片简介 ....................................4
2.1.3 EM4095 结构原理 .......................................5
2.1.4 磁卡与 EM4095 之间 ISO14443 协议 ........................7
2.1.5 EM4095 与单片机连接原理图 .............................14
2.2 AVR 单片机部分 .............................................16
2.2.1 单片机选型依据 .......................................13
2.2.2 ATMEL 单片机简介 ......................................14
2.2.3 AT89C52 原理图部分 ....................................14
2.3 DS1302 实时时钟部分 ........................................16
2.3.1 DS1302 芯片简介 .......................................17
2.3.2 SPI 简介 ..............................................17
2.3.3 DS1302 与 AVR 单片机连接原理图 .........................18
2.4 CAN 总线部分 ...............................................19
2.4.1 CAN 总线简介 ..........................................19
2.4.2 硬件部分的选型 .......................................19
2.4.3 原理图及其解析 .......................................20
2.4.4 蜂鸣器报警部分 .......................................21
2.5 MAX232 部分 ................................................21
2.5.1 MAX232 简介 ...........................................21
2.5.2 MAX232 与 51 单片机连接原理图 ..........................22
2.6 显示部分 ...................................................22
2.6.1 显示原理说明 .........................................23
2.6.2 数码管与单片机连接原理图 .............................23
2.7 AT89C52 部分 ...............................................23
2.7.1 AT89C52 单片机硬件结构 ................................23
2.7.2 AT89C52 单片机 CPU 电路图 ..............................24
第三章 软件部分 ...................................................26
3.1 AVR 单片机环境介绍 .........................................26
3.2 AT89C52 单片机开发环境介绍 .................................26
3.3 AVR 单片机读卡部分 .........................................26
3.3.1 程序实现简介 .........................................26
3.3.2 SPI 通信简介 ..........................................26
3.3.3 实现功能 .............................................27
3.3.4 EM4095 读卡程序流程图 .................................27
3.3.5 参考程序 .............................................27
3.4 AVR 发送数据部分 ...........................................28
3.4.1 程序实现简介 ..........................................28
3.4.2 实现功能 .............................................28
3.4.3 程序流程图(见下一页) ...............................28
3.4.4 程序代码 .............................................29
3.5 AVR 控制 DS1302 部分程序 ....................................34
3.5.1 程序实现简介 .........................................34
3.5.2 功能描述 .............................................34
3.5.3 程序流程图(见下一页) ...............................34
3.5.4 程序代码 .............................................35
3.6 AT89C52 接收 CAN 数据部分程序 ...............................40
3.6.1 程序实现简介 .........................................40
3.6.2 功能描述 .............................................40
3.6.3 程序代码 .............................................40
3.7 AT89C52 与 PC 机之间通信部分程序 ............................40
3.7.1 程序实现简介 .........................................40
3.7.2 功能描述 .............................................40
3.7.3 程序代码 .............................................41
第四章 结论 .......................................................43
剩余83页未读,继续阅读
资源评论
matlab大师
- 粉丝: 2359
- 资源: 9万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功