nfctag5 2.0.0.0
|
NFC Tag 5 Click is a compact add-on board that contains a compact NFC tag IC. This board features the M24LR64E-R, a dynamic NFC/RFID tag IC with a dual interface 64-Kbit EEPROM from STMicroelectronics. It features an I2C interface alongside an RF contactless interface operating at 13.56MHz, organized as 8192×8 bits in the I2C mode and 2048×32 bits in the ISO 15693 and ISO 18000-3 mode 1 RF mode. The M24LR64E-R also features an energy harvesting analog output and a user-configurable digital output pin, used as an interrupt, toggling during either RF write in progress or RF busy mode.
We provide a library for the NFC Tag 5 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for NFC Tag 5 Click driver.
nfctag5_cfg_setup
Config Object Initialization function. nfctag5_init
Initialization function. nfctag5_default_cfg
Click Default Configuration function. nfctag5_write_ndef_uri_record
This function writes specific NDEF URI record to the memory address specified with NTAG5LINK_NDEF_MESSAGE_START_ADDRESS macro. nfctag5_write_message_to_memory
This function writes specified number of data bytes to the user memory starting from block_addr. nfctag5_read_message_from_memory
This function reads specified number of data bytes from the user memory starting from block_addr. This example demonstrates the use of NFC Tag 5 click board by programming the specified NDEF URI record to the memory, and showing the memory read/write feature.
The demo application is composed of two sections :
Initializes the driver and logger and performs the click default configuration which formats its user memory. After that it programs the specified NDEF URI record to the memory.
Writes a desired number of data bytes to the memory and verifies that it is written correctly by reading from the same memory location and displaying the memory content
on the USB UART approximately every 5 seconds.
Trying to write/read in RF mode (for example, processing NDEF URI record with a smartphone) while writing to memory over I2C is in progress can interrupt and block the I2C communication.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.