Memory card command set, Memory card – 1, 2, 4, 8, and 16 kbit i2c card, Read_memory_card – ACS ACR38 SAM Smart Card Reader User Manual

Page 20

Advertising
background image

ACR38x – Reference Manual

[email protected]

Version 6.02

www.acs.com.hk

Page 20 of 40

9.2.2.

Memory Card Command Set

9.2.2.1. Memory Card – 1, 2, 4, 8, and 16 Kbit I2C Card

9.2.2.1.1. SELECT_PAGE_SIZE

This command will choose the page size to read the smart card. The default value is 8-byte page

write. It will reset to default value whenever the card is removed or the ACR38x is powered off.
Send Buffer Format

SCardTransmit Send Buffer

CLA

INS

P1

P2

Lc (P3) Page size

FFh

01h

00h

00h

01h

Where:

Page size = 03h for 8-byte page write.

= 04h for 16-byte page write.
= 05h for 32-byte page write.
= 06h for 64-byte page write.
= 07h for 128-byte page write.


Response Buffer Format

SCardTransmit Receive Buffer

SW1

SW2

Where:

SW1 SW2 = 90 00h if no error.

9.2.2.1.2. READ_MEMORY_CARD

Send Buffer Format

SCardTransmit Send Buffer

CLA

INS

Byte Address

MEM_L (P3)

MSB (P1) LSB (P2)

FFh

B0h

Where:

Byte Address

Memory address location of the memory card.

MEM_L

Length of data to be read from the memory card.


Response Data Format

SCardTransmit Receive Buffer

BYTE 1 … … BYTE N SW1 SW2

Advertising