ib technology
Manufacturer Block
The Manufacturer block is the first data block in Sector 0 and it contains the read-only serial
number (UID – Unique Identifier) and the IC manufacture information.
Serial Number (UID)
Manufacturer data
Byte:
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15
(xxxxxxx0)
MSB LSB
Check Byte
Data Blocks
Mifare sectors contain 3 blocks (1k card) or 15 blocks (upper half of 4k card) of 16 data bytes
(except Sector 0 that has Manufacturer Block and 2 data blocks). Data blocks can be
configured as standard read/write memory or “Value Blocks” for special electronic-purse
operations. “Value Blocks” can use additional commands such as Increment and Decrement
for direct control of the data field, they have a fixed data format which permits error
detection/correction and backup management. “VALUE” is a signed four byte integer (2’s
complement format) and is stored three times, twice non-inverted and once inverted. “ADR”
signifies a one byte address that can be used to store the block number. “ADR” is stored four
times, twice inverted and twice non-inverted.
Data Block
Byte:
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15
16 bytes of read/write memory for general use.
Value Block
Example format for value = 100 decimal (0x64), at block address 0.
(Value data stored LS byte first, ADR = block address, ADR = inverted block address)
0x64 00 00 00 9B FF FF FF 64 00 00 00 00 FF 00 FF
Byte:
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15
ADR ADR
Value
Inverted Value
Value
ADR ADR
Note that the ADR and inverted ADR block address is part of the required format for the
Value Data Structure BUT it is not changed by the Inc, Dec or Transfer commands and exists
to allow optional storage of block numbers. For general use, the 0x00 address and 0xFF
inverted address can be used to satisfy the structure format. The Inc, Dec and Transfer
commands first check the structure format before beginning the operations and the commands
fail if the format is not correct.
Value Data Structures must first be formatted as above using a WRITE Block command
before INC, DEC or TRANSFER commands can be used.
26