AN2319 Application note

Similar documents
AN3332 Application note

SPC5-FLASHER. Flash management tool for SPC56xx family. Description. Features

TN0023 Technical note

DDSL01. Secondary protection for DSL lines. Features. Description

EVL185W-LEDTV. 185 W power supply with PFC and standby supply for LED TV based on the L6564, L6599A and Viper27L. Features.

Single LNB supply and control IC DiSEqC 1.X compliant with EXTM based on the LNBH29 in a QFN16 (4x4) Description

AN3354 Application note

BD241A BD241C. NPN power transistors. Features. Applications. Description. NPN transistors. Audio, general purpose switching and amplifier transistors

BD238. Low voltage PNP power transistor. Features. Applications. Description. Low saturation voltage PNP transistor

2STBN15D100. Low voltage NPN power Darlington transistor. Features. Application. Description

AN4108 Application note

AN2389 Application note

AN2604 Application note

AN3998 Application note

ST High voltage fast-switching NPN power transistor. Features. Applications. Description

BD135 - BD136 BD139 - BD140

ULN2801A, ULN2802A, ULN2803A, ULN2804A

M24LRxx/CR95HF application software installation guide

AN2680 Application note

AN2866 Application note

Description. IO and RF AGC. ASIC controller and power management. Carrier recovery loop. GPIO switch matrix. Lock indicator and monitoring DVBS2 FEC

AN3353 Application note

AN4156 Application note

UM1676 User manual. Getting started with.net Micro Framework on the STM32F429 Discovery kit. Introduction

AN2824 Application note

ETP01-xx21. Protection for Ethernet lines. Features. Description. Applications. Benefits. Complies with the following standards

AN3110 Application note

EN: This Datasheet is presented by the m anufacturer. Please v isit our website for pricing and availability at ore.hu.

How To Write To An Eeprom Memory On A Flash Memory On An Iphone Or Ipro Memory On Microsoft Flash Memory (Eeprom) On A Microsoft Microsoft Powerbook (Ai) 2.2.2

Order code Temperature range Package Packaging

AN3265 Application note

DSL01-xxxSC5. Secondary protection for DSL lines. Features. Description. Applications. Benefits. Complies with the following standards

LM135-LM235-LM335. Precision temperature sensors. Features. Description

ESDLIN1524BJ. Transil, transient voltage surge suppressor diode for ESD protection. Features. Description SOD323

ULN2001, ULN2002 ULN2003, ULN2004

L78MxxAB L78MxxAC. Precision 500 ma regulators. Features. Description

BZW50. Transil, transient voltage surge suppressor (TVS) Features. Description

AN3359 Application note

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

LM337. Three-terminal adjustable negative voltage regulators. Features. Description

UM1613 User manual. 16-pin smartcard interface ST8034P demonstration board. Introduction

Description. Table 1. Device summary. Order code Temperature range Package Packaging Marking

Description. Table 1. Device summary

Getting started with DfuSe USB device firmware upgrade STMicroelectronics extension

STTH2R06. High efficiency ultrafast diode. Features. Description

MC Low noise quad operational amplifier. Features. Description

STEVAL-IEG001V2. Smart real-time vehicle tracking system. Features

AN4128 Application note

LM134-LM234-LM334. Three terminal adjustable current sources. Features. Description

STP60NF06FP. N-channel 60V Ω - 30A TO-220FP STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

STP60NF06. N-channel 60V Ω - 60A TO-220 STripFET II Power MOSFET. General features. Description. Internal schematic diagram.

ST19NP18-TPM-I2C. Trusted Platform Module (TPM) with I²C Interface. Features

SPC5-CRYP-LIB. SPC5 Software Cryptography Library. Description. Features. SHA-512 Random engine based on DRBG-AES-128

AN2557 Application note

STN3NF06L. N-channel 60 V, 0.07 Ω, 4 A, SOT-223 STripFET II Power MOSFET. Features. Application. Description

Table 1. Absolute maximum ratings (T amb = 25 C) Symbol Parameter Value Unit. ISO C = 330 pf, R = 330 Ω : Contact discharge Air discharge

UA741. General-purpose single operational amplifier. Features. Applications. Description. N DIP8 (plastic package)

STTH1R04-Y. Automotive ultrafast recovery diode. Features. Description

L6234. Three phase motor driver. Features. Description

