Table of Contents

Advertisement

Quick Links

RFID A1 Module User Manual

Table of Contents

1
Introduction ............................................................................................................................................................... 4
1.1
Device Overview ................................................................................................................................................ 4
1.2
Pinout................................................................................................................................................................. 5
1.3
Application ......................................................................................................................................................... 6
2
Electrical Characteristics ............................................................................................................................................ 7
2.1
Test Conditions .................................................................................................................................................. 7
2.2
Absolute Maximum Ratings ............................................................................................................................... 7
2.3
Operating Conditions ......................................................................................................................................... 7
2.4
Current Consumption ........................................................................................................................................ 7
2.5
GPIO ................................................................................................................................................................... 8
2.6
Antenna Output ................................................................................................................................................. 8
2.7
Communication Buses ....................................................................................................................................... 9
2.8
Flash ................................................................................................................................................................... 9
3
System ..................................................................................................................................................................... 10
3.1
Overview .......................................................................................................................................................... 10
3.2
Modules ........................................................................................................................................................... 12
3.2.1
Core .......................................................................................................................................................... 12
3.2.2
RFID .......................................................................................................................................................... 12
3.2.3
Communication System ........................................................................................................................... 12
3.2.4
Power Manager ....................................................................................................................................... 12
3.3
Memory Map ................................................................................................................................................... 13
3.3.1
Result Register ......................................................................................................................................... 15
3.3.2
Command Register .................................................................................................................................. 16
3.3.3
Command Parameters Register ............................................................................................................... 16
3.3.4
Tag UID Register ...................................................................................................................................... 17
3.3.5
Tag Type Register ..................................................................................................................................... 17
1
V1.183

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RFID A1 and is the answer not in the manual?

Questions and answers

