AT88RF1354 SPI User Guide For CryptoRF
3.9.2
Example
String Decode > O000C Host sends twelve bytes thru microcontroller to AT88RF1354 serial port.
>
03
AT88RF1354 TX Data command.
>
08
Data bytes sent to PICC. In this example 8 bytes are sent to the PICC.
>
02
PARAM. Bits[2:0] select AT88RF1354 Communication Protocol Register 2 (CPR2).
>
00
Timeout. A $00 selects the Frame Waiting Interval defined during CPR initialization.
>
13
To PICC: Write Command. Upper nibble is CID assigned in ATTRIB command. Lower nibble is $3.
>
01
To PICC: ADDR H. Starting address. A $01 sets bit A8 to access memory locations above $FF.
>
00
To PICC: ADDR L. Starting address, lower address byte.
>
03
To PICC: "L". "L" is the number of bytes to write minus 1.
>
55
To PICC: Data 1.
>
66
To PICC: Data 2.
>
77
To PICC: Data "L"
>
88
To PICC: Data "L + 1"
Wait for AT88RF1354 ISTAT pin state.
ISTAT goes High.
The AT88RF1354 buffer has data ready. Data must be read before the next command can be issued.
>
I0006 Host gets six bytes from AT88RF1354 buffer.
>
00
AT88RF1354 Response: $00 (No RF communication error bits set in the EREG register).
>
03
AT88RF1354 Response: PICC response byte count.
>
02
AT88RF1354 Response: PARAM. Echo PARAM byte used in prior TX Data command.
>
13
PICC Response: Upper nibble is CID assigned in ATTRIB command. Lower nibble is $3.
>
00
PICC Response: PICC ACK/NACK. ACK is $00, the command executed correctly.
>
00
PICC Response: PICC status code. Status message $00 is no errors.
The AT88RF1354 automatically strips the RF communication CRC bytes.
ISTAT stays Low.
The AT88RF1354 buffer is empty. The AT88RF1354 will now accept a new command.
3.9.3
Operation
The Write User Zone (Large Memory) command operates identically to the standard Write User
Zone command, but utilizes a two byte address to support large memory sizes. The Write User
Zone command writes data into the device’s currently selected User Zone. As each byte is
clocked into the memory the lower address bits are internally incremented. The upper address
bits are not incremented, so the page address remains constant.
Write operations cannot cross page boundaries. A Write User Zone command can only write
data bytes within a single physical memory page. Attempts to write beyond the end of page
boundary will wrap to the beginning of the same page. Only PICCs in the Active State are
permitted to answer this command.
3-17
8586A—RFID—5/09