Memory card – atmel at88sc1608, Read_memory_card, Write_memory_card – ACS ACR38 SAM Smart Card Reader User Manual

Page 26

Advertising
background image

ACR38x – Reference Manual

[email protected]

Version 6.02

www.acs.com.hk

Page 26 of 40

9.2.2.4. Memory Card – ATMEL AT88SC1608

9.2.2.4.1. READ_MEMORY_CARD

Send Buffer Format

SCardTransmit Send Buffer

CLA INS Zone Address (P1) Byte Address (P2) MEM_L (P3)

FFh

Where:

INS

= B0h for reading user zone.
= B1h for reading configuration zone or reading fuse.

Zone Address = 0000 0A10A9A8b, where A10 is the MSB of zone address.

= don’t care for reading fuse.

Byte Address = A7A6A5A4 A3A2A1A0b is the memory address location of the memory

card.
= 1000 0000b for reading fuse.

MEM_L

Length of data to be read from the memory card.


Response Buffer Format

SCardTransmit Receive Buffer

BYTE 1 … … BYTE N SW1 SW2

Where:

BYTE x

Data read from memory card.

SW1 SW2 = 90 00h if no error.

9.2.2.4.2. WRITE_MEMORY_CARD

Send Buffer Format

SCardTransmit Send Buffer

CLA INS Zone Address (P1) Byte Address (P2) MEM_L (P3) Byte 1 .... .... Byte n

FFh

Where:

INS

= D0h for writing user zone.
= D1h for writing configuration zone or writing fuse.

Zone Address = 0000 0A10A9A8b, where A10 is the MSB of zone address.

= don’t care for writing fuse.

Byte Address = A7A6A5A4 A3A2A1A0b is the memory address location of the memory card.

= 1000 0000b for writing fuse.

MEM_L

Length of data to be written in the memory card.

Byte x

Data to be written to the memory card.

Advertising