User guide

ACR38xReference Manual info@acs.com.hk
Version 6.02
www.acs.com.hk
Page 29 of 40
Response Buffer Format
SCardTransmit Receive Buffer
BYTE 1 BYTE N PROT 1 PROT L SW1 SW2
Where:
BYTE x Data read from memory card.
PROT y Bytes containing the protection bits of the data bytes read.
SW1 SW2 = 90 00h if no error.
The number L of protection bytes returned in the response is determined by the number N of data
bytes read from the card as follows:
L = 1 + INT(N/8)
The arrangement of the protection bits in the PROT bytes is as follows:
PROT 1 PROT 2
P8 P7 P6 P5 P4 P3 P2 P1 P16 P15 P14 P13 P12 P11 P10 P9 .. .. .. .. .. .. P18 P17
Where:
Px is the protection bit of BYTE x in the response data.
‘0’ byte is write protected.
‘1’ byte can be written.
9.2.2.5.2. READ_MEMORY_WITHOUT_PROTECT_BIT_CARD
Send Buffer Format
SCardTransmit Send Buffer
CLA INS
Byte Address
MEM_L (P3)
MSB (P1) LSB (P2)
FFh B2h
Where:
MSB Byte Address = 0000 00A9A8b is the memory address location of the memory
card.
LSB Byte Address = A7A6A5A4 A3A2A1A0b
is the memory address location of the
memory card.
MEM_L Length of data to be read from the memory card.
Response Buffer Format
SCardTransmit Receive Buffer
BYTE 1 BYTE N SW1 SW2