Description. Table 1. Device summary. Order codes. TO-220 (single gauge) TO-220 (double gauge) D²PAK (tape and reel) TO-220FP

UM1790 User manual. Getting started with STM32L053 discovery kit software development tools. Introduction

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

AN2703 Application note

Description SO-8. series. Furthermore, in the 8-pin configuration Very low-dropout voltage (0.2 V typ.)

TDA W CAR RADIO AUDIO AMPLIFIER

AN3155 Application note

P6KE. Transil, transient voltage surge suppressor (TVS) Features. Description. Complies with the following standards

AN3270 Application note

AN2760 Application note

STP55NF06L STB55NF06L - STB55NF06L-1

UM1680 User manual. Getting started with STM32F429 Discovery software development tools. Introduction

AN3990 Application note

UM0109 USER MANUAL. Public Transport Ticketing Demo

AN2328 Application note

Obsolete Product(s) - Obsolete Product(s)

AN3252 Application note

STGB10NB37LZ STGP10NB37LZ

AN820 APPLICATION NOTE INPUT/OUTPUT PROTECTION FOR AUTOMOTIVE COMPUTER

AN4368 Application note

STP10NK80ZFP STP10NK80Z - STW10NK80Z

STB75NF75 STP75NF75 - STP75NF75FP

STTH110. High voltage ultrafast rectifier. Description. Features

TDA2004R W stereo amplifier for car radio. Features. Description

STDP2690. Advanced DisplayPort to DisplayPort (dual mode) converter. Features. Applications

Obsolete Product(s) - Obsolete Product(s)

AN1819 APPLICATION NOTE Bad Block Management in Single Level Cell NAND Flash Memories

STCS A max constant current LED driver. Features. Applications. Description

VN05N. High side smart power solid state relay PENTAWATT. Features. Description

STB4NK60Z, STB4NK60Z-1, STD4NK60Z STD4NK60Z-1, STP4NK60Z,STP4NK60ZFP

MC34063AB, MC34063AC, MC34063EB, MC34063EC

AN2146 APPLICATION NOTE

STCS1A. 1.5 A max constant current LED driver. Features. Applications. Description

AN886 APPLICATION NOTE

AN438 APPLICATION NOTE SAFETY PRECAUTIONS FOR DEVELOPMENT TOOL TRIAC + MICROCONTROLLER

VN03. ISO high side smart power solid state relay PENTAWATT. Features. Description.

LM2901. Low-power quad voltage comparator. Features. Description

STTH3R02QRL. Ultrafast recovery diode. Main product characteristics. Features and benefits. Description. Order codes DO-15 STTH3R02Q DO-201AD STTH3R02

AN3211 Application note

BTW N. 50 A 1200 V non insulated SCR thyristor. Description. Features. Applications

STRAFT-P98L15. Antenna tuner for cellular application. Features. Description. Applications. Benefits

Transcription:

Application note Using the 64-bit UID in contactless RFID applications Introduction All STMicroelectronics contactless memory products provide a 64-bit unique identifier (UID) for use with RFID applications. The 64-bit UID is a value written by STMicroelectronics during the manufacturing process and it is guaranteed unique for each contactless memory. This UID can be used by the final application system to identify each tag individually and also, depending on the recognized memory type, to modify memory access models and maps. This application note describes how STMicroelectronics handles the 64-bit UID and how applications can decode its value. January 2009 Rev 2 1/8 www.st.com

Contents AN2319 Contents 1 UID description............................................. 3 1.1 Unique serial number [41:0].................................... 3 1.2 Product code [47:42]......................................... 3 1.3 Silicon manufacturer code [55:48]............................... 3 1.4 Tag registration category [63:56]................................ 3 2 Implementation............................................. 4 3 Application examples........................................ 5 3.1 Example 1: high-level mnemonic source code...................... 5 3.2 Example 2: low-level mnemonic source code...................... 6 4 Revision history............................................ 7 2/8

