# MikroElektronika RFID Click

**Type:** Product page · **SKU:** CE05416 · **Brand:** [MikroElektronika](https://core-electronics.com.au/brands/mikroelektronika-australia)
**Page:** https://core-electronics.com.au/mikroelektronika-rfid-click.html ([markdown](https://core-electronics.com.au/mikroelektronika-rfid-click.html.md))

## Retired product

This product is retired and no longer available for purchase. Search the catalogue for an alternative.

## Description

RFid click features CR95HF 13.56 MHz contactless transceiver as well as trace antenna. The click is designed to run on a 3.3V power supply only. It communicates with the target MCU via mikroBUS™ UART (TX, RX), SPI (MISO, MOSI, SCK, CS) INT, RST, PWM and AN lines.

The click functions as an integrated transceiver for contactless applications. The board contains a dedicated internal frame controller and analog front end (AFE) for RF communications. It supports ISO/IEC 14443 type A and B, ISO/IEC 15693 and ISO/IEC 18092 protocols (tags) as well as the detection, reading and writing of NFC forum type 1, 2, 3 and 4 tags.

### CR95HF integrated transceiver

The CR95HF has 2 operating modes: Wait for Event (WFE) and Active.

In Active mode, the CR95HF communicates actively with a tag or an external host. WFE mode includes four low consumption states: Power-up, Hibernate, Sleep and Tag Detector. The transceiver can switch from one mode to another.

The Hibernate state has the lowest power consumption out of the four states (1 µA typ. 5 µA max.).

### SMD jumpers

Two SMD jumpers are provided on the board. In case you want to use UART interface, it is necessary to solder SMD jumpers in B position. Otherwise, if you want to use SPI interface, jumpers should be left in its default position (A). In that case interrupt pins (IN and OUT) are usable.

### Specifications

- Type: NFC,RFID
- Applications: Board can be used with 13.56 MHz RFid tags or identification cards. Ideal for tracking and security systems that needs RFID support
- On-board modules: CR95HF 13.56 MHz contactless transceiver and trace antenna
- Key Features: Dedicated internal frame controller and analog front end (AFE) for RF comm. available on-board. It can detect, read and write NFC forum type 1, 2, 3 and 4 tags
- Key Benefits: Supports ISO/IEC 14443 type A and B, ISO/IEC 15693 and ISO/IEC 18092 protocols (tags)
- Interface: GPIO,SPI,UART
- Input Voltage: 3.3V
- Compatibility: mikroBUS
- Click board size: L (57.15 x 25.4 mm)
 
### Key features

- CR95HF IC
- Operating modes supported: Reader/Writer
- RF communication @13.56 MHz
- Supports NFC Forum Type 1, 2, 3 and 4 tags
- 3.3V power supply
- Interface: UART, SPI
 
### Pinout Diagram

This table shows hwo the pinout on RFID Click corresponds to the pinout on the mikroBUS™ Socket (the latter shwon i nthe middle columns).

INSERT IMAGE HERE

### Programming

The following code snippet uses a TFT to communicate with the user when the click is ready for reading and afterwards tells the user what the Tag ID is.

 1 void main() {
 2 Init(); // Initialize MCU and peripherals
 3 DrawFrame();
 4 while (!EchoResponse()) { // Until CR95HF is detected
 5 IRQ\_IN = 1; // put IRQ\_IN pin at low level
 6 delay\_ms(1);
 7 IRQ\_IN = 0; // put IRQ\_IN pin at low level
 8 delay\_ms(1);
 9 }
10 TFT\_Write\_Text("CR95HF Device Connected.", 55, 60);
11 
12 ReadCR95HF\_ID();
13 Calibration();
14 IndexMod\_Gain();
15 AutoFDet();
16 Select\_ISO\_IEC\_18092\_Protocol();
17 
18 while (1) {
19 if (!TAG\_Flag)
20 GetNFCTag(); // Get NFC ID
21 
22 if (!NFC\_Flag)
23 GetTagID(); // Get Tag ID
24 
25 if (ID\[0\] == 0) { // If there is no tag present
26 flag++; // Increment counter flag
27 }
28 else { // If tag is present
29 flag = 0; // Reset counter flag
30 if (strcmp(ID\_old, ID)) { // Compare previous and current tag ID
31 TFT\_Set\_Font(TFT\_defaultFont, CL\_WHITE, FO\_HORIZONTAL); // Set font color to white
32 TFT\_Write\_Text(ID\_old, x\_pos\_old, 180); // Delete previous tag ID
33 TFT\_Set\_Font(TFT\_defaultFont, CL\_RED, FO\_HORIZONTAL); // Set font color to red
34 TFT\_Write\_Text("Tag ID :", 130, 160);
35 TFT\_Write\_Text(ID, x\_pos, 180); // Display current tag ID
36 TFT\_Set\_Font(TFT\_defaultFont, CL\_WHITE, FO\_HORIZONTAL); // Set font color to white
37 TFT\_Write\_Text("Put the RFid Tag over the RFid Click Antenna", 25, 140);
38 strcpy(ID\_old, ID); // Set current ID as previous ID
39 Delay\_ms(2000);
40 x\_pos\_old = x\_pos;
41 }
42 }
43 if (flag &gt; 5) { // If counter flag has reached value &gt; 5
44 TFT\_Set\_Font(TFT\_defaultFont, CL\_BLACK, FO\_HORIZONTAL); // Set font color to black
45 TFT\_Write\_Text("Put the RFid Tag over the RFid Click Antenna", 25, 140);
46 TFT\_Set\_Font(TFT\_defaultFont, CL\_WHITE, FO\_HORIZONTAL); // Set font color to white
47 TFT\_Write\_Text("Tag ID :", 130, 160);
48 TFT\_Write\_Text(ID\_old, x\_pos\_old, 180); // Delete previous tag ID
49 ID\_old\[0\] = 0; // Terminate the old ID string
50 flag = 0; // Reset counter flag
51 }
52 ID\[0\] = 0; // Terminate the ID string
53 
54 // Clear read and write buffers
55 for (j = 0; j &lt; 18; j++) {
56 rdata\[j\] = 0;
57 sdata\[j\] = 0;
58 }
59 }
60 } ### Downloads

- [RFID Click Schematic](https://download.mikroe.com/documents/add-on-boards/click/rfid/rfid-click-schematic-v103.pdf)

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/c/e/ce05416-1.png)
