beautypg.com

Write_data (*), Write_protection (*), Acr30 – ACS ACK30 Smart Keyboard User Manual

Page 35

background image

ACR30 Reference Manual
Version 3.3 January 2009

Page 35 of 44

ACR30

'0' : byte is write protected

'1' : byte can be written

9.2.4.4.

WRITE_DATA (*)

To write the specified data bytes to the specified address of the card inserted.

Command format

Instruction

Code

Data length

Data

LEN

ADDR

BYTE

1

...

...

BYTE

N

91

H

LEN

Number of data bytes to be written to the card, N, + 2

ADDR

Byte address in the card of the first byte to be written. The high byte of the address is
specified as the first byte of ADDR.

BYTE x

Byte values to be written to the card starting at address ADDR. BYTE 1 is written to
address ADDR; BYTE N is written to address ADDR+N-1.


Response data format

No

response

data

9.2.4.5.

WRITE_PROTECTION (*)

To write the protection bits for the specified addresses in the 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 match, the corresponding protection bit is irreversibly
programmed to '0'.

Command format

Instructio
n Code

Data
length

Data

LEN

ADDR

BYTE
1

...

...

BYTE
N

94

H

LEN

Number of data bytes to be write protected, N, + 2

ADDR

Byte address in the card of the first byte to be write protected. The high byte of the
address is specified as the first byte of ADDR.

BYTE x

Byte values to be compared with the data in the card starting at address ADDR. BYTE 1
is compared with the data at address ADDR; BYTE N is compared with the data at
address ADDR+N-1.


Response data format

No

response

data