Datasheet
NTAG203 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet
COMPANY PROPRIETARY
Rev. 3.0 — 17 October 2011
213830 11 of 30
NXP Semiconductors
NTAG203
NFC Forum Type 2 Tag compliant IC with 144 bytes user memory
8.5.2 Lock bytes
Lock bytes enable the user to lock parts of the complete memory area for writing. A Read
from user memory area cannot be restricted via lock bytes functionality.
The lock bytes functionality is enabled with a WRITE command (see Section 8.8.7
“WRITE”) or COMPATIBILITY WRITE command (see Section 8.8.8 “COMPATIBILITY
WRITE”), where 2 out of 4 bytes transmitted are used for setting the lock bytes. Two
corresponding bytes - either bytes 2 and 3 for page 02h or bytes 0 and 1 for page 28h -
and the actual content of the lock bytes are bit-wise “OR-ed”. The result of OR operation
becomes the new content of the lock bytes. Two unused bytes do not have to be
considered. Although included in the COMPATIBILITY WRITE or WRITE command, they
are ignored when programming the memory.
Due to the built-in bitwise OR operation, this process is irreversible. If a bit is set to “1”, it
cannot be changed back to “0” again. Therefore, before locking the lock bytes, the user
must ensure that the corresponding user memory area and/or configuration bytes are
correctly written.
The configuration written in the lock bytes is active upon the next REQA or WUPA
command.
The single bits of the 4 bytes available for locking incorporate 3 different functions:
• the read-only locking of the single pages or blocks of the user memory area
• the read-only locking of the single bytes of the configuration memory area
• the locking of the lock bits themselves
For the compatibility reasons, the first 64 bytes (512 bits) of the memory area have the
same functionality as MIFARE Ultralight (MF0ICU1, see also Ref. 7
), meaning that the two
lock bytes used for the configuration of this memory area are identically configured. The
mapping of single bits to memory area for the first 64 bytes (512 bits) is shown in Figure 6
.
The bits of byte 2 and 3 of page 02h represent the field-programmable read-only locking
mechanism. Each page x from 03h (OTP bits) to 0Fh may be locked individually to
prevent further write access by setting the corresponding locking bit Lx to 1. After locking
the page is read-only memory.
The 3 least significant bits of lock byte 0 of page 2 are the block-locking bits. Bit 2 handles
pages 0Fh to 0Ah, bit 1 pages 09h to 04h and bit 0 page 03h (OTP bits). Once the block
locking bits are set, the locking configuration for the corresponding memory area is frozen.
Table 6. Lock bytes
Name Page Function
Number Address
Lock byte 0 2 02h page and block locking
Lock byte 1 2 02h page locking
Lock byte 2 40 28h page and block locking
Lock byte 3 40 28h functionality and block locking