NXP Semiconductors
MF1S50YYX_V1
MIFARE Classic EV1 1K - Mainstream contactless smart card IC for fast and easy solution development
MF1S50yyX_V1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Product data sheet Rev. 3.2 — 23 May 2018
COMPANY PUBLIC 279232 10 / 36
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] 87 D6 12 00 78 29 ED FF 87 D6 12 00 11 EE 11 EE
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 and the bytes 6, 7 and 8 are set to
FF0780h.
Figure 9. Sector trailer
8.7 Memory access
Before any memory operation can be done, the card has to be selected and
authenticated as described in Section 8.2. The possible memory operations for an
addressed block depend on the key used during authentication and the access
conditions stored in the associated sector trailer.
Table 5. 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 Transfer
Buffer
value
Decrement decrements the contents of a block and
stores the result in the internal Transfer
Buffer
value
NXP Semiconductors
MF1S50YYX_V1
MIFARE Classic EV1 1K - Mainstream contactless smart card IC for fast and easy solution development
MF1S50yyX_V1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Product data sheet Rev. 3.2 — 23 May 2018
COMPANY PUBLIC 279232 11 / 36
Operation Description Valid for Block Type
Transfer writes the contents of the internal
Transfer Buffer to a block
value and read/write
Restore reads the contents of a block into the
internal Transfer Buffer
value
8.7.1 Access conditions
The access conditions for every data block and sector trailer are defined by 3 bits, which
are stored non-inverted and inverted in the sector trailer of the specified sector.
The access bits control the rights of memory access using the secret keys A and B. The
access conditions may be altered, provided one knows the relevant key and the current
access condition allows this operation.
Remark: With each memory access the internal logic verifies the format of the access
conditions. If it detects a format violation the whole sector is irreversibly blocked.
Remark: In the following description the access bits are mentioned in the non-inverted
mode only.
The internal logic of the MF1S50yyX/V1 ensures that the commands are executed only
after a successful authentication.
Table 6. Access conditions
Access Bits Valid Commands Block Description
C1
3
, C2
3
, C3
3
read, write 3 sector trailer
C1
2
, C2
2
, C3
2
read, write, increment, decrement,
transfer, restore
2 data block
C1
1
, C2
1
, C3
1
read, write, increment, decrement,
transfer, restore
1 data block
C1
0
,C2
0
, C3
0
read, write, increment, decrement,
transfer, restore
0 data block
001aan003
151413121110987654321Byte Number
Description
0
Key A Key B (optional)Access Bits
user data
Byte 6 C2
3
C2
2
C2
1
C2
0
C1
3
C1
2
C1
1
C1
0
7Bit 6 5 4 3 2 1 0
Byte 7 C1
3
C1
2
C1
1
C1
0
C3
3
C3
2
C3
1
C3
0
Byte 8 C3
3
C3
2
C3
1
C3
0
C2
3
C2
2
C2
1
C2
0
Byte 9
Figure 10. Access conditions
NXP Semiconductors
MF1S50YYX_V1
MIFARE Classic EV1 1K - Mainstream contactless smart card IC for fast and easy solution development
MF1S50yyX_V1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Product data sheet Rev. 3.2 — 23 May 2018
COMPANY PUBLIC 279232 12 / 36
8.7.2 Access conditions for the sector trailer
Depending on the access bits for the sector trailer (block 3) the read/write access to the
keys and the access bits is specified as ‘never’, ‘key A’, ‘key B’ or key A|B’ (key A or key
B).
On chip delivery the access conditions for the sector trailers and key A are predefined
as transport configuration. Since key B may be read in the transport configuration, new
cards must be authenticated with key A. Since the access bits themselves can also be
blocked, special care has to be taken during the personalization of cards.
Table 7. Access conditions for the sector trailer
Access bits Access condition for
KEYA Access bits KEYB
Remark
C1 C2 C3 read write read write read write
0 0 0 never key A key A never key A key A Key B may be read
[1]
0 1 0 never never key A never key A never Key B may be read
[1]
1 0 0 never key B key A|B never never key B
1 1 0 never never key A|B never never never
0 0 1 never key A key A key A key A key A Key B may be read,
transport configuration
[1]
0 1 1 never key B key A|B key B never key B
1 0 1 never never key A|B key B never never
1 1 1 never never key A|B never never never
[1] For this access condition key B is readable and may be used for data
8.7.3 Access conditions for data blocks
Depending on the access bits for data blocks (blocks 0...2) the read/write access is
specified as ‘never’, ‘key A’, ‘key B’ or ‘key A|B’ (key A or key B). The setting of the
relevant access bits defines the application and the corresponding applicable commands.
Read/write block: the operations read and write are allowed.
Value block: Allows the additional value operations increment, decrement, transfer
and restore. With access condition ‘001’ only read and decrement are possible which
reflects a non-rechargeable card. For access condition ‘110’ recharging is possible by
using key B.
Manufacturer block: the read-only condition is not affected by the access bits setting!
Key management: in transport configuration key A must be used for authentication
Table 8. Access conditions for data blocks
Access bits Access condition for Application
C1 C2 C3 read write increment decrement,
transfer,
restore
0 0 0 key A|B key A|B key A|B key A|B transport
configuration
[1]

MF1S5031XDUD2/V1A

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
RFID Transponders MIFARE Classic EV1 1K - Mainstream contactless smart card IC for fast and easy solution development
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union