Datasheet

MF1S5009 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2010. All rights reserved.
Product data sheet
PUBLIC
Rev. 3 — 27 July 2010
189131 12 of 32
NXP Semiconductors
MF1S5009
Mainstream contactless smart card IC
9.6.3 Sector trailer (block 3)
Each sector has a sector trailer containing the
secret keys A and B (optional), which return logical “0”s when read and
the access conditions for the four blocks of that sector, which are stored in bytes 6...9.
The access bits also specify the type (read/write or value) of the data blocks.
If key B is not needed, the last 6 bytes of block 3 can be used as data bytes.
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.
All keys are set to FFFFFFFFFFFF
h
at chip delivery.
9.7 Memory access
Before any memory operation can be carried out, the card has to be selected and
authenticated as described previously. The possible memory operations for an addressed
block depend on the key used and the access conditions stored in the associated sector
trailer.
Fig 9. Sector trailer
001aam20
6
151413121110987654321Byte Number 0
Key A Key B (optional)Access BitsDescription
Table 4. Memory operations
Operation Description Valid for Block Type
Read reads one memory block read/write, value and sector trailer
Write writes one memory block read/write, value and sector trailer
Increment increments the contents of a block and
stores the result in the internal data
register
value
Decrement decrements the contents of a block and
stores the result in the internal data
register
value
Transfer writes the contents of the internal data
register to a block
value
Restore reads the contents of a block into the
internal data register
value