Write_memory_card, Write_protection_memory_card – ACS ACR38 SAM Smart Card Reader User Manual
Page 30

ACR38x – Reference Manual
Version 6.02
www.acs.com.hk
Page 30 of 40
Where:
BYTE x
Data read from the memory card.
SW1 SW2 = 90 00h if no error.
9.2.2.5.3. WRITE_MEMORY_CARD
Send Buffer Format
SCardTransmit Send Buffer
CLA INS
Byte Address
MEM_L (P3) Byte 1 .... .... Byte N
MSB (P1) LSB (P2)
FFh
D0h
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 written in the memory card.
Byte x
Data to be written in the memory card.
Response Buffer Format
SCardTransmit Receive Buffer
SW1
SW2
Where:
SW1 SW2 = 90 00h if no error.
9.2.2.5.4. 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 matches, the corresponding protection bit is irreversibly programmed
to ‘0’.
Send Buffer Format
SCardTransmit Send Buffer
CLA
INS
Byte Address
MEM_L (P3) Byte 1 .... .... Byte N
MSB (P1) LSB (P2)
FFh
D1h
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