iwanders / MFRC630

A library for NXP's MFRC630 NFC IC.
MIT License
59 stars 22 forks source link
arduino mfrc630 stm32

MFRC630

This is a library for NXP's MFRC630 NFC and reader IC. It is likely that it also works for other IC's in the same family, such as the CLRC663, MFRC631, MFRC630 and SLRC610. The library is platform independent and is likely to work on many different microcontrollers, it is known to work on the Arduino compatible Teensy and on an STM32F0xx chip.

Design

The library itself is written in C, it requires the chip to be connected to the SPI interface, furthermore, it can only deal with a single chip that's connected to the microcontroller. The library does not require time or delay functions neither does it need an interrupt pin, all that is required is the SPI bus. The handling of timeouts is done by using one of the chip's timers.

The library is clearly structured, providing functionality from low level to higher level:

Documentation

The header files are annotated with Doxygen-style comments, running make doxygen in the documentation folder will output the documentation in html form. Additionally, running make will also generate output using Breathe.

An example for an Arduino compatible board is provided as well as some pointers for use on an STM32 microcontroller.

Miscellaneous

This chip seems to be significantly less popular than the MFRC522, if you are starting with RFID, that might be a better choice to use, as there is a well-tested library for that chip.

I came across this chip when I was repurposing off-the-shelf hardware to do my bidding; Surprisingly, no library was available for this chip. Improvements / additional examples are welcome.

License

MIT License, see LICENSE.txt.

Copyright (c) 2016 Ivor Wanders