Datasheet

MF1S50YYX All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved.
Product data sheet
COMPANY PUBLIC
Rev. 3.0 — 2 May 2011
196330 10 of 39
NXP Semiconductors
MF1S50yyX
MIFARE Classic 1K - Mainstream contactless smart card IC
Adr: Signifies a 1-byte address, which can be used to save the storage address of a
block, when implementing a powerful backup management. The address byte is
stored four times, twice inverted and non-inverted. During increment, decrement,
restore and transfer operations the address remains unchanged. It can only be
altered via a write command.
An example of a valid value block format for the decimal value 1234567d and the block
address 17d is shown in Table 4
. First, the decimal value has to be converted to the
hexadecimal representation of 0012D687h. The LSByte of the hexadecimal value is
stored in Byte 0, the MSByte in Byte 3. The bit inverted hexadecimal representation of the
value is FFED2978h where the LSByte is stored in Byte 4 and the MSByte in Byte 7.
The hexadecimal value of the address in the example is 11h, the bit inverted hexadecimal
value is EEh.
8.6.3 Sector trailer
The sector trailer is the last block (block 3) in one sector. Each sector has a sector trailer
containing the
secret keys A (mandatory) and B (optional), which return logical “0”s when read and
the access conditions for the blocks of that sector, which are stored in bytes 6...9. The
access bits also specify the type (data or value) of the data blocks.
If key B is not needed, the last 6 bytes of the sector trailer can be used as data bytes. The
access bits for the sector trailer have to be configured accordingly, see Section 8.7.2
.
Byte 9 of the sector trailer is available for user data. For this byte the same access rights
as for byte 6, 7 and 8 apply.
When the sector trailer is read, the key bytes are blanked out by returning logical zeros. If
key B is configured to be readable, the data stored in bytes 10 to 15 is returned, see
Section 8.7.2
.
All keys are set to FFFF FFFF FFFFh at chip delivery.
Fig 8. Value blocks
Table 4. Value block format example
Byte Number 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Description value value value adr adr adr adr
Values [hex] 84 D6 12 00 78 29 ED FF 84 D6 12 00 11 EE 11 EE
001aan01
8
151413121110987654321Byte Number 0
adradradradrvalue valuevalueDescription
Fig 9. Sector trailer
001aan01
3
151413121110987654321Byte Number 0
Key A Key B (optional)Access BitsDescription