ACR3901T-W1 – Reference Manual
Version 1.02
www.acs.com.hk
Page 92 of 100
7.2.8.6.
VERIFY_MEMORY_CODE
This command is used to submit Memory Code (4 bytes) to the inserted card. Memory Code is used
to authorize the reloading of the user memory, together with the User Code.
The following actions are executed:
1. Present the specified code to the card.
2. Search a '1' bit in the presentation error counter and write the bit to '0'.
3. Erase the presentation error counter. Please note that Memory Error Counter cannot be
erased.
Command Format (
abData
field in the
PC_to_RDR_XfrBlock
)
Response Data Format (
abData
field in the
RDR_to_PC_DataBlock
)
SW1
SW2
Where:
SW1 SW2
= 90 00h if no error
= 63 00h if there are no more retries
Note: After SW1SW2 = 9000h has been received, read back the Application Area can check
if the VERIFY_MEMORY_CODE is correct. If all data in Application Area is erased and is
equal to “FFh,” the previous verification is successful.
Pseudo-APDU
CLA
INS
Error Counter
LEN
Byte
Address
MEM_L
CODE
Byte 1
Byte 2
Byte 3
Byte 4
FFh
20h
40h
28h
04h