ACR1281U-C1 – Application Programming Interface
Version 1.08
www.acs.com.hk
Page 45 of 96
5.1.8.6.
Verify memory code
This command submits memory code (4 bytes) to the inserted card. The 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.
Note: The Memory Error Counter cannot be erased.
Command
Where:
Error Counter LEN
(1 byte)
Length of presentation error counter in bits
Byte Address
(1 byte)
Byte address of the key in the card
Code
(4 bytes)
Memory Code
Response
Response
Data Out
Result
SW1
SW2
Where:
SW1 SW2
= 90 00h if the operation is completed successfully.
= 63 00h if there are no more retries left.
Note: After SW1 SW2 = 90 00h has been received, read back the User Error Counter to check
whether the Verify Memory Code is correct. If all data in Application Area is erased and is equal to
‘FFh’, the previous verification is successful.
Command
Class
INS
Error
Counter
LEN
Byte
Address
MEM_L
Code
Byte 1
Byte 2
Byte 3
Byte 4
Verify Memory
Code
FFh
20h
40h
28h
04h