SCR331-DI Product Technical Manual
4.5.7.1.5 ISO7816_VALUE_BLOCK
Description
This APDU is used for e-purse applications. This command notifies card to increment or decrement
value in particular block. Usually Mifare 1K/4K cards have two types of blocks called Data and Value
blocks. Initially all blocks are data block. If user wants to change one Data block to Value block, he
needs to write specific Value block format to that block. After that, user issues this APDU for value
manipulations like Value Increment, Value decrement commands.
Format
Command
CLA
INS
P1
P2
P3
Data
ISO7816_VALUE_BLOCK
0xFC
0xF0
Block No. Value
Param
Value
Bytes
Value, Block
No.
Explanation of the Parameters
Field
Value
Meaning
P1
Block number
This indicates the which value block number to be read
P2 Value
Increment
(0xC0)
Decrement
(0xC1)
This parameter indicates whether the value block needs to be incremented
or decremented.
P3
0x02
This contains Lc byte length
Data
Value, Block No.
Value and Block Number
Response
Data
None
Status Words
SW1
SW2
Description
90 00
On success, NO ERROR, else error code is returned, see status words table
N
ote
This command is used to increment, decrement value block in Mifare Type A memory cards.
Example
To Increment value 0x01 from block no. 0x3E
CLA
INS
P1
P2
P3
Data
0xFC
0xF0
0x3E 0xC0 0x02
0x01 0x3E
IND.SCR331-DI.MANUAL.VER.1.8
VER1.8
Page 23 of 36