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.
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. Tab le 2 lists the product codes that identify
current products.
Table 2.ST product code chart
BinaryDecimalSR product
00 00102SR176
00 00113SRIX4K
00 01004SRIX512
00 01106SRI512
Product code
Unique serial
number
00 01117SRI4K
00 110012SRT512
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
ImplementationAN2319
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
AN2319Application 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.
The follow-up processing of the UID is the same for all product types as shown in
Example 1.
6/8
AN2319Revision history
4 Revision history
Table 3.Document revision history
DateRevisionChanges
28-Feb-20061Initial release.
20-Jan-20092Table 2: ST product code chart updated.
7/8
AN2319
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.