Read-write system design of RF card based on MF-RC500 and MSP430f1232 (3)
source: China card network Author: Liu Jiancheng, Zou Yongzhuo, Zeng Guangxin, Feng Wei time: 2012-04-18
-
2.2 RF card processing program
system according to the working frequency of 13.56MHz in half duplex mode in the reader and IC bidirectional data transfer card. As shown in Figure 4, the reader will be reset after to signal encoding and transmission load to the frequency of the carrier signal is sent by the antenna outside 13.56MHz, enter the reader work area IC card will receive the pulse signal. Get the power supply voltage, a reset signal, the clock signal RF interface module card chip of the signal; at the same time the circuit card chip of this signal demodulation, decoding, decryption, and then order request, password, powers of judgment. If the read command, control logic circuit is read from the memory of relevant information, the encryption, encoding, modulation after the card sent to the antenna reader, reader demodulation, the received signal is sent to the decoder, decrypting computer processing; if the write command, the control logic caused by internal charge pump voltage upgrade, erase EEPROM provide the necessary high voltage, so as to overwrite the contents of the EEPROM; if the corresponding password and permissions not, return error messages.
completed at system initialization was detected after the defined type of card can be dealt with by the following function:
above is RF card processing part of the program, combined with the memory processing, display module drive, RS485 serial processing procedures can achieve complete RF card reader system function.
3 ending
MF-RC500 in this paper based on the design of the RF card reader system, realized the RF card reader function, hardware, analyzes the MSP430F1232
Design and MF-RC500 interface circuit and software radio frequency antenna, introduces the radio frequency card process, the system can be widely used in intelligent entrance guard, prepayment meter in engineering application.
innovation of this article: system controller with MSP430F1232
, with ultra low power consumption characteristics, can correctly identify, read and write Mifare Pro, Mifare One, Mifare Light and other types of RF card, and has good practical effect.