ACR3801 – Reference Manual
Version 2.01
www.acs.com.hk
Page 47 of 62
command data field:
a)
Write
The byte value specified in the command is written to the specified address. This command
can be used for writing personalization data and counter values to the card.
b)
Write with carry
The byte value specified in the command is written to the specified address and the command
is sent to the card to erase the next lower counter stage. Thus, this write mode can only be
used for updating the counter value in the card.
c)
Write with backup enabled
(SLE 4436, SLE 5536 and SLE 6636 only)
The byte value specified in the command is written to the specified address. This command
can be used for writing personalization data and counter values to the card. Backup bit is
enabled to prevent data loss when card tearing occurs.
d)
Write with carry and backup enabled
(SLE 4436, SLE 5536 and SLE 6636 only)
The byte value specified in the command is written to the specified address and the command
is sent to the card to erase the next lower counter stage. Thus, this write mode can only be
used for updating the counter value in the card. Backup bit is enabled to prevent data loss
when card tearing occurs.
With all write modes, the byte at the specified card address is not erased prior to the write operation
and, hence, memory bits can only be programmed from '1' to '0'.
The backup mode available in the SLE 4436 and SLE 5536 card can be enabled or disabled in the
write operation.
Command Format (
abData
field in the
PC_to_RDR_XfrBlock
)
Pseudo-APDU
CLA INS
P1
Byte Address MEM_L MODE BYTE
FFh
D0h 00h
02h
Where:
Byte Address
= Memory address location of the memory card
MODE
Specifies the write mode and backup option
00h: Write
01h: Write with carry
02h: Write with backup enabled (SLE 4436, SLE 5536 and SLE 6636
only)
03h: Write with carry and with backup enabled (SLE 4436, SLE 5536 and
SLE 6636 only)
BYTE
Byte value to be written to the card
Response Data Format (
abData
field in the
RDR_to_PC_DataBlock
)
SW1 SW2
Where:
SW1 SW2
= 90 00h if no error