RC522 Datasheet
RC522 Datasheet
RC522 Datasheet
1. Introduction
This document describes the functionality and electrical specifications of the contactless
reader/writer MFRC522.
Remark: The MFRC522 supports all variants of the MIFARE Mini, MIFARE 1K,
MIFARE 4K, MIFARE Ultralight, MIFARE DESFire EV1 and MIFARE Plus RF
identification protocols. To aid readability throughout this data sheet, the MIFARE Mini,
MIFARE 1K, MIFARE 4K, MIFARE Ultralight, MIFARE DESFire EV1 and MIFARE Plus
products and protocols have the generic name MIFARE.
2. General description
The MFRC522 is a highly integrated reader/writer IC for contactless communication
at 13.56 MHz. The MFRC522 reader supports ISO/IEC 14443 A/MIFARE mode.
The MFRC522 supports MF1xxS20, MF1xxS70 and MF1xxS50 products. The MFRC522
supports contactless communication and uses MIFARE higher transfer speeds up to
848 kBd in both directions.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
[1] Supply voltages below 3 V reduce the performance in, for example, the achievable operating distance.
[2] VDDA, VDDD and VDD(TVDD) must always be the same voltage.
[3] VDD(PVDD) must always be the same or lower voltage than VDDD.
[4] Ipd is the total current for all supplies.
[5] IDD(PVDD) depends on the overall load at the digital pins.
[6] IDD(TVDD) depends on VDD(TVDD) and the external circuit connected to pins TX1 and TX2.
[7] During typical circuit operation, the overall current is below 100 mA.
[8] Typical value using a complementary driver configuration and an antenna matched to 40 between pins TX1 and TX2 at 13.56 MHz.
5. Ordering information
Table 2. Ordering information
Type number Package
Name Description Version
MFRC52201HN1/TRAYB[1] HVQFN32 plastic thermal enhanced very thin quad flat package; no leads; SOT617-1
32 terminal; body 5 5 0.85 mm
MFRC52201HN1/TRAYBM[2] HVQFN32 plastic thermal enhanced very thin quad flat package; no leads; SOT617-1
32 terminal; body 5 5 0.85 mm
MFRC52202HN1/TRAYB[1] HVQFN32 plastic thermal enhanced very thin quad flat package; no leads; SOT617-1
32 terminal; body 5 5 0.85 mm
MFRC52202HN1/TRAYBM[2] HVQFN32 plastic thermal enhanced very thin quad flat package; no leads; SOT617-1
32 terminal; body 5 5 0.85 mm
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
6. Block diagram
The analog interface handles the modulation and demodulation of the analog signals.
The contactless UART manages the protocol requirements for the communication
protocols in cooperation with the host. The FIFO buffer ensures fast and convenient data
transfer to and from the host and the contactless UART and vice versa.
REGISTER BANK
ANALOG CONTACTLESS
ANTENNA FIFO
INTERFACE UART SERIAL UART
BUFFER
SPI HOST
I2C-BUS
001aaj627
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
D6/ADR_0/
D2/ADR_4 D4/ADR_2 MOSI/MX
D5/ADR_1/ D7/SCL/
SDA/NSS/RX EA I2C D1/ADR_5 D3/ADR_3 SCK/DTRQ MISO/TX PVDD PVSS
24 32 1 25 26 27 28 29 30 31 2 5
3
DVDD
VOLTAGE 4
MONITOR DVSS
SPI, UART, I2C-BUS INTERFACE CONTROL AND
15
POWER ON AVDD
DETECT 18
AVSS
FIFO CONTROL
STATE MACHINE
64-BYTE FIFO RESET
COMMAND REGISTER
BUFFER CONTROL
CRC16
MIFARE CLASSIC UNIT
GENERATION AND CHECK
BIT COUNTER
7
MFIN
8
SERIAL DATA SWITCH MFOUT
9
SVDD
21
CLOCK OSCIN
AMPLITUDE GENERATION,
OSCILLATOR
RATING FILTERING AND 22
ANALOG TO DIGITAL
DISTRIBUTION OSCOUT
CONVERTER
REFERENCE
VOLTAGE
Q-CLOCK TEMPERATURE
GENERATION SENSOR
ANALOG TEST
MULTIPLEXOR I-CHANNEL Q-CHANNEL
AND AMPLIFIER AMPLIFIER
TRANSMITTER CONTROL
DIGITAL TO
I-CHANNEL Q-CHANNEL
ANALOG
DEMODULATOR DEMODULATOR
CONVERTER
16 19 20 17 10, 14 11 13 12
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
7. Pinning information
29 D5/ADR_1/SCK/DTRQ
30 D6/ADR_0/MOSI/MX
31 D7/SCL/MISO/TX
28 D4/ADR_2
27 D3/ADR_3
26 D2/ADR_4
25 D1/ADR_5
32 EA
I2C 1 24 SDA/NSS/RX
PVDD 2 23 IRQ
DVDD 3 22 OSCOUT
DVSS 4 21 OSCIN
MFRC522
PVSS 5 20 AUX2
NRSTPD 6 19 AUX1
MFIN 7 18 AVSS
MFOUT 8 17 RX
TVSS 10
TX1 11
TVDD 12
TX2 13
TVSS 14
AVDD 15
VMID 16
9
SVDD
001aaj819
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
[1] Pin types: I = Input, O = Output, I/O = Input/Output, P = Power and G = Ground.
[2] The pin functionality of these pins is explained in Section 8.1 “Digital interfaces”.
[3] Connection of heatsink pad on package bottom side is not necessary. Optional connection to pin DVSS is possible.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
8. Functional description
The MFRC522 transmission module supports the Read/Write mode for
ISO/IEC 14443 A/MIFARE using various transfer speeds and modulation protocols.
BATTERY
MFRC522 ISO/IEC 14443 A CARD
MICROCONTROLLER
contactless card
reader/writer 001aak583
(1)
ISO/IEC 14443 A
READER ISO/IEC 14443 A CARD
(2)
MFRC522
001aak584
(1) Reader to card 100 % ASK, Miller encoded, transfer speed 106 kBd to 848 kBd.
(2) Card to reader subcarrier load modulation, Manchester encoded or BPSK, transfer speed 106 kBd
to 848 kBd.
Fig 5. ISO/IEC 14443 A/MIFARE Read/Write mode communication diagram
The MFRC522’s contactless UART and dedicated external host must manage the
complete ISO/IEC 14443 A/MIFARE protocol. Figure 6 shows the data coding and
framing according to ISO/IEC 14443 A/MIFARE.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
ISO/IEC 14443 A framing at 212 kBd, 424 kBd and 848 kBd even
start parity
The internal CRC coprocessor calculates the CRC value based on ISO/IEC 14443 A
part 3 and handles parity generation internally according to the transfer speed. Automatic
parity generation can be switched off using the MfRxReg register’s ParityDisable bit.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
An interface compatible with SPI enables high-speed serial communication between the
MFRC522 and a microcontroller. The implemented interface is in accordance with the SPI
standard.
MFRC522
SCK
SCK
MOSI
MOSI
MISO
MISO
NSS
NSS
001aak586
The MFRC522 acts as a slave during SPI communication. The SPI clock signal SCK must
be generated by the master. Data communication from the master to the slave uses the
MOSI line. The MISO line is used to send data from the MFRC522 to the master.
Data bytes on both MOSI and MISO lines are sent with the MSB first. Data on both MOSI
and MISO lines must be stable on the rising edge of the clock and can be changed on the
falling edge. Data is provided by the MFRC522 on the falling clock edge and is stable
during the rising clock edge.
The first byte sent defines both the mode and the address.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
The first send byte defines both the mode and the address byte.
The MSB of the first byte defines the mode used. To read data from the MFRC522 the
MSB is set to logic 1. To write data to the MFRC522 the MSB must be set to logic 0. Bits 6
to 1 define the address and the LSB is set to logic 0.
MFRC522
RX
RX
TX
TX
DTRQ
DTRQ
MX
MX
001aak587
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
The default transfer speed is 9.6 kBd. To change the transfer speed, the host controller
must write a value for the new transfer speed to the SerialSpeedReg register. Bits
BR_T0[2:0] and BR_T1[4:0] define the factors for setting the transfer speed in the
SerialSpeedReg register.
The BR_T0[2:0] and BR_T1[4:0] settings are described in Table 9. Examples of different
transfer speeds and the relevant register settings are given in Table 10.
[1] The resulting transfer speed error is less than 1.5 % for all described transfer speeds.
The selectable transfer speeds shown in Table 10 are calculated according to the
following equations:
If BR_T0[2:0] = 0:
6
27.12 10
transfer speed = -------------------------------
- (1)
BR_T0 + 1
If BR_T0[2:0] > 0:
27.12 10 6
transfer speed = ----------------------------------- (2)
----------------------------------
BR_T1 + 33
-
2 BR_T0 – 1
Remark: The LSB for data and address bytes must be sent first. No parity bit is used
during transmission.
Read data: To read data using the UART interface, the flow shown in Table 12 must be
used. The first byte sent defines both the mode and the address.
ADDRESS
RX
SA A0 A1 A2 A3 A4 A5 (1) R/W SO
DATA
TX
SA D0 D1 D2 D3 D4 D5 D6 D7 SO
MX
DTRQ
001aak588
(1) Reserved.
Fig 9. UART read data timing diagram
Write data: To write data to the MFRC522 using the UART interface, the structure shown
in Table 13 must be used.
The first byte sent defines both the mode and the address.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
NXP Semiconductors
ADDRESS DATA
RX
SA A0 A1 A2 A3 A4 A5 (1) R/W SO SA D0 D1 D2 D3 D4 D5 D6 D7 SO
ADDRESS
TX
SA A0 A1 A2 A3 A4 A5 (1) R/W SO
All information provided in this document is subject to legal disclaimers.
Rev. 3.7 — 26 March 2014
MX
DTRQ
112137
001aak589
(1) Reserved.
Fig 10. UART write data timing diagram
Remark: The data byte can be sent directly after the address byte on pin RX.
Address byte: The address byte has to meet the following format:
MFRC522
15 of 94
NXP Semiconductors MFRC522
Standard 3V MIFARE reader solution
SDA
SCL
MICROCONTROLLER
I2C
CONFIGURATION
EA
WIRING
ADR_[5:0]
001aak590
The MFRC522 can act either as a slave receiver or slave transmitter in Standard mode,
Fast mode and High-speed mode.
SDA is a bidirectional line connected to a positive supply voltage using a current source or
a pull-up resistor. Both SDA and SCL lines are set HIGH when data is not transmitted. The
MFRC522 has a 3-state output stage to perform the wired-AND function. Data on the
I2C-bus can be transferred at data rates of up to 100 kBd in Standard mode, up to
400 kBd in Fast mode or up to 3.4 Mbit/s in High-speed mode.
If the I2C-bus interface is selected, spike suppression is activated on lines SCL and SDA
as defined in the I2C-bus interface specification.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
SDA
SCL
• A START condition is defined with a HIGH-to-LOW transition on the SDA line while
SCL is HIGH.
• A STOP condition is defined with a LOW-to-HIGH transition on the SDA line while
SCL is HIGH.
The I2C-bus master always generates the START and STOP conditions. The bus is busy
after the START condition. The bus is free again a certain time after the STOP condition.
The bus stays busy if a repeated START (Sr) is generated instead of a STOP condition.
The START (S) and repeated START (Sr) conditions are functionally identical. Therefore,
S is used as a generic term to represent both the START (S) and repeated START (Sr)
conditions.
SDA SDA
SCL SCL
S P
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
8.1.4.4 Acknowledge
An acknowledge must be sent at the end of one data byte. The acknowledge-related clock
pulse is generated by the master. The transmitter of data, either master or slave, releases
the SDA line (HIGH) during the acknowledge clock pulse. The receiver pulls down the
SDA line during the acknowledge clock pulse so that it remains stable LOW during the
HIGH period of this clock pulse.
The master can then generate either a STOP (P) condition to stop the transfer or a
repeated START (Sr) condition to start a new transfer.
data output
by transmitter
not acknowledge
data output
by receiver
acknowledge
SCL from
1 2 8 9
master
S
clock pulse for
START
acknowledgement
condition
mbc602
P
SDA
byte complete,
interrupt within slave
SCL S Sr
or 1 2 7 8 9 1 2 3-8 9 or
Sr P
ACK ACK
START or STOP or
repeated START repeated START
condition condition
msc608
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Several address numbers are reserved. During device configuration, the designer must
ensure that collisions with these reserved addresses cannot occur. Check the I2C-bus
specification for a complete list of reserved addresses.
The I2C-bus address specification is dependent on the definition of pin EA. Immediately
after releasing pin NRSTPD or after a power-on reset, the device defines the I2C-bus
address according to pin EA.
If pin EA is set LOW, the upper 4 bits of the device bus address are reserved by
NXP Semiconductors and set to 0101b for all MFRC522 devices. The remaining 3 bits
(ADR_0, ADR_1, ADR_2) of the slave address can be freely configured by the customer
to prevent collisions with other I2C-bus devices.
If pin EA is set HIGH, ADR_0 to ADR_5 can be completely specified at the external pins
according to Table 5 on page 9. ADR_6 is always set to logic 0.
In both modes, the external address coding is latched immediately after releasing the
reset condition. Further changes at the used pins are not taken into consideration.
Depending on the external wiring, the I2C-bus address pins can be used for test signal
outputs.
MSB LSB
• The first byte of a frame indicates the device address according to the I2C-bus rules.
• The second byte indicates the register address followed by up to n-data bytes.
In one frame all data bytes are written to the same register address. This enables fast
FIFO buffer access. The Read/Write (R/W) bit is set to logic 0.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
• Firstly, a write access to the specific register address must be performed as indicated
in the frame that follows
• The first byte of a frame indicates the device address according to the I2C-bus rules
• The second byte indicates the register address. No data bytes are added
• The Read/Write bit is 0
After the write access, read access can start. The host sends the device address of the
MFRC522. In response, the MFRC522 sends the content of the read access register. In
one frame all data bytes can be read from the same register address. This enables fast
FIFO buffer access or register polling.
write cycle
I2C-BUS 0
S SLAVE ADDRESS A 0 0 JOINER REGISTER A [0:n] DATA A
(W) ADDRESS [A5:A0] [7:0]
[A7:A0]
read cycle
I2C-BUS 0
S SLAVE ADDRESS A 0 0 JOINER REGISTER A P
(W) ADDRESS [A5:A0]
[A7:A0]
[0:n]
I2C-BUS
1 DATA
S SLAVE ADDRESS A [0:n] A
(R) [7:0]
[A7:A0]
DATA A P
[7:0]
sent by master
001aak592
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
• The inputs of the device in HS mode incorporate spike suppression, a Schmitt trigger
on the SDA and SCL inputs and different timing constants when compared to
F/S mode
• The output buffers of the device in HS mode incorporate slope control of the falling
edges of the SDA and SCL signals with different fall times compared to F/S mode
When HS mode starts, the active master sends a repeated START condition (Sr) followed
by a 7-bit slave address with a R/W bit address and receives an acknowledge bit (A) from
the selected MFRC522.
Data transfer continues in HS mode after the next repeated START (Sr), only switching
back to F/S mode after a STOP condition (P). To reduce the overhead of the master code,
a master links a number of HS mode transfers, separated by repeated START conditions
(Sr).
F/S mode HS mode (current-source for SCL HIGH enabled) F/S mode
(n-bytes + A)
HS mode continues
Sr SLAVE ADDRESS
001aak749
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
A t1
8-bit master code 0000 1xxx
S tH
SDA high
SCL high 1 2 to 5 6 7 8 9
F/S mode
SDA high
SCL high 1 2 to 5 6 7 8 9 1 2 to 5 6 7 8 9
If P then
HS mode F/S mode
If Sr (dotted lines)
then HS mode
tH
tFS
= Master current source pull-up
msc618
= Resistor pull-up
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
1. Adapt the SDA and SCL input filters according to the spike suppression requirement
in HS mode.
2. Adapt the slope control of the SDA output stages.
It is possible for system configurations that do not have other I2C-bus devices involved in
the communication to switch to HS mode permanently. This is implemented by setting
Status2Reg register’s I2CForceHS bit to logic 1. In permanent HS mode, the master code
is not required to be sent. This is not defined in the specification and must only be used
when no other devices are connected on the bus. In addition, spikes on the I2C-bus lines
must be avoided because of the reduced spike suppression.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
8.2.1 General
The integrated contactless UART supports the external host online with framing and error
checking of the protocol requirements up to 848 kBd. An external circuit can be connected
to the communication interface pins MFIN and MFOUT to modulate and demodulate the
data.
The contactless UART handles the protocol requirements for the communication
protocols in cooperation with the host. Protocol handling generates bit and byte-oriented
framing. In addition, it handles error detection such as parity and CRC, based on the
various supported contactless communication protocols.
Remark: The size and tuning of the antenna and the power supply voltage have an
important impact on the achievable operating distance.
8.2.2 TX p-driver
The signal on pins TX1 and TX2 is the 13.56 MHz energy carrier modulated by an
envelope signal. It can be used to drive an antenna directly using a few passive
components for matching and filtering; see Section 15 on page 80. The signal on pins TX1
and TX2 can be configured using the TxControlReg register; see Section 9.3.2.5 on
page 49.
The modulation index can be set by adjusting the impedance of the drivers. The
impedance of the p-driver can be configured using registers CWGsPReg and
ModGsPReg. The impedance of the n-driver can be configured using the GsNReg
register. The modulation index also depends on the antenna design and tuning.
The TxModeReg and TxSelReg registers control the data rate and framing during
transmission and the antenna driver setting to support the different requirements at the
different modes and transfer speeds.
Table 15. Register and bit settings controlling the signal on pin TX1
Bit Bit Bit Bit Envelope Pin GSPMos GSNMos Remarks
Tx1RFEn Force InvTx1RFOn InvTx1RFOff TX1
100ASK
0 X[1] X[1] X[1] X[1] X[1] X[1] X[1] not specified if RF is
switched off
1 0 0 X[1] 0 RF pMod nMod 100 % ASK: pin TX1
1 RF pCW nCW pulled to logic 0,
independent of the
0 1 X[1] 0 RF pMod nMod InvTx1RFOff bit
1 RF pCW nCW
1 1 X[1] 0 0 pMod nMod
1 RF_n pCW nCW
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 16. Register and bit settings controlling the signal on pin TX2
Bit Bit Bit Bit Bit Envelope Pin GSPMos GSNMos Remarks
Tx1RFEn Force Tx2CW InvTx2RFOn InvTx2RFOff TX2
100ASK
0 X[1] X[1] X[1] X[1] X[1] X[1] X[1] X[1] not specified if
RF is switched
off
1 0 0 0 X[1] 0 RF pMod nMod -
1 RF pCW nCW
1 X[1] 0 RF_n pMod nMod
1 RF_n pCW nCW
1 0 X[1] X[1] RF pCW nCW conductance
1 X[1] X[1] RF_n pCW nCW always CW for
the Tx2CW bit
1 0 0 X[1] 0 0 pMod nMod 100 % ASK: pin
1 RF pCW nCW TX2 pulled
to logic 0
1 X[1] 0 0 pMod nMod (independent of
1 RF_n pCW nCW the
InvTx2RFOn/Inv
1 0 X[1] X[1] RF pCW nCW
Tx2RFOff bits)
1 X[1] X[1] RF_n pCW nCW
The following abbreviations have been used in Table 15 and Table 16:
• RF: 13.56 MHz clock derived from 27.12 MHz quartz crystal oscillator divided by 2
• RF_n: inverted 13.56 MHz clock
• GSPMos: conductance, configuration of the PMOS array
• GSNMos: conductance, configuration of the NMOS array
• pCW: PMOS conductance value for continuous wave defined by the CWGsPReg
register
• pMod: PMOS conductance value for modulation defined by the ModGsPReg register
• nCW: NMOS conductance value for continuous wave defined by the GsNReg
register’s CWGsN[3:0] bits
• nMod: NMOS conductance value for modulation defined by the GsNReg register’s
ModGsN[3:0] bits
• X = do not care.
Remark: If only one driver is switched on, the values for CWGsPReg, ModGsPReg and
GsNReg registers are used for both drivers.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
This topology allows the analog block of the MFRC522 to be connected to the digital block
of another device.
The serial signal switch is controlled by the TxSelReg and RxSelReg registers.
Figure 20 shows the serial data switch for p-driver TX1 and TX2.
DriverSel[1:0]
3-state 00
INTERNAL INVERT IF envelope
01
CODER InvMod = 1
10 to driver TX1 and TX2
0 = impedance = modulated
1 11
1 = impedance = CW
INVERT IF
MFIN
PolMFin = 0
001aak593
Fig 20. Serial data switch for p-driver TX1 and TX2
This topology allows some parts of the analog block to be connected to the digital block of
another device.
Switch MFOutSel in the TxSelReg register can be used to measure MIFARE and
ISO/IEC14443 A related signals. This is especially important during the design-in phase
or for test purposes as it enables checking of the transmitted and received data.
The most important use of pins MFIN and MFOUT is found in the active antenna concept.
An external active antenna circuit can be connected to the MFRC522’s digital block.
Switch MFOutSel must be configured so that the internal Miller encoded signal is sent to
pin MFOUT (MFOutSel = 100b). UARTSel[1:0] must be configured to receive a
Manchester signal with subcarrier from pin MFIN (UARTSel[1:0] = 01).
It is possible to connect a passive antenna to pins TX1, TX2 and RX (using the
appropriate filter and matching circuit) and an active antenna to pins MFOUT and MFIN at
the same time. In this configuration, two RF circuits can be driven (one after another) by a
single host processor.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
NXP Semiconductors
used it must be connected to either pin SVDD or pin PVSS. If pin SVDD is not used it must be connected to either pin
DVDD, pin PVDD or any other voltage supply pin.
MFOUT
All information provided in this document is subject to legal disclaimers.
SUBCARRIER
0 LOW DEMODULATOR
1 Manchester with subcarrier
RX bit stream MANCHESTER
2 internal modulated
DECODER
MFIN 001aak594
© NXP Semiconductors N.V. 2014. All rights reserved.
MFRC522
27 of 94
• The CRC preset value can be either 0000h, 6363h, A671h or FFFFh depending on
the ModeReg register’s CRCPreset[1:0] bits setting
• The CRC polynomial for the 16-bit CRC is fixed to x16 + x12 + x5 + 1
• The CRCResultReg register indicates the result of the CRC calculation. This register
is split into two 8-bit registers representing the higher and lower bytes.
• The ModeReg register’s MSBFirst bit indicates that data will be loaded with the MSB
first.
When the microcontroller starts a command, the MFRC522 can, while the command is in
progress, access the FIFO buffer according to that command. Only one FIFO buffer has
been implemented which can be used for input and output. The microcontroller must
ensure that there are not any unintentional FIFO buffer accesses.
• ComIEnReg register’s LoAlertIEn bit is set to logic 1. It activates pin IRQ when
Status1Reg register’s LoAlert bit changes to logic 1.
• ComIEnReg register’s HiAlertIEn bit is set to logic 1. It activates pin IRQ when
Status1Reg register’s HiAlert bit changes to logic 1.
If the maximum number of WaterLevel bytes (as set in the WaterLevelReg register) or less
are stored in the FIFO buffer, the HiAlert bit is set to logic 1. It is generated according to
Equation 3:
If the number of WaterLevel bytes (as set in the WaterLevelReg register) or less are
stored in the FIFO buffer, the LoAlert bit is set to logic 1. It is generated according to
Equation 4:
The ComIrqReg register’s TxIRq bit indicates that the transmitter has finished. If the state
changes from sending data to transmitting the end of the frame pattern, the transmitter
unit automatically sets the interrupt bit. The CRC coprocessor sets the DivIrqReg
register’s CRCIRq bit after processing all the FIFO buffer data which is indicated by
CRCReady bit = 1.
The ComIrqReg register’s RxIRq bit indicates an interrupt when the end of the received
data is detected. The ComIrqReg register’s IdleIRq bit is set if a command finishes and
the Command[3:0] value in the CommandReg register changes to idle (see Table 149 on
page 69).
The ComIrqReg register’s HiAlertIRq bit is set to logic 1 when the Status1Reg register’s
HiAlert bit is set to logic 1 which means that the FIFO buffer has reached the level
indicated by the WaterLevel[5:0] bits.
The ComIrqReg register’s LoAlertIRq bit is set to logic 1 when the Status1Reg register’s
LoAlert bit is set to logic 1 which means that the FIFO buffer has reached the level
indicated by the WaterLevel[5:0] bits.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
The ComIrqReg register’s ErrIRq bit indicates an error detected by the contactless UART
during send or receive. This is indicated when any bit is set to logic 1 in register ErrorReg.
• Timeout counter
• Watchdog counter
• Stop watch
• Programmable one shot
• Periodical trigger
The timer unit can be used to measure the time interval between two events or to indicate
that a specific event occurred after a specific time. The timer can be triggered by events
explained in the paragraphs below. The timer does not influence any internal events, for
example, a time-out during data reception does not automatically influence the reception
process. Furthermore, several timer-related bits can be used to generate an interrupt.
The timer has an input clock of 13.56 MHz derived from the 27.12 MHz quartz crystal
oscillator. The timer consists of two stages: prescaler and counter.
The prescaler (TPrescaler) is a 12-bit counter. The reload values (TReloadVal_Hi[7:0] and
TReloadVal_Lo[7:0]) for TPrescaler can be set between 0 and 4095 in the TModeReg
register’s TPrescaler_Hi[3:0] bits and TPrescalerReg register’s TPrescaler_Lo[7:0] bits.
The reload value for the counter is defined by 16 bits between 0 and 65535 in the
TReloadReg register.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
The timer can be started manually using the ControlReg register’s TStartNow bit and
stopped using the ControlReg register’s TStopNow bit.
The timer can also be activated automatically to meet any dedicated protocol
requirements by setting the TModeReg register’s TAuto bit to logic 1.
The delay time of a timer stage is set by the reload value + 1. The total delay time (td1) is
calculated using Equation 5:
TPrescaler 2 + 1 TReloadVal + 1
t d1 = --------------------------------------------------------------------------------------------------------- (5)
13.56 MHz
An example of calculating total delay time (td) is shown in Equation 6, where the
TPrescaler value = 4095 and TReloadVal = 65535:
4095 2 + 1 65535 + 1
39.59 s = ----------------------------------------------------------------------- (6)
13.56 MHz
Example: To give a delay time of 25 s requires 339 clock cycles to be counted and a
TPrescaler value of 169. This configures the timer to count up to 65535 time-slots for
every 25 s period.
The MFRC522 version 2.0 offers in addition a second prescaler timer. Due to the fact that
the prescaler counts down to 0 the prescaler period always count an odd number of
clocks (1, 3, 5, ..). This may lead to inaccuracy. The second available prescaler timer
implements the possibility to change the prescaler reload value to odd numbers, which
results in an even prescaler period. This new prescaler can be enabled only in version 2.0
using the register bit DemodeReg, see Table 72. Within this option, the total delay time
(td2) is calculated using Equation 5:
TPrescaler 2 + 2 TReloadVal + 1
t d2 = --------------------------------------------------------------------------------------------------------- (7)
13.56 MHz
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
During soft power-down, all register values, the FIFO buffer content and the configuration
keep their current contents.
After setting the PowerDown bit to logic 0, it takes 1024 clocks until the Soft power-down
mode is exited indicated by the PowerDown bit. Setting it to logic 0 does not immediately
clear it. It is cleared automatically by the MFRC522 when Soft power-down mode is
exited.
Remark: If the internal oscillator is used, you must take into account that it is supplied by
pin AVDD and it will take a certain time (tosc) until the oscillator is stable and the clock
cycles can be detected by the internal logic. It is recommended for the serial UART, to first
send the value 55h to the MFRC522. The oscillator must be stable for further access to
the registers. To ensure this, perform a read access to address 0 until the MFRC522
answers to the last read command with the register content of address 0. This indicates
that the MFRC522 is ready.
MFRC522
OSCOUT OSCIN
27.12 MHz
001aak595
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
The clock applied to the MFRC522 provides a time basis for the synchronous system’s
encoder and decoder. The stability of the clock frequency, therefore, is an important factor
for correct operation. To obtain optimum performance, clock jitter must be reduced as
much as possible. This is best achieved using the internal oscillator buffer with the
recommended circuitry.
If an external clock source is used, the clock signal must be applied to pin OSCIN. In this
case, special care must be taken with the clock duty cycle and clock jitter and the clock
quality must be verified.
The time (tstartup) is the start-up time of the crystal oscillator circuit. The crystal oscillator
start-up time is defined by the crystal.
The time (td) is the internal delay time of the MFRC522 when the clock signal is stable
before the MFRC522 can be addressed.
1024 = 37.74 s
t d = -------------
- (8)
27 s
device activation
oscillator
clock stable
clock ready
tstartup
td
tosc
t
001aak596
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
9. MFRC522 registers
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 21. Reserved register (address 00h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
Table 23. CommandReg register (address 01h); reset value: 20h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol: reserved RcvOff PowerDown Command[3:0]
Access: - R/W D D
Table 25. ComIEnReg register (address 02h); reset value: 80h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol IRqInv TxIEn RxIEn IdleIEn HiAlertIEn LoAlertIEn ErrIEn TimerIEn
Access R/W R/W R/W R/W R/W R/W R/W R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 27. DivIEnReg register (address 03h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol IRQPushPull reserved MfinActIEn reserved CRCIEn reserved
Access R/W - R/W - R/W -
Table 29. ComIrqReg register (address 04h); reset value: 14h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol Set1 TxIRq RxIRq IdleIRq HiAlertIRq LoAlertIRq ErrIRq TimerIRq
Access W D D D D D D D
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 31. DivIrqReg register (address 05h); reset value: x0h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol Set2 reserved MfinActIRq reserved CRCIRq reserved
Access W - D - D -
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 33. ErrorReg register (address 06h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol WrErr TempErr reserved BufferOvfl CollErr CRCErr ParityErr ProtocolErr
Access R R - R R R R R
[1] Command execution clears all error bits except the TempErr bit. Cannot be set by software.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 35. Status1Reg register (address 07h); reset value: 21h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved CRCOk CRCReady IRq TRunning reserved HiAlert LoAlert
Access - R R R R - R R
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 37. Status2Reg register (address 08h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TempSensClear I2CForceHS reserved MFCrypto1On ModemState[2:0]
Access R/W R/W - D R
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 39. FIFODataReg register (address 09h); reset value: xxh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol FIFOData[7:0]
Access D
Table 41. FIFOLevelReg register (address 0Ah); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol FlushBuffer FIFOLevel[6:0]
Access W R
Table 43. WaterLevelReg register (address 0Bh); reset value: 08h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved WaterLevel[5:0]
Access - R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 45. ControlReg register (address 0Ch); reset value: 10h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TStopNow TStartNow reserved RxLastBits[2:0]
Access W W - R
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 47. BitFramingReg register (address 0Dh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol StartSend RxAlign[2:0] reserved TxLastBits[2:0]
Access W R/W - R/W
Table 49. CollReg register (address 0Eh); reset value: xxh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol ValuesAfterColl reserved CollPosNotValid CollPos[4:0]
Access R/W - R R
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 51. Reserved register (address 0Fh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
Table 53. Reserved register (address 10h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 55. ModeReg register (address 11h); reset value: 3Fh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol MSBFirst reserved TxWaitRF reserved PolMFin reserved CRCPreset[1:0]
Access R/W - R/W - R/W - R/W
Table 57. TxModeReg register (address 12h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TxCRCEn TxSpeed[2:0] InvMod reserved
Access R/W D R/W -
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 59. RxModeReg register (address 13h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol RxCRCEn RxSpeed[2:0] RxNoErr RxMultiple reserved
Access R/W D R/W R/W -
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 61. TxControlReg register (address 14h); reset value: 80h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol InvTx2RF InvTx1RF InvTx2RF InvTx1RF Tx2CW reserved Tx2RFEn Tx1RFEn
On On Off Off
Access R/W R/W R/W R/W R/W - R/W R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 63. TxASKReg register (address 15h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved Force100ASK reserved
Access - R/W -
Table 65. TxSelReg register (address 16h); reset value: 10h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol: reserved DriverSel[1:0] MFOutSel[3:0]
Access: - R/W R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 67. RxSelReg register (address 17h); reset value: 84h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol UARTSel[1:0] RxWait[5:0]
Access R/W R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 69. RxThresholdReg register (address 18h); reset value: 84h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol MinLevel[3:0] reserved CollLevel[2:0]
Access R/W - R/W
Table 71. DemodReg register (address 19h); reset value: 4Dh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol AddIQ[1:0] FixIQ TPrescal TauRcv[1:0] TauSync[1:0]
Even
Access R/W R/W R/W R/W R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 73. Reserved register (address 1Ah); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
Table 75. Reserved register (address 1Bh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 77. MfTxReg register (address 1Ch); reset value: 62h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved TxWait[1:0]
Access - R/W
Table 79. MfRxReg register (address 1Dh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved ParityDisable reserved
Access - R/W -
Table 81. Reserved register (address 1Eh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
Table 83. SerialSpeedReg register (address 1Fh); reset value: EBh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol BR_T0[2:0] BR_T1[4:0]
Access R/W R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 85. Reserved register (address 20h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol -
Access reserved
Table 87. CRCResultReg (higher bits) register (address 21h); reset value: FFh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol CRCResultMSB[7:0]
Access R
Table 89. CRCResultReg (lower bits) register (address 22h); reset value: FFh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol CRCResultLSB[7:0]
Access R
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 91. Reserved register (address 23h); reset value: 88h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
Table 93. ModWidthReg register (address 24h); reset value: 26h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol ModWidth[7:0]
Access R/W
Table 95. Reserved register (address 25h); reset value: 87h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 97. RFCfgReg register (address 26h); reset value: 48h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved RxGain[2:0] reserved
Access - R/W -
Table 99. GsNReg register (address 27h); reset value: 88h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol CWGsN[3:0] ModGsN[3:0]
Access R/W R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 101. CWGsPReg register (address 28h); reset value: 20h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved CWGsP[5:0]
Access - R/W
Table 103. ModGsPReg register (address 29h); reset value: 20h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved ModGsP[5:0]
Access - R/W
Remark: The TPrescaler setting higher 4 bits are in the TModeReg register and the lower
8 bits are in the TPrescalerReg register.
Table 105. TModeReg register (address 2Ah); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TAuto TGated[1:0] TAutoRestart TPrescaler_Hi[3:0]
Access R/W R/W R/W R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 107. TPrescalerReg register (address 2Bh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TPrescaler_Lo[7:0]
Access R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Remark: The reload value bits are contained in two 8-bit registers.
Table 109. TReloadReg (higher bits) register (address 2Ch); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TReloadVal_Hi[7:0]
Access R/W
Table 111. TReloadReg (lower bits) register (address 2Dh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TReloadVal_Lo[7:0]
Access R/W
Remark: The timer value bits are contained in two 8-bit registers.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 113. TCounterValReg (higher bits) register (address 2Eh); reset value: xxh bit
allocation
Bit 7 6 5 4 3 2 1 0
Symbol TCounterVal_Hi[7:0]
Access R
Table 115. TCounterValReg (lower bits) register (address 2Fh); reset value: xxh bit
allocation
Bit 7 6 5 4 3 2 1 0
Symbol TCounterVal_Lo[7:0]
Access R
Table 117. Reserved register (address 30h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
Table 119. TestSel1Reg register (address 31h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved TstBusBitSel[2:0]
Access - R/W
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 121. TestSel2Reg register (address 32h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TstBusFlip PRBS9 PRBS15 TestBusSel[4:0]
Access R/W R/W R/W R/W
Table 123. TestPinEnReg register (address 33h); reset value: 80h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol RS232LineEn TestPinEn[5:0] reserved
Access R/W R/W -
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 125. TestPinValueReg register (address 34h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol UseIO TestPinValue[5:0] reserved
Access R/W R/W -
Table 127. TestBusReg register (address 35h); reset value: xxh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol TestBus[7:0]
Access R
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 129. AutoTestReg register (address 36h); reset value: 40h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved AmpRcv RFT SelfTest[3:0]
Access - R/W - R/W
Table 131. VersionReg register (address 37h); reset value: xxh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol Version[7:0]
Access R
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 133. AnalogTestReg register (address 38h); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol AnalogSelAux1[3:0] AnalogSelAux2[3:0]
Access R/W R/W
[1] Remark: Current source output; the use of 1 k pull-down resistor on AUXn is recommended.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 135. TestDAC1Reg register (address 39h); reset value: xxh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved TestDAC1[5:0]
Access - R/W
Table 137. TestDAC2Reg register (address 3Ah); reset value: xxh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved TestDAC2[5:0]
Access - R/W
Table 139. TestADCReg register (address 3Bh); reset value: xxh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol ADC_I[3:0] ADC_Q[3:0]
Access R R
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 141. Reserved register (address 3Ch); reset value: FFh bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol RFT
Access -
Table 143. Reserved register (address 3Dh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol RFT
Access -
Table 145. Reserved register (address 3Eh); reset value: 03h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol RFT
Access -
Table 147. Reserved register (address 3Fh); reset value: 00h bit allocation
Bit 7 6 5 4 3 2 1 0
Symbol reserved
Access -
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Arguments and/or data necessary to process a command are exchanged via the FIFO
buffer.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
10.3.1.1 Idle
Places the MFRC522 in Idle mode. The Idle command also terminates itself.
10.3.1.2 Mem
Transfers 25 bytes from the FIFO buffer to the internal buffer.
To read out the 25 bytes from the internal buffer the Mem command must be started with
an empty FIFO buffer. In this case, the 25 bytes are transferred from the internal buffer to
the FIFO.
During a hard power-down (using pin NRSTPD), the 25 bytes in the internal buffer remain
unchanged and are only lost if the power supply is removed from the MFRC522.
This command automatically terminates when finished and the Idle command becomes
active.
10.3.1.4 CalcCRC
The FIFO buffer content is transferred to the CRC coprocessor and the CRC calculation is
started. The calculation result is stored in the CRCResultReg register. The CRC
calculation is not limited to a dedicated number of bytes. The calculation is not stopped
when the FIFO buffer is empty during the data stream. The next byte written to the FIFO
buffer is added to the calculation.
The CRC preset value is controlled by the ModeReg register’s CRCPreset[1:0] bits. The
value is loaded in to the CRC coprocessor when the command starts.
If the AutoTestReg register’s SelfTest[3:0] bits are set correctly, the MFRC522 enters Self
Test mode. Starting the CalcCRC command initiates a digital self test. The result of the
self test is written to the FIFO buffer.
10.3.1.5 Transmit
The FIFO buffer content is immediately transmitted after starting this command. Before
transmitting the FIFO buffer content, all relevant registers must be set for data
transmission.
This command automatically terminates when the FIFO buffer is empty. It can be
terminated by another command written to the CommandReg register.
10.3.1.6 NoCmdChange
This command does not influence any running command in the CommandReg register. It
can be used to manipulate any bit except the CommandReg register Command[3:0] bits,
for example, the RcvOff bit or the PowerDown bit.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
10.3.1.7 Receive
The MFRC522 activates the receiver path and waits for a data stream to be received. The
correct settings must be chosen before starting this command.
This command automatically terminates when the data stream ends. This is indicated
either by the end of frame pattern or by the length byte depending on the selected frame
type and speed.
Remark: If the RxModeReg register’s RxMultiple bit is set to logic 1, the Receive
command will not automatically terminate. It must be terminated by starting another
command in the CommandReg register.
10.3.1.8 Transceive
This command continuously repeats the transmission of data from the FIFO buffer and the
reception of data from the RF field. The first action is transmit and after transmission the
command is changed to receive a data stream.
Each transmit process must be started by setting the BitFramingReg register’s StartSend
bit to logic 1. This command must be cleared by writing any command to the
CommandReg register.
Remark: If the RxModeReg register’s RxMultiple bit is set to logic 1, the Transceive
command never leaves the receive state because this state cannot be cancelled
automatically.
10.3.1.9 MFAuthent
This command manages MIFARE authentication to enable a secure communication to
any MIFARE Mini, MIFARE 1K and MIFARE 4K card. The following data is written to the
FIFO buffer before the command can be activated:
Remark: When the MFAuthent command is active all access to the FIFO buffer is
blocked. However, if there is access to the FIFO buffer, the ErrorReg register’s WrErr bit is
set.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
This command automatically terminates when the MIFARE card is authenticated and the
Status2Reg register’s MFCrypto1On bit is set to logic 1.
This command does not terminate automatically if the card does not answer, so the timer
must be initialized to automatic mode. In this case, in addition to the IdleIRq bit, the
TimerIRq bit can be used as the termination criteria. During authentication processing, the
RxIRq bit and TxIRq bit are blocked. The Crypto1On bit is only valid after termination of
the MFAuthent command, either after processing the protocol or writing Idle to the
CommandReg register.
If an error occurs during authentication, the ErrorReg register’s ProtocolErr bit is set to
logic 1 and the Status2Reg register’s Crypto1On bit is set to logic 0.
10.3.1.10 SoftReset
This command performs a reset of the device. The configuration data of the internal buffer
remains unchanged. All registers are set to the reset values. This command automatically
terminates when finished.
Remark: The SerialSpeedReg register is reset and therefore the serial data rate is set to
9.6 kBd.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
[1] Supply voltages below 3 V reduce the performance (the achievable operating distance).
[2] VDDA, VDDD and VDD(TVDD) must always be the same voltage.
[3] VDD(PVDD) must always be the same or lower voltage than VDDD.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
14. Characteristics
Table 153. Characteristics
Symbol Parameter Conditions Min Typ Max Unit
Input characteristics
Pins EA, I2C and NRSTPD
ILI input leakage current 1 - +1 A
VIH HIGH-level input voltage 0.7VDD(PVDD) - - V
VIL LOW-level input voltage - - 0.3VDD(PVDD) V
Pin MFIN
ILI input leakage current 1 - +1 A
VIH HIGH-level input voltage 0.7VDD(SVDD) - - V
VIL LOW-level input voltage - - 0.3VDD(SVDD) V
Pin SDA
ILI input leakage current 1 - +1 A
VIH HIGH-level input voltage 0.7VDD(PVDD) - - V
VIL LOW-level input voltage - - 0.3VDD(PVDD) V
Pin RX[1]
Vi input voltage 1 - VDDA +1 V
Ci input capacitance VDDA = 3 V; receiver active; - 10 - pF
VRX(p-p) = 1 V; 1.5 V (DC)
offset
Ri input resistance VDDA = 3 V; receiver active; - 350 -
VRX(p-p) = 1 V; 1.5 V (DC)
offset
Input voltage range; see Figure 24
Vi(p-p)(min) minimum peak-to-peak input Manchester encoded; - 100 - mV
voltage VDDA = 3 V
Vi(p-p)(max) maximum peak-to-peak input Manchester encoded; - 4 - V
voltage VDDA = 3 V
Input sensitivity; see Figure 24
Vmod modulation voltage minimum Manchester - 5 - mV
encoded; VDDA = 3 V;
RxGain[2:0] = 111b (48 dB)
Pin OSCIN
ILI input leakage current 1 - +1 A
VIH HIGH-level input voltage 0.7VDDA - - V
VIL LOW-level input voltage - - 0.3VDDA V
Ci input capacitance VDDA = 2.8 V; DC = 0.65 V; - 2 - pF
AC = 1 V (p-p)
Input/output characteristics
pins D1, D2, D3, D4, D5, D6 and D7
ILI input leakage current 1 - +1 A
VIH HIGH-level input voltage 0.7VDD(PVDD) - - V
VIL LOW-level input voltage - - 0.3VDD(PVDD) V
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
[1] The voltage on pin RX is clamped by internal diodes to pins AVSS and AVDD.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Vmod
Vi(p-p)(max) Vi(p-p)(min)
VMID
13.56 MHz
carrier
0V
001aak012
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
SCK
tSLDX
tSLNH
NSS
001aaj634
Remark: The signal NSS must be LOW to be able to send several bytes in one data stream.
To send more than one data stream NSS must be set HIGH between the data streams.
Fig 25. Timing diagram for SPI
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
SDA
tf tSU;DAT tSP tr
tLOW tf tHD;STA tBUF
SCL
tr tHIGH tSU;STO
tHD;STA tSU;STA
S tHD;DAT Sr P S
001aaj635
Fig 26. Timing for Fast and Standard mode devices on the I2C-bus
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
The antenna tuning and RF part matching is described in the application note Ref. 1 and
Ref. 2.
supply
L0 C1 Ra
NRSTPD TX1
6 11 antenna
host
interface MFRC522 C0 C2
MICRO- TVSS
10, 14 Lant
PROCESSOR
C0 C2
L0 C1 Ra
IRQ TX2
23 13
AVSS DVSS
18 4
21 22
OSCIN OSCOUT
27.12 MHz
001aaj636
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Table 158 shows the signals that can be switched to pin AUX1 or AUX2 by setting
AnalogSelAux1[3:0] or AnalogSelAux2[3:0] in the AnalogTestReg register.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Figure 28 shows test signal TestDAC1 on pin AUX1 and TestDAC2 on pin AUX2 when the
TestDAC1Reg register is programmed with a slope defined by values 00h to 3Fh and the
TestDAC2Reg register is programmed with a rectangular signal defined by values 00h
and 3Fh.
001aak597
(1)
(2)
100 ms/div
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
001aak598
(1)
(2)
(3)
10 μs/div
16.1.3.3 Example: Output test signals ADC channel I and ADC channel Q
Figure 30 shows the channel behavior test signals ADC_I and ADC_Q on pins AUX1 and
AUX2, respectively. The AnalogTestReg register is set to 56h.
001aak599
(1)
(2)
(3)
5 μs/div
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
• At 106 kBd, RxActive is HIGH during data bits, parity and CRC reception. Start bits
are not included
• At 106 kBd, TxActive is HIGH during start bits, data bits, parity and CRC transmission
• At 212 kBd, 424 kBd and 848 kBd, RxActive is HIGH during data bits and CRC
reception. Start bits are not included
• At 212 kBd, 424 kBd and 848 kBd, TxActive is HIGH during data bits and CRC
transmission
001aak600
(1)
(2)
(3)
10 μs/div
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
001aak601
(1)
(2)
20 μs/div
16.1.3.6 PRBS
The pseudo-random binary sequences PRBS9 and PRBS15 are based on ITU-TO150
and are defined with the TestSel2Reg register. Transmission of either data stream is
started by the Transmit command. The preamble/sync byte/start bit/parity bit are
automatically generated depending on the mode selected.
Remark: All relevant registers for transmitting data must be configured in accordance with
ITU-TO150 before selecting PRBS transmission.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
HVQFN32: plastic thermal enhanced very thin quad flat package; no leads;
32 terminals; body 5 x 5 x 0.85 mm SOT617-1
D B A
terminal 1
index area A
A1
E c
detail X
e1 C
e 1/2 e b v M C A B y1 C y
9 16 w M C
L
17
8
e
Eh e2
1/2 e
1
24
terminal 1
index area 32 25
Dh X
0 2.5 5 mm
scale
DIMENSIONS (mm are the original dimensions)
A(1)
UNIT A1 b c D (1) Dh E (1) Eh e e1 e2 L v w y y1
max.
Note
1. Plastic or metal protrusions of 0.075 mm maximum per side are not included.
01-08-08
SOT617-1 --- MO-220 ---
02-10-18
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
chamfer
barcode label (permanent)
PIN 1
barcode label (peel-off)
chamfer
QA seal
PIN 1
Hyatt patent preprinted
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
20. Abbreviations
Table 159. Abbreviations
Acronym Description
ADC Analog-to-Digital Converter
BPSK Binary Phase Shift Keying
CRC Cyclic Redundancy Check
CW Continuous Wave
DAC Digital-to-Analog Converter
HBM Human Body Model
I2C Inter-integrated Circuit
LSB Least Significant Bit
MISO Master In Slave Out
MM Machine Model
MOSI Master Out Slave In
MSB Most Significant Bit
NRZ Not Return to Zero
NSS Not Slave Select
PLL Phase-Locked Loop
PRBS Pseudo-Random Bit Sequence
RX Receiver
SOF Start Of Frame
SPI Serial Peripheral Interface
TX Transmitter
UART Universal Asynchronous Receiver Transmitter
21. References
[1] Application note — MFRC52x Reader IC Family Directly Matched Antenna
Design
[2] Application note — MIFARE (ISO/IEC 14443 A) 13.56 MHz RFID Proximity
Antennas
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
[1] Please consult the most recently issued document before initiating or completing a design.
[2] The term ‘short data sheet’ is explained in section “Definitions”.
[3] The product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple devices. The latest product status
information is available on the Internet at URL http://www.nxp.com.
23.2 Definitions Suitability for use — NXP Semiconductors products are not designed,
authorized or warranted to be suitable for use in life support, life-critical or
safety-critical systems or equipment, nor in applications where failure or
Draft — The document is a draft version only. The content is still under
malfunction of an NXP Semiconductors product can reasonably be expected
internal review and subject to formal approval, which may result in
to result in personal injury, death or severe property or environmental
modifications or additions. NXP Semiconductors does not give any
damage. NXP Semiconductors and its suppliers accept no liability for
representations or warranties as to the accuracy or completeness of
inclusion and/or use of NXP Semiconductors products in such equipment or
information included herein and shall have no liability for the consequences of
applications and therefore such inclusion and/or use is at the customer’s own
use of such information.
risk.
Short data sheet — A short data sheet is an extract from a full data sheet
Applications — Applications that are described herein for any of these
with the same product type number(s) and title. A short data sheet is intended
products are for illustrative purposes only. NXP Semiconductors makes no
for quick reference only and should not be relied upon to contain detailed and
representation or warranty that such applications will be suitable for the
full information. For detailed and full information see the relevant full data
specified use without further testing or modification.
sheet, which is available on request via the local NXP Semiconductors sales
office. In case of any inconsistency or conflict with the short data sheet, the Customers are responsible for the design and operation of their applications
full data sheet shall prevail. and products using NXP Semiconductors products, and NXP Semiconductors
accepts no liability for any assistance with applications or customer product
Product specification — The information and data provided in a Product design. It is customer’s sole responsibility to determine whether the NXP
data sheet shall define the specification of the product as agreed between Semiconductors product is suitable and fit for the customer’s applications and
NXP Semiconductors and its customer, unless NXP Semiconductors and products planned, as well as for the planned application and use of
customer have explicitly agreed otherwise in writing. In no event however, customer’s third party customer(s). Customers should provide appropriate
shall an agreement be valid in which the NXP Semiconductors product is design and operating safeguards to minimize the risks associated with their
deemed to offer functions and qualities beyond those described in the applications and products.
Product data sheet.
NXP Semiconductors does not accept any liability related to any default,
damage, costs or problem which is based on any weakness or default in the
23.3 Disclaimers customer’s applications or products, or the application or use by customer’s
third party customer(s). Customer is responsible for doing all necessary
testing for the customer’s applications and products using NXP
Limited warranty and liability — Information in this document is believed to
Semiconductors products in order to avoid a default of the applications and
be accurate and reliable. However, NXP Semiconductors does not give any
the products or of the application or use by customer’s third party
representations or warranties, expressed or implied, as to the accuracy or
customer(s). NXP does not accept any liability in this respect.
completeness of such information and shall have no liability for the
consequences of use of such information. NXP Semiconductors takes no Limiting values — Stress above one or more limiting values (as defined in
responsibility for the content in this document if provided by an information the Absolute Maximum Ratings System of IEC 60134) will cause permanent
source outside of NXP Semiconductors. damage to the device. Limiting values are stress ratings only and (proper)
operation of the device at these or any other conditions above those given in
In no event shall NXP Semiconductors be liable for any indirect, incidental,
the Recommended operating conditions section (if present) or the
punitive, special or consequential damages (including - without limitation - lost
Characteristics sections of this document is not warranted. Constant or
profits, lost savings, business interruption, costs related to the removal or
repeated exposure to limiting values will permanently and irreversibly affect
replacement of any products or rework charges) whether or not such
the quality and reliability of the device.
damages are based on tort (including negligence), warranty, breach of
contract or any other legal theory. Terms and conditions of commercial sale — NXP Semiconductors
Notwithstanding any damages that customer might incur for any reason products are sold subject to the general terms and conditions of commercial
whatsoever, NXP Semiconductors’ aggregate and cumulative liability towards sale, as published at http://www.nxp.com/profile/terms, unless otherwise
customer for the products described herein shall be limited in accordance agreed in a valid written individual agreement. In case an individual
with the Terms and conditions of commercial sale of NXP Semiconductors. agreement is concluded only the terms and conditions of the respective
agreement shall apply. NXP Semiconductors hereby expressly objects to
Right to make changes — NXP Semiconductors reserves the right to make applying the customer’s general terms and conditions with regard to the
changes to information published in this document, including without purchase of NXP Semiconductors products by customer.
limitation specifications and product descriptions, at any time and without
notice. This document supersedes and replaces all information supplied prior No offer to sell or license — Nothing in this document may be interpreted or
to the publication hereof. construed as an offer to sell products that is open for acceptance or the grant,
conveyance or implication of any license under any copyrights, patents or
other industrial or intellectual property rights.
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Export control — This document as well as the item(s) described herein NXP Semiconductors’ specifications such use shall be solely at customer’s
may be subject to export control regulations. Export might require a prior own risk, and (c) customer fully indemnifies NXP Semiconductors for any
authorization from competent authorities. liability, damages or failed product claims resulting from customer design and
use of the product for automotive applications beyond NXP Semiconductors’
Quick reference data — The Quick reference data is an extract of the
standard warranty and NXP Semiconductors’ product specifications.
product data given in the Limiting values and Characteristics sections of this
document, and as such is not complete, exhaustive or legally binding. Translations — A non-English (translated) version of a document is for
reference only. The English version shall prevail in case of any discrepancy
Non-automotive qualified products — Unless this data sheet expressly
between the translated and English versions.
states that this specific NXP Semiconductors product is automotive qualified,
the product is not suitable for automotive use. It is neither qualified nor tested
in accordance with automotive testing or application requirements. NXP
Semiconductors accepts no liability for inclusion and/or use of
23.4 Trademarks
non-automotive qualified products in automotive equipment or applications. Notice: All referenced brands, product names, service names and trademarks
In the event that customer uses the product for design-in and use in are the property of their respective owners.
automotive applications to automotive specifications and standards, customer I2C-bus — logo is a trademark of NXP Semiconductors N.V.
(a) shall use the product without NXP Semiconductors’ warranty of the
product for such automotive applications, use and specifications, and (b) MIFARE — is a trademark of NXP Semiconductors N.V.
whenever customer uses the product for automotive applications beyond
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
25. Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 8.6 Power reduction modes . . . . . . . . . . . . . . . . . 32
2 General description . . . . . . . . . . . . . . . . . . . . . . 1 8.6.1 Hard power-down. . . . . . . . . . . . . . . . . . . . . . 32
2.1 Differences between version 1.0 and 2.0 . . . . . 1 8.6.2 Soft power-down mode . . . . . . . . . . . . . . . . . 32
8.6.3 Transmitter power-down mode . . . . . . . . . . . 32
3 Features and benefits . . . . . . . . . . . . . . . . . . . . 2
8.7 Oscillator circuit . . . . . . . . . . . . . . . . . . . . . . . 32
4 Quick reference data . . . . . . . . . . . . . . . . . . . . . 2 8.8 Reset and oscillator start-up time . . . . . . . . . 33
5 Ordering information . . . . . . . . . . . . . . . . . . . . . 3 8.8.1 Reset timing requirements . . . . . . . . . . . . . . . 33
6 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4 8.8.2 Oscillator start-up time . . . . . . . . . . . . . . . . . . 33
7 Pinning information . . . . . . . . . . . . . . . . . . . . . . 6 9 MFRC522 registers . . . . . . . . . . . . . . . . . . . . . 34
7.1 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 6 9.1 Register bit behavior . . . . . . . . . . . . . . . . . . . 34
8 Functional description . . . . . . . . . . . . . . . . . . . 8 9.2 Register overview . . . . . . . . . . . . . . . . . . . . . 35
8.1 Digital interfaces . . . . . . . . . . . . . . . . . . . . . . . . 9 9.3 Register descriptions . . . . . . . . . . . . . . . . . . . 37
8.1.1 Automatic microcontroller interface detection. . 9 9.3.1 Page 0: Command and status . . . . . . . . . . . . 37
8.1.2 Serial Peripheral Interface . . . . . . . . . . . . . . . 10 9.3.1.1 Reserved register 00h . . . . . . . . . . . . . . . . . . 37
8.1.2.1 SPI read data . . . . . . . . . . . . . . . . . . . . . . . . . 10 9.3.1.2 CommandReg register. . . . . . . . . . . . . . . . . . 37
8.1.2.2 SPI write data . . . . . . . . . . . . . . . . . . . . . . . . . 11 9.3.1.3 ComIEnReg register . . . . . . . . . . . . . . . . . . . 37
8.1.2.3 SPI address byte . . . . . . . . . . . . . . . . . . . . . . 11 9.3.1.4 DivIEnReg register. . . . . . . . . . . . . . . . . . . . . 38
8.1.3 UART interface . . . . . . . . . . . . . . . . . . . . . . . . 11 9.3.1.5 ComIrqReg register . . . . . . . . . . . . . . . . . . . . 38
8.1.3.1 Connection to a host. . . . . . . . . . . . . . . . . . . . 11 9.3.1.6 DivIrqReg register . . . . . . . . . . . . . . . . . . . . . 39
8.1.3.2 Selectable UART transfer speeds . . . . . . . . . 12 9.3.1.7 ErrorReg register . . . . . . . . . . . . . . . . . . . . . . 40
8.1.3.3 UART framing . . . . . . . . . . . . . . . . . . . . . . . . . 13 9.3.1.8 Status1Reg register . . . . . . . . . . . . . . . . . . . . 41
8.1.4 I2C-bus interface. . . . . . . . . . . . . . . . . . . . . . . 16 9.3.1.9 Status2Reg register . . . . . . . . . . . . . . . . . . . . 42
8.1.4.1 Data validity . . . . . . . . . . . . . . . . . . . . . . . . . . 17 9.3.1.10 FIFODataReg register . . . . . . . . . . . . . . . . . . 43
8.1.4.2 START and STOP conditions . . . . . . . . . . . . . 17 9.3.1.11 FIFOLevelReg register. . . . . . . . . . . . . . . . . . 43
8.1.4.3 Byte format . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 9.3.1.12 WaterLevelReg register . . . . . . . . . . . . . . . . . 43
8.1.4.4 Acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . 18 9.3.1.13 ControlReg register . . . . . . . . . . . . . . . . . . . . 44
8.1.4.5 7-Bit addressing . . . . . . . . . . . . . . . . . . . . . . . 19 9.3.1.14 BitFramingReg register . . . . . . . . . . . . . . . . . 45
8.1.4.6 Register write access . . . . . . . . . . . . . . . . . . . 19 9.3.1.15 CollReg register . . . . . . . . . . . . . . . . . . . . . . . 45
8.1.4.7 Register read access . . . . . . . . . . . . . . . . . . . 20 9.3.1.16 Reserved register 0Fh . . . . . . . . . . . . . . . . . . 46
8.1.4.8 High-speed mode . . . . . . . . . . . . . . . . . . . . . . 21 9.3.2 Page 1: Communication. . . . . . . . . . . . . . . . . 46
8.1.4.9 High-speed transfer . . . . . . . . . . . . . . . . . . . . 21 9.3.2.1 Reserved register 10h . . . . . . . . . . . . . . . . . . 46
8.1.4.10 Serial data transfer format in HS mode . . . . . 21 9.3.2.2 ModeReg register . . . . . . . . . . . . . . . . . . . . . 47
8.1.4.11 Switching between F/S mode and HS mode . 23 9.3.2.3 TxModeReg register . . . . . . . . . . . . . . . . . . . 47
8.1.4.12 MFRC522 at lower speed modes . . . . . . . . . . 23 9.3.2.4 RxModeReg register . . . . . . . . . . . . . . . . . . . 48
8.2 Analog interface and contactless UART . . . . . 24 9.3.2.5 TxControlReg register . . . . . . . . . . . . . . . . . . 49
8.2.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 9.3.2.6 TxASKReg register . . . . . . . . . . . . . . . . . . . . 50
8.2.2 TX p-driver . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 9.3.2.7 TxSelReg register . . . . . . . . . . . . . . . . . . . . . 50
8.2.3 Serial data switch . . . . . . . . . . . . . . . . . . . . . . 26 9.3.2.8 RxSelReg register . . . . . . . . . . . . . . . . . . . . . 51
8.2.4 MFIN and MFOUT interface support . . . . . . . 26 9.3.2.9 RxThresholdReg register . . . . . . . . . . . . . . . . 52
8.2.5 CRC coprocessor . . . . . . . . . . . . . . . . . . . . . . 28 9.3.2.10 DemodReg register . . . . . . . . . . . . . . . . . . . . 52
8.3 FIFO buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 9.3.2.11 Reserved register 1Ah . . . . . . . . . . . . . . . . . . 53
8.3.1 Accessing the FIFO buffer . . . . . . . . . . . . . . . 28 9.3.2.12 Reserved register 1Bh . . . . . . . . . . . . . . . . . . 53
8.3.2 Controlling the FIFO buffer . . . . . . . . . . . . . . . 28 9.3.2.13 MfTxReg register . . . . . . . . . . . . . . . . . . . . . . 53
8.3.3 FIFO buffer status information . . . . . . . . . . . . 28 9.3.2.14 MfRxReg register . . . . . . . . . . . . . . . . . . . . . . 54
8.4 Interrupt request system . . . . . . . . . . . . . . . . . 29 9.3.2.15 Reserved register 1Eh . . . . . . . . . . . . . . . . . . 54
8.4.1 Interrupt sources overview . . . . . . . . . . . . . . . 29 9.3.2.16 SerialSpeedReg register . . . . . . . . . . . . . . . . 54
8.5 Timer unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 9.3.3 Page 2: Configuration . . . . . . . . . . . . . . . . . . 56
9.3.3.1 Reserved register 20h . . . . . . . . . . . . . . . . . . 56
continued >>
MFRC522 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2014. All rights reserved.
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section ‘Legal information’.