基于单片机的考勤管理系统毕业设计程序附录

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

摘要“考勤管理系统”是以RFID射频卡为信息识别载体的适用于企业单位或学校的考勤管理系统。本系统可使用人单位摆脱繁琐、低效的签到模式。识别工作不受环境的影响,操作方便快捷,具有防污、防水、加密存储等优点。结合网络通信技术和单片机技术,实现了企业和单位的自动考勤和对考勤数据的分析处理,节约了考勤时间,提高了考勤效率并提高了考勤的准确率,促进了企业单位的考勤管理信息化水平的发展。硬件部分我们采用瑞士微电生产的EM4095构成的射频读卡电路。该芯片具有成本低,工作稳定,精确的采样点等优点。单片机采用51系列。通过CAN总线方式与单片机互相通信。读卡电路输出信号有单片机识别出卡号利用单片机与上位机之间进行232通信,实时上传数据,传送到PC机行处理。PC主要实现功能进行检测卡号数据。硬件部分我们采用瑞士微电生产的EM4095构成的射频读卡电路。该芯片具有成本低,工作稳定,精确的采样点等优点。单片机采用51系列的AT89C52。软件部分分为读卡识别、CAN通信、AT89C52单片机与上位机通信、报警,PC方检测处理等。本设计采用的单片机开发环境为:AVR开发环境为CodeVisionAVRCCompiler,AT89C52开发环境为KeiluVision2。关键词:考勤管理系统;射频技术;单片机;CAN通信;232通信;SPI通信。注:页眉,居中,楷体,五号。阅后删除此文本框。AbstractAttendanceManagementSystemisbasedonRFIDradiofrequencyidentificationcardinformationcarrierforbusinessorschoolattendancemanagementsystem.Thesystemcanuseoneunittogetridofcumbersome,inefficientattendancepatterns.Identificationworkfromtheenvironment,easytooperate,withastainresistant,waterproof,encryptedstorageandsoon.Combinedwithnetworkcommunicationtechnologyandsingle-chiptechnology,theenterprisesandunitsofautomaticattendanceandattendancedataanalysisandprocessing,savingtimeandattendancetime,improveefficiencyandincreaseattendanceattendanceaccuracy,promotetheenterpriseinformationmanagementunitsattendancelevelofdevelopment.WeusethehardwarepartoftheSwissmicro-electricproductionconstitutedEM4095RFreadercircuitry.Thechiphasalowcost,stable,accuratesamplingpoints,andsoon.Microcontrollerwith51series.WaywiththemicrocontrollerthroughtheCANbuscommunicatewitheachother.Readercircuitoutputsignalsusingmicrocontrollermicrocontrolleridentifiesthecardnumberbetween232andPCcommunication,real-timeuploaddatatransfertoaPCforprocessing.ThemainachievementoffunctionaltestingPCcarddata.WeusethehardwarepartoftheSwissmicro-electricproductionconstitutedEM4095RFreadercircuitry.Thechiphasalowcost,stable,accuratesamplingpoints,andsoon.SCMSeries51AT89C52.Softwarepartisdividedintoreaderidentification,CANcommunication,AT89C52microcontrollerandPCcommunication,alarm,PCsidedetectionprocessing.Thisdesignusesamicrocontrollerdevelopmentenvironment:AVRdevelopmentenvironmentforCodeVisionAVRCCompiler,AT89C52developmentenvironmentfortheKeiluVision2.Keywords:AttendanceManagementSystem;RFTechnology;SCM;CANCommunication;232;SPICommunication.目录摘要...........................................................1Abstract...........................................................2第一章绪论....................................................1第二章硬件部分设计................................................32.1EM4095射频芯片部分.........................................32.1.1射频芯片选型依据......................................32.1.2EM4095射频芯片简介...................................42.1.3EM4095结构原理......................................52.1.4磁卡与EM4095之间ISO14443协议........................72.1.5EM4095与单片机连接原理图............................142.2AVR单片机部分.............................................162.2.1单片机选型依据.......................................132.2.2ATMEL单片机简介.....................................142.2.3AT89C52原理图部分...................................142.3DS1302实时时钟部分........................................162.3.1DS1302芯片简介......................................172.3.2SPI简介.............................................172.3.3DS1302与AVR单片机连接原理图........................182.4CAN总线部分...............................................192.4.1CAN总线简介.........................................192.4.2硬件部分的选型.......................................192.4.3原理图及其解析.......................................192.4.4蜂鸣器报警部分.......................................212.5MAX232部分................................................212.5.1MAX232简介..........................................212.5.2MAX232与51单片机连接原理图.........................222.6显示部分..................................................222.6.1显示原理说明.........................................222.6.2数码管与单片机连接原理图.............................232.7AT89C52部分...............................................232.7.1AT89C52单片机硬件结构...............................232.7.2AT89C52单片机CPU电路图.............................24第三章软件部分...................................................263.1AVR单片机环境介绍.........................................263.2AT89C52单片机开发环境介绍................................263.3AVR单片机读卡部分.........................................263.3.1程序实现简介.........................................263.3.2SPI通信简介.........................................263.3.3实现功能.............................................263.3.4EM4095读卡程序流程图................................273.3.5参考程序.............................................273.4AVR发送数据部分...........................................273.4.1程序实现简介.........................................283.4.2实现功能.............................................283.4.3程序流程图(见下一页)...............................283.4.4程序代码.............................................293.5AVR控制DS1302部分程序....................................343.5.1程序实现简介.........................................343.5.2功能描述.............................................343.5.3程序流程图(见下一页)...............................343.5.4程序代码.......................

1 / 84
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功