ACR3901U-S1 – Reference Manual
info@acs.com.hk
Version 1.09
www.acs.com.hk
Page 86 of 96
7.2.8.3.
WRITE_MEMORY_CARD
This command is used to write data to the specified address of the inserted card. The byte is written
to the card with LSB first, i.e., the bit at card address 0 is regarded as the LSB of byte 0.
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'.
Command Format (
abData
field in the
PC_to_RDR_XfrBlock
)
Pseudo-APDU
CLA
INS
P1
Byte Address
MEM_L
Byte 1
…
…
Byte N
FFh
D0h
00h
Where:
Byte Address
= Memory address location of the memory card
MEM_L
Length of data to be written to the memory card
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
7.2.8.4.
ERASE_SCRATCH_PAD_MEMORY_CARD
This command is used to erase the data of the scratch pad memory of the inserted card. All memory
bits inside the scratch pad memory will be programmed to the state of ‘1’.
To erase error counter or user area, please use the
VERIFY_USER_CODE
command as specified in
the
Command Format (
abData
field in the
PC_to_RDR_XfrBlock
)
Pseudo-APDU
CLA
INS
P1
Byte Address
MEM_L
FFh
D2h
00h
00h
Where:
Byte Address
= Memory byte address location of the scratch pad
Typical value is 02h