Present_code_memory_card (sle 4428 and sle 5528) – ACS ACR38 SAM Smart Card Reader User Manual
Page 31
![background image](/manuals/248161/31/background.png)
ACR38x – Reference Manual
Version 6.02
www.acs.com.hk
Page 31 of 40
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 Address+N-1).
Response Buffer Format
SCardTransmit Receive Buffer
SW1
SW2
Where:
SW1 SW2 = 90 00h if no error.
9.2.2.5.5. PRESENT_CODE_MEMORY_CARD (SLE 4428 and SLE 5528)
This command is used to submit the secret code to the memory card to enable the write operation
with the SLE 4428 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
Send Buffer Format
SCardTransmit Send Buffer
CLA
INS
P1
P2
MEM_L (P3)
CODE
Byte 1 Byte 2
FFh
20h
00h
00h
02h
Where:
CODE
Two bytes secret code (PIN).
Response Buffer Format
ERRCNT
CODE
SW1 SW2
Byte 1 Byte 2
Where:
ERRCNT The value of the presentation error counter after the code presentation.
CODE
The two bytes secret code read from the card.
SW1 SW2 = 90 00h if no error.
If the correct code has been presented to the card, the value of ERRCNT is FFh and the value of
CODE is identical to the code data specified in the command.