User guide
ACR38x – Reference Manual info@acs.com.hk
Version 6.02
www.acs.com.hk
Page 37 of 40
write operation.
Command Format
SCardTransmit SendBuffer
CLA INS P1 Byte Address MEM_L MODE BYTE
FFh D0h 00h 02h
Where:
Byte Address = Memory address location of the memory card.
LEN = 5 + MEM_L
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 in the card.
Response Data Format
SCardTransmit Receive Buffer
SW1 SW2
Where:
SW1 SW2 = 90 00h if no error.
9.2.2.7.3. PRESENT_CODE_MEMORY_CARD
This command is used to submit the secret code to the memory card to enable the card
personalization mode. The following actions are executed:
1. Search a '1' bit in the presentation counter and write the bit to '0'
2. Present the specified code to the card
The ACR38x does not try to erase the presentation counter after the code submission. This must be
done by the application software through a separate ‘Write with carry' command.
Command Format
SCardTransmit Send Buffer
CLA INS P1 P2 MEM_L
CODE
ADDR Byte 1 Byte 2 Byte 3
FFh 20h 00h 00h 04h
Where:
ADDR Byte address of the presentation counter in the card.
CODE Three bytes secret code (PIN).