ACR39x – Reference Manual
Version 1.03
www.acs.com.hk
Page 32 of 35
8.4.6.
WRITE_PROTECTION_MEMORY_CARD
Each byte specified in the command is internally in the card compared with the byte stored at the
specified address and if the data match, the corresponding protection bit is irreversibly programmed to
‘0’.
Command Format (
abData
field in the
PC_to_RDR_XfrBlock
)
Where:
Byte Address
= 000A
4
A
3
A
2
A
1
A
0
b (00h to 1Fh) is the protection memory address location of
the memory card.
MEM_L
Length of data to be written to the memory card.
Byte x
Byte values to be compared with the data in the card starting at Byte
Address. BYTE 1 is compared with the data at Byte Address; BYTE N is
compared with the data at (Byte A N - 1).
Response Data Format (
abData
field in the
RDR_to_PC_DataBlock
)
SW1
SW2
Where:
SW1 SW2
= 90 00h if no error.
8.4.7.
PRESENT_CODE_MEMORY_CARD (Only SLE4442 and SLE5542)
This command is used to submit the secret code to the memory card to enable the write operation
with the SLE4442 and SLE5542 card, the following actions are executed:
1. Search a ‘1’ bit in the presentation error counter and write the bit to ‘0’.
2. Present the specified code to the card.
3. Try to erase the presentation error counter.
Command Format (
abData
field in the
PC_to_RDR_XfrBlock
)
Pseudo-APDU
CLA
INS
P1
P2
MEM_L
CODE
Byte 1
Byte 2
Byte 3
FFh
20h
00h
00h
03h
Where:
CODE
Three bytes secret code (PIN).
Pseudo-APDU
CLA
INS
P1
Byte Address
MEM_L
Byte 1
.... ....
Byte N
FFh
D1h
00h