Datasheet

Table Of Contents
PN532_C1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2017. All rights reserved.
Product data sheet
COMPANY PUBLIC
Rev. 3.6 — 28 November 2017
115436 139 of 222
NXP Semiconductors
PN532/C1
Near Field Communication (NFC) controller
8.6.20.13 MFAuthent command
This command handles the MIFARE authentication in Reader/Writer mode to enable a
secure communication to any MIFARE Clasic 1K and MIFARE Classic 4K emulation card.
The following data shall be written to the FIFO before the command can be activated:
Authentication command code (60h for key A, 61h for key B)
Block address
Sector key byte 0
Sector key byte 1
Sector key byte 2
Sector key byte 3
Sector key byte 4
Sector key byte 5
Card serial number byte 0
Card serial number byte 1
Card serial number byte 2
Card serial number byte 3
In total 12 bytes shall be written to the FIFO.
Note: When the MFAuthent command is active, any FIFO access is blocked. Anyhow if
there is an access to the FIFO, the bit WrErr in the register CIU_Error is set to logic 1.
This command terminates automatically when the MIFARE Classic 1K or MIFARE Classic
4K emulation card is authenticated. The bit MFCrypto1On in the register CIU_Status2 is
set to logic 1.
This command does not terminate automatically when the card does not answer,
therefore CIU timer should be initialized to automatic mode. In this case, beside the bit
IdleIRq, the bit TimerIRq can be used as termination criteria. During authentication
processing, the bits RxIRq and TxIRq of CIU_CommIrq register are blocked.
The Crypto1On bit is only valid after termination of the MFAuthent command (either after
processing the authentication or after writing the Idle command in the register
CIU_Command).
In case there is an error during the MIFARE authentication, the ProtocolErr bit in the
CIU_Error register is set to logic 1 and the Crypto1On bit in CIU_Status2 register is set to
logic 0.
8.6.20.14 SoftReset command
This command performs a reset of the CIU. The configuration data of the internal buffer
remains unchanged. All registers are set to the reset values.
When SoftReset is finished, the active command switches to Idle.