Eeprom commands, Eeprom_read_data, Eeprom_write_data – ACS AET63 BioTRUSTKey User Manual

Page 16

Advertising
background image

7.2. EEPROM Commands

7.2.1.

EEPROM_READ_DATA

This command is used to read the specified number of bytes from the specified address of the
EEPROM.

Command format

Instruction

Code

Data length

Data

ADDR

LEN

9A

H

03

H

ADDR

Byte address of first byte to be read from the EEPROM. The high byte of the address
is specified as the first byte of ADDR.

LEN

Number N of data bytes to be read from the EEPROM

(0 < N

≤ MAX_R)

Response data format

BYTE

1

BYTE

2

BYTE

3

...

...

BYTE

N

BYTE x

Data bytes read from the EEPROM memory

7.2.2.

EEPROM_WRITE_DATA

This command is used to write the specified data bytes to the specified address of the EEPROM.

Note: The EEPROM used in AET63 is 24C512, with a page size of 64 bytes. The page write and
page alignment are not done in the firmware, and these should be done in the driver or application.

Command format

Instruction

Code

Data length

Data

LEN

ADDR

BYTE 1

...

...

BYTE N

9B

H

LEN

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

ADDR

Byte address in the EEPROM 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 EEPROM 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

Document Title Here

Document Title Here

Document Title Here

AET63 Reference Manual

Version 2.2

Page 16 of 26

[email protected]

www.acs.com.hk

Advertising