Page 1 of 1

[M480] Reading RFID Card by SPI Interface

Posted: 02 Dec 2021, 09:33
by chhsieh3
  • Application: This example code uses M480 SPI to communicate with the MFRC522 module to read the Unique Identification (UID) of RFID card.
  • BSP Version: M480 BSP CMSIS V3.03.000
  • Hardware: NuMaker-PFM-M487 V3.0, MFRC522 module, RFID card
This example code uses the M480 series microcontroller as the host controller to communicate with the MFRC522 module to read the UID of RFID card. The MFRC522 is one of NXP MIFARE series chips. It supports all variants of the MIFARE identification protocols. The MFRC522 is a highly integrated reader/writer IC for contactless communication at 13.56 MHz, and its internal transmitter is able to drive a reader/writer antenna designed to communicate with ISO/IEC 14443 Type A cards and transponders without additional active circuitry.

From the definition in ISO/IEC 14443, the MFRC522 and RFID card work as the Proximity Coupling Device (PCD) and Proximity Card (PICC), respectively. The communication protocol between PCD and PICC must be compliant with ISO/IEC 14443.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1129132546