摘要为了解决目前城市供热系统主控中心单一控制方式造成的工作量大、控制不稳定、上传数据延迟等问题,提出了一种以楼栋集中器为控制对象的智能控制终端。针对该智能控制终端的IC卡读写模块,本文设计了一种以ATMEGA48单片机作为控制中心,以RFID技术为核心,以MF-RC522芯片为通信核心的非接触式IC卡读写器,阐述了该读写器系统的构成、工作方式以及对应的软件硬件设计。25381
本文完成了包括单片机控制电路、SPI总线、基于RC522的无线射频识别电路、读写天线及接口转换电路的设计与开发。并且在对供热系统主控中心IC卡工作流程理解的基础上,完成了包括往IC卡中存储用户的基本数据、购热信息,通过读写器对用户的IC卡进行充值、扣费、修改,并可对IC卡存储的信息进行刷卡显示等功能的读写器嵌入式系统的编写。最后完成了单片机与上位机的USART通信和系统的集成调试,然后将IC卡中的数据写入对应的数据库。
关键词:IC卡,RC522,ATMEGA48,供热系统主控中心,读写器,嵌入式系统
毕业设计说明书(毕业论文)外文摘要
Title Development of IC card reader remote meter reading system
Abstract
In order to solve these problems such as big workload, unstable control, delayed upload data and so on caused by the present city heating system mater control center's using only one single control mode, here comes a storied building concentrator as control object of intelligent control terminal. For this terminal, this paper designed one kind of IC card read/write device. The device include one ATMEGA48 MCU as control center, the RFID technology as the core, one MF - RC522 chip for the communications of contactless IC card read and write. This paper expounds the composition of the read/write device system hardware design, work style, and the corresponding software.
In this paper, the completed hardware included Single chip microcomputer control circuit, the SPI bus, radio frequency identification (RFID) based on RC522, read-write antenna and interface conversion circuit. After study the workflow of the terminal. The completed preparation of the software system include recharge, deduction, modify the user's IC card, and display user's information after credit card. And at last, the paper finished the USART communication between MCU and PC. and then Write data from the IC card to corresponding database.
Keywords: IC card, RC522, ATMEGA48, heating system master center, reader, embedded system
目录
1 绪论 1
1.1 课题的研究背景 1
1.2 国内外研究现状与趋势 2
1.3 论文的研究内容及意义 4
2 IC卡读写器硬件系统设计 5
2.1 嵌入式系统的基本概念 5
2.2 AVR单片机模块的选型与设计 6
2.3 射频通讯模块电路设计 7
2.3.1 射频通讯模块芯片的选型与设计 8
2.3.2 射频通讯模块天线的设计 9
2.3.3 射频通讯模块的内部电路连接 10
2.4 串行通信模块 10
2.5实际硬件: 11
3 IC卡读写器软件系统设计 12
3.1 系统需求分析 12
3.2 功能需求分析 12
3.3 软件详细设计与实现 13
3.3.1 系统的初始化 13