UID description 1 UID description The 64-bit UID of STMicroelectronics provides a maximum of 2 42 (4,398,046,511,104) unique ID tags per family. Table 1. 64-bit unique identifier (UID) description Bits [63:56] [55:48] [47:42] [41:0] Size (bits) 8 8 6 42 Value Tag registration category (0xD0) Silicon manufacturer code (0x02) Product code Unique serial number 1.1 Unique serial number [41:0] These 42 bits are the traceable unique serial number. 1.2 Product code [47:42] These 6 bits store the STMicroelectronics product code. This code is unique for each tag family product and that is why it can be used by the contactless system to identify the product in the reader's antenna field. Once recognized, the contactless system knows the command set and available memory map. Table 2 lists the product codes that identify current products. Table 2. ST product code chart Binary Decimal SR product 00 0010 2 SR176 00 0011 3 SRIX4K 00 0100 4 SRIX512 00 0110 6 SRI512 00 0111 7 SRI4K 00 1100 12 SRT512 1.3 Silicon manufacturer code [55:48] This bit field identifies the Silicon manufacturer code. Value 0x02 is dedicated for STMicroelectronics in compliance with ISO 7816-6/AM1 specifications. 1.4 Tag registration category [63:56] This bit field corresponds to the Registration category for RFID applications. Value 0xD0 is attributed to ISO14443-B standard devices. 3/8

Implementation AN2319 2 Implementation The body of a loop (see Example 1) is used by a reader to detect and identify RFID tags. This loop starts by switching the reader RF output OFF and then back ON again. This safely resets any tags in the field and puts them in a READY state. By issuing the INITIATE() command, the tag enters ACTIVE (SR176) or INVENTORY (SRIxx) mode. A non-zero response to the INITIATE() command indicates the presence of a tag and enables the reader to obtain the ChipID. This ChipID is used as a link to the tag for the following SELECT() command. After a successful SELECT() command, the tag is ready for read / write operations. Once the value of the UID is known, the application can easily determine and set the important parameters for communication with the particular tag using the switch() statement shown in Example 1: high-level mnemonic source code. In certain applications and when using certain tags, it is necessary to identify the tag product type. In this case, it is recommended to first read the tag UID value (which contains the product type value) as shown in Example 2: low-level mnemonic source code. 4/8

Application examples 3 Application examples Acquiring the UID is quite easy when using high-level SRIxx tags, but additional actions are required when using low-level SR176 memories. After sending the INITIATE() and SELECT() command sequence to the tag(s), send a GET_UID() command to identify UID values. SRIxx tags directly return the UID after receiving the GET_UID() command, while SR176 tags do not reply to this command. If a tag is detected in the reader RF field but no reply is returned after a GET_UID() command, it is probably a SR176 tag. In this case, the reader must read a specific memory address to retrieve its UID as shown in Example 2. The example shown in Section 3.2 is the body of the CRX14_Get_UID() function used in Example 1. 3.1 Example 1: high-level mnemonic source code This is an example of a UID acquisition loop using a high-level mnemonic source code. UCHAR UID[8]; UCHAR blocksize, NoOfBlock, WriteblockAddress; /******************************************** **** Manage all SRxx ********************************************/ CRX14_Set_Param(0x00); //RF Off (accessing the Parameter Register of CRX14) CRX14_Set_Param(0x10); //RF On if (CRX14_Initiate()) // (INITIATE() command) { CRX14_Select(Chip_ID); (SELECT() command) CRX14_Get_UID(UID); if((uid[7]==0xd0)&&(uid[6]==0x02)) switch (((UID[5] & 0xFC)>>2)) { case 2: //SR176 blocksize=2; NoOfBlock=16; WriteblockAddress=4; break; } } case 3: //SRIX4K blocksize=4; NoOfBlock=128; WriteblockAddress=7; break; 5/8

Application examples AN2319 3.2 Example 2: low-level mnemonic source code This is an example of the body of a function used to acquire the UID using a low-level mnemonic source code. UCHAR buff[]; //actual copy of Input/Output Frame Register of CRX14 send_get_uid_command(); (GET_UID() command) if(buff[0]=0x0) //we may deal with SR176 { read_a(0); //common read function (READ_BLOCK() command) if(buff[0]!=0x0) { UID[0] = buff[1]; UID[1] = buff[2]; } } read_a(1); UID[2] = buff[1]; UID[3] = buff[2]; read_a(2); UID[4] = buff[1]; UID[5] = buff[2]; read_a(3); UID[6] = buff[1]; UID[7] = buff[2]; The follow-up processing of the UID is the same for all product types as shown in Example 1. 6/8

Revision history 4 Revision history Table 3. Document revision history Date Revision Changes 28-Feb-2006 1 Initial release. 20-Jan-2009 2 Table 2: ST product code chart updated. 7/8

Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries ( ST ) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. 2009 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com 8/8