beautypg.com

Detailed command descriptions, Table 5. error code matrix – Rainbow Electronics MAX66120 User Manual

Page 16

background image

REQUEST FLAGS

COMMAND

UID

(1 Byte)

2Bh

(8 Bytes)

REQUEST FLAGS

COMMAND

UID

BLOCK NUMBER

NEW BLOCK DATA

(1 Byte)

21h

(8 Bytes)

(1 Byte)

(8 Bytes)

RESPONSE

FLAGS

INFO

FLAGS

UID

DSFID

AFI

NUMBER OF

BLOCKS

MEMORY BLOCK

SIZE

IC REFERENCE

00h

0Fh

(8 Bytes)

(1 Byte)

(1 Byte)

12h

07h

(1 Byte)

MAX66120

ISO 15693-Compliant 1Kb Memory Fob

16

______________________________________________________________________________________

FAILING COMMANDS

ERROR DESCRIPTION

ERROR

CODE

G

e

t S

yst

em

In

fo

rm

a

ti

o

n

W

rit

e S

in

g

le

B

lo

ck

L

o

ck B

lo

ck

R

ead

S

in

g

le

B

lo

ck

R

e

a

d

M

u

lt

ip

le

B

lo

cks

Cu

s

to

m

R

ead

B

lo

ck

W

rit

e AF

I

L

o

ck A

F

I

Wr

it

e

D

S

F

ID

L

o

ck D

S

F

ID

Invalid block number

10h

Already locked

11h

Write access failed because block is locked

12h

Table 5. Error Code Matrix

Detailed Command Descriptions

In the request data graphics of this section, the UID
field is shaded to indicate that the inclusion of the UID
depends on the address mode.

Get System Information

The Get System Information command allows the mas-
ter to retrieve technical information about the
MAX66120. The IC reference code indicates the die
revision in hexadecimal format, such as A1h, A2h, B1h,
etc.

Write Single Block

The normal way to write data to the device is through
the Write Single Block command. This command uses

one command-specific parameter, which is the memory
block number. Valid block numbers are 00h to 11h.
Writing a block takes t

PROG

. The response is transmit-

ted after the memory is updated.

Depending on the protection settings of the memory
location to be updated, the MAX66120 manipulates
data as it arrives in a buffer. Upon receiving a Write
Single Block request for a write-protected location (e.g.,
a self-locking nibble or byte in memory block 11h), the
buffer is loaded with the data already in memory, rather
than the data transmitted in the request. Similarly, if the
target memory block is in EPROM mode, the buffer is
loaded with the bitwise logical AND of the transmitted
data and data already in memory. In all other cases, the
data sent by the master arrives in the buffer unaltered.

*

If this command is processed without any error, the slave responds with a response flags byte of 00h.

Request Data for the Get System Information Command

Response Data for the Get System Information Command (No Error)

Request Data for the Write Single Block Command*