Summary of Contents for Essel Technology RFID A1

  • Page 1: Table Of Contents

    RFID A1 Module User Manual V1.183 Table of Contents Introduction ................................4 Device Overview ..............................4 Pinout................................. 5 Application ................................. 6 Electrical Characteristics ............................7 Test Conditions ..............................7 Absolute Maximum Ratings ..........................7 Operating Conditions ............................7 Current Consumption ............................7 GPIO ...................................
  • Page 2 3.3.6 Tag UID Size Register ..........................18 3.3.7 Data Buffer ............................... 18 3.3.8 Password Register ............................ 18 3.3.9 AES Initialization Vector Register......................19 3.3.10 AES Key Register ............................19 3.3.11 Authentication Key / Password Register ....................20 3.3.12 User Memory ............................20 Functional Description .............................
  • Page 3 4.2.23 Password Authentication (0x17) ......................47 4.2.24 Halt (0x18) ............................... 48 4.2.25 Calculate CRC (0x19) ..........................48 4.2.26 Copy Data (0x1A) ............................. 50 4.2.27 Unlock (0x1B) ............................50 4.2.28 Lock (0x1C) ............................... 51 4.2.29 Get Module Version (0x1D) ........................51 4.2.30 Reset to Default (0x1E) ..........................
  • Page 4: Introduction

    AES-128 encryption engine  RoHS compliant Description Applications The RFID A1 module is the first in an evolving family of 13.56MHz sub assemblies from Eccel Technology Ltd (IB Technology). The  Access control product is designed with embedded applications in mind. This ...
  • Page 5: Pinout

    1.2 Pinout Pin Number Symbol Type Description Ground Reset input signal (active low). This pin requires no external pull-up / down resitor Digital input with nRESET unless the module is used in noisy environments, in which case connection of an pull-up external pull-up resistor combined with HF filter is recommended.
  • Page 6: Application

    1.3 Application The RFID A1 module is specifically designed for embedded applications, where a fast or low pin count connection to a host microcontroller is required. Fastest data exchange speed can be obtained by using the Serial Peripheral Interface Bus. The lowest pin count connection can be achieved by using the I2C Bus. For the module to be a fully functional RFID reader/writer it only requires connection to a power supply and antenna.
  • Page 7: Electrical Characteristics

    2 Electrical Characteristics 2.1 Test Conditions Typical device parameters have been measured at ambient temperature 22°C ±3°C and a power supply of 3.3V ±5%. 2.2 Absolute Maximum Ratings Symbol Parameter Unit Notes Storage Temperature °C Tested for 10'000 hours at 150°C. Supply Voltage DDMAX Input Pin Voltage...
  • Page 8: Gpio

    Current measurement was taken place with all digital input pins connected to Vdd. Pins number 16 and 17 was left floating. Antenna was not connected except for the Power Up Current measurement and Maximum Current measurement. 2.5 GPIO Symbol Parameter Unit Notes Input Low Voltage...
  • Page 9: Communication Buses

    2.7 Communication Buses Symbol Parameter Unit Notes I2C Maximum Clock I2CMAX Frequency SPI Maximum Clock SPIMAX Frequency Minimum time delay between falling edge of Chip Select and first clock SPI CS To CLK Time Delay µ CSCLK edge. SPI CS high Minimum Time µ...
  • Page 10: System

    3 System 3.1 Overview The general overview of system components is shown in Figure 3.1. The system internally consists of four main parts:  CORE – the main processing part of the microcontroller firmware responsible for managing all system tasks, parsing and the execution of commands received from the user’s master controller.
  • Page 11 ANT1 RFID ANT2 ADDR0 ADDR1 ADDR2 COMMUNICATION SYSTEM CORE MOSI MISO nBUSY POWER MANAGER nPWRDN Figure 3.1...
  • Page 12: Modules

    3.2.3 Communication System The Communication System component of the RFID A1 module is responsible for the entire communication with the user master controller, together with parsing commands for subsequent execution by the module core. Two communication interfaces are available: SPI and I2C.
  • Page 13: Memory Map

    The device memory layout is shown below in Table 3.1. In the RFID A1 module there are 728 bytes of user accessible memory. Each byte of the memory has a defined factory default value and these values can be recovered by using the ‘Reset to Factory Defaults’ command. The first 288 bytes are volatile memory which also have a default reset state that is the same as the factory default value.
  • Page 14 Locked and Stored in non- Address [DEC] Address [HEX] Size [bytes] Description Access volatile memory 0x0000 Result Read Only 0x0001 Command R / W 0x0002 Command Parameters R / W 0x0014 Tag UID Read Only 0x001E Tag Type Read Only 0x001F Tag UID Size Read Only...
  • Page 15: Result Register

    3.3.1 Result Register The Result Register is 1-byte long, with located at address 0x0000, with both read and write access. Writing to this register has no effect. The register contains the result (error code) of the last executed command. The list of all possible results is shown in Table 3.2.
  • Page 16: Command Register

    3.3.2 Command Register The Command Register is 1-byte, located at address 0x0001, with both read and write access. Writing to this register is recognized by the module as a command execution request. Depending upon the command (value written to the register) the Command Parameters Register is parsed to extract arguments for the command.
  • Page 17: Tag Uid Register

    3.3.4 Tag UID Register Tag UID Register Name Register Address 0x0014 Byte Offset 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 Byte Position Access Factory Default Value 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 Read Function UID[0] UID[1] UID[2]...
  • Page 18: Tag Uid Size Register

    3.3.6 Tag UID Size Register The Tag UID Size Register is 1-byte long, located at address 0x001F, with read only access. It contains the information of what the UID size in bytes was of the last tag in the field. 3.3.7 Data Buffer The Data Buffer is a 256-byte long, located at address 0x0020 to 0x011F, with both read and write access.
  • Page 19: Aes Initialization Vector Register

    3.3.9 AES Initialization Vector Register Register Name AES Initialization Vector Register Address 0x0128,0x0138 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 0x09 0x0A 0x0B 0x0C 0x0D 0x0E 0x0F Byte Offset Byte Position Access Factory Default Value 0x00 0x00 0x00 0x00 0x00 0x00...
  • Page 20: Authentication Key / Password Register

    3.3.11 Authentication Key / Password Register Authentication Key / Password Register Name Register Address 0x0168, 0x016E … 0x0252 Byte Offset 0x00 0x01 0x02 0x03 0x04 0x05 Byte Position Access Factory Default Value 0x00 0x00 0x00 0x00 0x00 0x00 KEY[0] / KEY[1] / KEY[2] / KEY[3] /...
  • Page 21: Functional Description

    4 Functional Description 4.1 Overview The RFID A1 module is designed to provide a simple interface to communicate and manage RFID tags from the Mifare Classic, Ultralight and NTAG2 families. The interface is provided via SPI and I2C busses. From the user perspective, the module is a memory region where he can read from and write to.
  • Page 22 Value Command Type Arguments Taken Memory Modified 0x00 No action Result Register, Tag Type, Tag UID, 0x01 Get UID and Type Tag UID Size Block Address, Read Length, Authentication Key 0x02 Read Block Result Register, Data Buffer Number, Authentication Key, Buffer Offset Block Address, WriteLength, Authentication Key 0x03 Write Block...
  • Page 23: Get Uid And Type (0X01)

    4.2.1 Get UID and Type (0x01) The ‘Get UID and Type’ command takes no arguments. After receiving this command, the RFID A1 Module checks for any tag presence in the field. If there is no tag in the field, it returns ‘No Tag’ value in the ‘Tag Type Register’. If there is a tag in the field, it reads its UID and type and writes it to Tag UID and Tag Type registers.
  • Page 24: Read Block (0X02)

    4.2.2 Read Block (0x02) Command Number 0x02 Command Name Read Block Valid Tag Types Mifare Classic Argument Offset [bytes] 0x00 0x01 0x02 0x03 0x04 Authentication Key Argument Name Block Address Read Length Data Buffer Offset Authentication Key Number 0x01 0x01 0x01 0x01 0x06...
  • Page 25: Write Block (0X03)

    4.2.3 Write Block (0x03) Command Number 0x03 Command Name Write Block Valid Tag Types Mifare Classic Argument Offset [bytes] 0x00 0x01 0x02 0x03 0x04 Authentication Key Argument Name Block Address Write Length Data Buffer Offset Authentication Key Number 0x01 0x01 0x01 0x01 0x06...
  • Page 26: Read Data Block (0X04)

    4.2.4 Read Data Block (0x04) Command Number 0x04 Command Name Read Data Block Mifare Classic Valid Tag Types Argument Offset [bytes] 0x00 0x01 0x02 0x03 0x04 Authentication Key Argument Name Block Address Read Length Data Buffer Offset Authentication Key Number Argument Size [bytes] 0x01 0x01...
  • Page 27: Write Data Block (0X05)

    4.2.5 Write Data Block (0x05) Command Number 0x05 Command Name Write Data Block Mifare Classic Valid Tag Types Argument Offset [bytes] 0x00 0x01 0x02 0x03 0x04 Authentication Key Argument Name Block Address Write Length Data Buffer Offset Authentication Key Number Argument Size [bytes] 0x01 0x01...
  • Page 28: Read Page (0X06)

    4.2.6 Read Page (0x06) Command Number 0x06 Command Name Read Page Valid Tag Types Mifare Ultralight, Mifare Ultralight EV1, NTAG Argument Offset [bytes] 0x00 0x01 0x02 Page Address Read Length Data Buffer Offset Argument Name Argument Size [bytes] 0x01 0x01 0x01 Buffer offset in bytes of where in memory the...
  • Page 29: Write Page (0X07)

    4.2.7 Write Page (0x07) Command Number 0x07 Command Name Write Page Valid Tag Types Mifare Ultralight, Mifare Ultralight EV1, NTAG Argument Offset [bytes] 0x00 0x01 0x02 Argument Name Page Address Write Length Data Buffer Offset Argument Size [bytes] 0x01 0x01 0x01 Buffer offset in bytes from where the data to...
  • Page 30: Encrypt Data (0X08)

    4.2.8 Encrypt Data (0x08) Command Number 0x08 Command Name Encrypt Data Valid Tag Types Argument Offset [bytes] 0x00 0x01 0x02 0x03 Encryption Key Initialization Vector Argument Name Data Buffer Offset Data Length Number Number Argument Size [bytes] 0x01 0x01 0x01 0x01 Buffer offset in 16-byte Number of the AES...
  • Page 31 The Initialization Vector is used at the beginning to encrypt the first plaintext. For each subsequent 16-byte block instead of the Initialization Vector, the algorithm uses the ciphertext output of the previous 16-byte block encryption. The same AES Key is used for all blocks. When working with the Data Buffer during encryption the plaintext is substituted with the corresponding ciphertext.
  • Page 32: Decrypt Data (0X09)

    4.2.9 Decrypt Data (0x09) Command Number 0x09 Command Name Decrypt Data Valid Tag Types Argument Offset [bytes] 0x00 0x01 0x02 0x03 Decryption Key Initialization Vector Argument Name Data Buffer Offset Data Length Number Number Argument Size [bytes] 0x01 0x01 0x01 0x01 Buffer offset in 16-byte The number of the AES...
  • Page 33 The Initialization Vector is used at the beginning to decrypt the first ciphertext. For each subsequent 16-byte block, instead of the Initialization Vector, the algorithm uses the ciphertext output of the previous 16-byte block decryption. The same AES Key is used for all blocks. When working with the Data Buffer during decryption the ciphertext is substituted with the corresponding plaintext.
  • Page 34: Read Value (0X0A)

    4.2.10 Read Value (0x0A) Command Number 0x0A Command Name Read Value Valid Tag Types Mifare Classic Argument Offset [bytes] 0x00 0x01 0x02 0x03 Authentication Key Argument Name Block Address Data Buffer Offset Authentication Key Number Argument Size [bytes] 0x01 0x01 0x01 0x06 The 6 least significant...
  • Page 35: Write Value (0X0B)

    4.2.11 Write Value (0x0B) Command Number 0x0B Command Name Write Value Mifare Classic Valid Tag Types Argument Offset [bytes] 0x00 0x01 0x05 0x06 0x07 Authentication Key Argument Name Block Address Value Stored Block Address Authentication Key Number Argument Size [bytes] 0x01 0x04 0x01...
  • Page 36: Increment Value (0X0C)

    4.2.12 Increment Value (0x0C) Command Number 0x0C Command Name Increment Value Valid Tag Types Mifare Classic Argument Offset [bytes] 0x00 0x01 0x05 0x06 Authentication Key Argument Name Block Address Delta Value Authentication Key Number Argument Size [bytes] 0x01 0x04 0x01 0x06 The 6 least significant bits define the...
  • Page 37: Decrement Value (0X0D)

    4.2.13 Decrement Value (0x0D) Command Number 0x0D Command Name Decrement Value Valid Tag Types Mifare Classic Argument Offset [bytes] 0x00 0x01 0x05 0x06 Authentication Key Argument Name Block Address Delta Value Authentication Key Number Argument Size [bytes] 0x01 0x04 0x01 0x06 The 6 least significant bits define the...
  • Page 38: Restore Value (0X0E)

    4.2.14 Restore Value (0x0E) Command Number 0x0E Command Name Restore Value Valid Tag Types Mifare Classic Argument Offset [bytes] 0x00 0x01 0x02 Authentication Key Argument Name Block Address Authentication Key Number 0x01 0x01 0x06 Argument Size [bytes] The 6 least significant bits define the Optional parameter Authentication Key...
  • Page 39: Transfer Value (0X0F)

    4.2.15 Transfer Value (0x0F) Command Number 0x0F Command Name Transfer Value Valid Tag Types Mifare Classic Argument Offset [bytes] 0x00 0x01 0x02 Authentication Key Argument Name Block Address Authentication Key Number 0x01 0x01 0x06 Argument Size [bytes] The 6 least significant bits define the Optional parameter Authentication Key...
  • Page 40: Recover Value (0X10)

    4.2.16 Recover Value (0x10) Command Number 0x10 Command Name Recover Value Valid Tag Types Mifare Classic Argument Offset [bytes] 0x00 0x01 0x02 0x03 Authentication Key Argument Name Block Address Data Buffer Offset Authentication Key Number 0x01 0x01 0x01 0x06 Argument Size [bytes] The 6 least significant bits define the Optional parameter...
  • Page 41: Get Version (0X11)

    4.2.17 Get Version (0x11) The Get Version command doesn’t take any arguments. This command can be used with Mifare Ultralight EV1, NTAG213, NTAG215 and NTAG216 tags. After successful reading, the first 8 bytes in the data buffer are filled with data defined by the NXP standard.
  • Page 42: Read Signature (0X12)

    4.2.18 Read Signature (0x12) The Read Signature command doesn’t take any arguments. This command can be used with Mifare Ultralight EV1, NTAG213, NTAG215 and NTAG216 tags. After successful reading, the first 32 bytes in the data buffer are filled with the ECC signature defined by the NXP standard.
  • Page 43 UID Configuration Parameter Value Description 0x00 Anti-collision and selection with the double size UID. Anti-collision and selection with the double size UID and optional 0x01 usage of a selection process shortcut. 0x02 Anti-collision and selection with a single size random ID. Anti-collision and selection with a single size NUID where the NUID is 0x03 calculated from the 7-byte UID.
  • Page 44: Read Counter (0X14)

    4.2.20 Read Counter (0x14) Command Number 0x14 Command Name Read Counter Ultralight EV1, NTAG213, NTAG215, NTAG216, Valid Tag Types NTAG213F, NTAG216F Argument Offset [bytes] 0x00 0x01 Argument Name Counter Number Data Buffer Offset Argument Size [bytes] 0x01 0x01 Buffer offset in bytes from where the Counter number counter value is to be...
  • Page 45: Increment Counter (0X15)

    4.2.21 Increment Counter (0x15) Command Number 0x15 Command Name Increment Counter Valid Tag Types Ultralight EV1 0x00 0x01 Argument Offset [bytes] Counter Number Increment Value Argument Name Argument Size [bytes] 0x01 0x03 24-bit unsigned integer value which will be Counter number added to the counter cannot exceed number Argument Description...
  • Page 46: Check Tearing Event (0X16)

    4.2.22 Check Tearing Event (0x16) Command Number 0x16 Command Name Check Tearing Event Valid Tag Types Ultralight EV1 0x00 0x01 Argument Offset [bytes] Counter Number Data Buffer Offset Argument Name Argument Size [bytes] 0x01 0x01 Buffer offset in bytes Counter number where the check result cannot exceed number will be stored.
  • Page 47: Password Authentication (0X17)

    4.2.23 Password Authentication (0x17) Command Number 0x17 Command Name Password Authentication Ultralight EV1, NTAG210, NTAG212, NTAG213, NTAG215, NTAG216, Valid Tag Types NTAG213F, NTAG216F 0x00 0x01 0x02 Argument Offset [bytes] Argument Name Data Buffer Offset Password Number Password Argument Size [bytes] 0x01 0x01 0x04...
  • Page 48: Halt (0X18)

    4.2.24 Halt (0x18) The Halt command takes no arguments. It halts the tag and turns off the RF field. It must be executed at the end of each operation on a tag to disable the antenna and reduce the power consumption. 4.2.25 Calculate CRC (0x19) 0x19 Command Number...
  • Page 49 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823, 0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b, 0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, 0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a, 0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, 0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49, 0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70, 0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a,...
  • Page 50: Copy Data (0X1A)

    CRC = CCITTCRCTable[Temp] ^ (CRC << 8); return CRC; 4.2.26 Copy Data (0x1A) Command Number 0x1A Copy Data Command Name Valid Tag Types Argument Offset [bytes] 0x00 0x02 0x02 Argument Name Destination Address Source Address Data Length Argument Size [bytes] 0x02 0x02 0x02...
  • Page 51: Lock (0X1C)

    The Unlock command takes as an argument an 8-bytes long password. If the password matches the actual password in the module the memory which contains: AES Initialization Vectors AES Encryption Keys Authentication Keys and Passwords User Memory Password will be unlocked and made accessible for read and write operations. 4.2.28 Lock (0x1C) This Function takes no arguments.
  • Page 52: Power Down Mode

    4.3 Power Down Mode The Power Down functionality is provided via the nPWRDN pin. This pin is configured as an input without any pull-up or pull-down resistors, thus it must be driven by the user. For normal operation, this pin should be connected to VCC or driven high.
  • Page 53: Communication Interface

    5.2 SPI Bus The RFID A1 Module provides a SPI slave bus. This is one of two buses provided by the module. It is the fastest communication option in the module. The high clock frequency together with simultaneous communication in both directions gives the fastest data exchange rate, but requires the most number of IO lines.
  • Page 54: Exchanging Data (Reading Or Reading And Writing)

    CLK1 CLK2 CLK3 CLK4 CLK5 CLK6 CLK7 CLK8 MOSI MISO Figure 5.1 As Figure 5.1 shows the clock idle state is high. On a falling edge of the clock the module switches the state of the data line (MISO) and on a rising edge of the clock the module samples the data line (MOSI). During transmission, the most significant bit is transmitted first.
  • Page 55: Command Processing

    MOSI line to be written to the module’s registers, then the third byte in the packet should have the value ‘0x01’. If the master sets this byte to value ‘0x00’, then the RFID A1 module will discard incoming data (will not store them) and just stream the data on the MISO line from the RFID A1 memory.
  • Page 56: I2C Bus

    5.3 I2C Bus The RFID A1 Module provides a I2C slave bus. The advantages of the I2C are that it requires only two lines to communicate and that multiple devices can be connected to the 2-wire same bus. The implementation of I2C in the module complies with the 7-bit addressing I2C standard, thus the timing diagrams for bit and frame representation will be omitted in this document.
  • Page 57: Reading From The Memory

    Starting from the fourth byte the data will be stored under the passed address value and the memory index will be automatically increased by one each time. When the RFID A1 module recognizes its I2C address it drives the nBUSY line low to inform the master that it is receiving the data.
  • Page 58: Mechanical

    6 Mechanical 6.1 Dimensions Drawing 1 Table 6.1...
  • Page 59: Recommended Footprint

    6.2 Recommended Footprint Drawing 2...

Table of Contents