Write_memory_card, Write_protection_memory_card – ACS ACR38K Smart Keyboard User Manual

Page 39

Advertising
background image

ACR38x (CCID) – Reference Manual

[email protected]

Version 6.04

www.acs.com.hk

Page 39 of 58

Where:

Px is the protection bit of BYTE x in the response data
‘0’ byte is write protected
‘1’ byte can be written

9.3.6.5. WRITE_MEMORY_CARD

Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS

P1

Byte Address MEM_L Byte 1 .... .... Byte N

FFh

D0h 00h

Where:

Byte Address

= A

7

A

6

A

5

A

4

A

3

A

2

A

1

A

0

b is the memory address location of the memory card

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 (abData field in the RDR_to_PC_DataBlock)

SW1 SW2

Where:

SW1 SW2 = 90 00h if no error

9.3.6.6.

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 match, the corresponding protection bit is irreversibly programmed to

‘0’.
Command Format (abData field in the PC_to_RDR_XfrBlock)

Pseudo-APDU

CLA INS

P1

Byte Address MEM_L Byte 1 .... .... Byte N

FFh

D1h 00h

Where:

Byte Address

= 000A

4

A

3

A

2

A

1

A

0

b (00h to 1Fh) is the protection memory address location of

the memory card

MEM_L

Length of data to be written to the memory card

Byte x

Byte values to be compared with the data in the card starting at Byte

Address. BYTE 1 is compared with the data at Byte Address; BYTE N is

compared with the data at (Byte Address+N-1).

Advertising