Write_Memory_Card; Write_Protection_Memory_Card - ACS ACR 38 Reference Manual

Smart card reader/writer
Table of Contents

Advertisement

Response data format
Header
Status
Data length
01
H
BYTE x
Data read from memory card
PROT y
Bytes containing the protection bits from protection memory
SW1, SW2 = 90
00
H
The arrangement of the protection bits in the PROT bytes is as follows:
PROT 1
P8
P7
P6
P5
P4
P3
Px is the protection bit of BYTE x in the response data
'0' byte is write protected
'1' byte can be written

WRITE_MEMORY_CARD

Command format
Header
Instruction
01
A0
H
Byte Address = A
A
7
6
LEN
= 5 + MEM_L
MEM_L
Length of data to be written to the memory card.
Byte x
Data to be written to the memory card.
Response data format
SW1, SW2 = 90
00
H

WRITE_PROTECTION_MEMORY_CARD

Each of the bytes 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'.
ACR38 Reference Manual
Version 2.2 January 2008
A C R 3 8 S m a r t C a r d R e a d e r / W r i t e r
BYTE 1
...
...
LEN
if no error
H
PROT 2
P2
P1
P16
P15
P14
P13
Data length
LEN
CLA
MSB
LSB
FF
H
H
A
A
A
A
A
A
is the memory address location of the memory card.
5
4
3
2
1
0 b
Header
Status
01
H
if no error
H
BYTE N
PROT 1
PROT 2
P12
P11
P10
P9
..
..
..
Data
INS
P1
Byte
MEM_L
Address
D0
00
H
H
Data length
SW1
SW2
LEN
PROT3
PROT 4
SW1
SW2
...
..
..
..
P18
P17
Byte 1
....
....
Byte N
Page 34 of 44

Advertisement

Table of Contents
loading

Table of Contents