Atmel AT88RF1354 Command Reference Manual
Hide thumbs Also See for AT88RF1354:

Advertisement

Quick Links

AT88RF1354
Command
Reference Guide
5150B—RFID—4/09

Advertisement

Table of Contents
loading

Summary of Contents for Atmel AT88RF1354

  • Page 1 AT88RF1354 Command Reference Guide 5150B—RFID—4/09...
  • Page 3: Table Of Contents

    3-10 RXC Register [$0F]....................3-11 Appendix A Initialization Procedure ......................A-1 Appendix B The SPI Serial Interface......................B-1 Appendix C The TWI Serial Interface......................C-1 Appendix D Index ............................D-1 Figure Index .........................D-1 Table Index ........................D-1 Revision History ......................D-3 AT88RF1354 Command User Guide 5150B—RFID—4/09...
  • Page 5: Section 1 Introduction

    Data is exchanged half duplex at a 106k bit per second rate. A two byte CRC_B provides communication error detection capability. The AT88RF1354 is compatible with 3.3 V and 5 V host microcontrollers with two-wire or SPI serial interfaces. In two-wire interface mode the AT88RF1354 operates as a TWI slave and requires four microcontroller pins for data communication and handshaking.
  • Page 6: Scope

    Scope This AT88RF1354 Command Reference Guide document includes all command and register information for the AT88RF1354 RF Reader. The RF Reader electrical specifications are described in the AT88RF1354 Specification document. Reference Designs and additional technical information is available in AT88RF1354 Application Notes and Other Documents. See www.atmel.com...
  • Page 7: Spi Command Format

    Each SPI serial interface command / response exchange between the Host microcontroller and AT88RF1354 is formatted as shown above in Figure 2. The bytes are shown in the order in which they are transmitted, with Host transmissions in the left column, and Reader transmissions in the right column.
  • Page 8: Twi Command Format

    Each TWI serial interface command / response exchange between the Host microcontroller and AT88RF1354 is formatted as shown in Figure 3. The bytes are shown in the order in which they are transmitted, with Host transmissions in the left column, and Reader transmissions in the right column.
  • Page 9: Ack/Nack Response Byte

    AT88RF1354 Command Reference Guide TWI Device Address The TWI device address is selected with the ADDR address select pin of the AT88RF1354. Table 1. TWI Device Address TWI Device Address ADDR TWI_R TWI_W Bit 6 Bit 5 Bit 4 Bit 3...
  • Page 11: Section 2 Instruction Set

    Transmit Data to PICC and Receive the Response Write Buffer Write Data Buffer Write Register Write Configuration Register All other command code values are NOT supported Commands in the following sections are listed in alphabetical order. AT88RF1354 Command User Guide 5150B—RFID—4/09...
  • Page 12: Abort Command [$0D]

    AT88RF1354 Command Reference Guide Abort Command This command aborts a command in progress and places the reader in the idle state. 2.1.1 SPI Command Format Host Reader Command > Wait for ISTAT ISTAT goes High Response > ACK/NACK ISTAT stays Low 2.1.2...
  • Page 13: Clear Command [$0E]

    AT88RF1354 Command Reference Guide Clear Command [$0E] This command aborts a command in progress, turns off the RF field, clears the RAM buffer, and places the reader in the idle state. 2.2.1 SPI Command Format Host Reader Command > Wait for ISTAT ISTAT goes High Response >...
  • Page 14: Poll Continuous Command [$02]

    AT88RF1354 Command Reference Guide Poll Continuous Command [$02] This command performs multiple Type B polling sequences to detect cards near the antenna. The first response is returned to the host. In the event a card response containing a communication error is received, then an error code is returned. If no response is detected, then polling continues until an Abort command is sent by the host.
  • Page 15 AT88RF1354 Command Reference Guide 2.3.2 TWI Command Format Host Reader TWI Address > TWI_W Command > PARAM Wait for ISTAT ISTAT goes High TWI Address > TWI_R Success Response > Error Reg ATQB 1 ATQB 2 ATQB 3 ATQB 4...
  • Page 16 AT88RF1354 Command Reference Guide 2.3.3 Operation The functionality of the Poll Continuous command is identical to the Poll Single command, except that after the final Slot-MARKER is sent, if no card response is received, the reader chip repeats the polling procedure. The Poll Continuous command is like an infinite loop of Poll Single commands that is broken when a card response (good or bad) is received.
  • Page 17 AT88RF1354 Command Reference Guide Table 4. Coding of N, number of slots to poll. Bit 2 Bit 1 Bit 0 Smart RFU: Reserved for Future Use. All RFU bits must contain 0 b. 2.3.6 Response Field Descriptions Error Register Contents: $00 indicates no errors.
  • Page 18: Poll Single Command [$01]

    AT88RF1354 Command Reference Guide Poll Single Command [$01] This command performs a single Type B polling sequence to detect cards near the antenna. The first response is returned to the host. In the event no error free response is detected, then an error code is returned.
  • Page 19 AT88RF1354 Command Reference Guide 2.4.2 TWI Command Format Host Reader TWI Address > TWI_W Command > PARAM Wait for ISTAT ISTAT goes High TWI Address > TWI_R Success Response > Error Reg ATQB 1 ATQB 2 ATQB 3 ATQB 4...
  • Page 20 AT88RF1354 Command Reference Guide 2.4.3 Operation This command performs one polling sequence with “N” slots using the ISO/IEC14443-3 Type B commands REQB, WUPB, and Slot-MARKER. The CPR0 default Communication Protocol settings are used by this command. A polling sequence consists of either an REQB or WUPB command, followed by the number of Slot-MARKER commands indicated by “N”.
  • Page 21: Read Buffer Command [$08]

    AT88RF1354 Command Reference Guide Read Buffer Command [$08] This command reads data from the RAM Buffer of the reader. 2.5.1 SPI Command Format Host Reader Command > Address “L” Wait for ISTAT ISTAT goes High Success Response > ACK/NACK Data 1 Data 2 ……..
  • Page 22 AT88RF1354 Command Reference Guide 2.5.2 TWI Command Format Host Reader TWI Address > TWI_W Command > Address “L” Wait for ISTAT ISTAT goes High TWI Address > TWI_R Success Response > ACK/NACK Data 1 Data 2 …… Data “L – 1”...
  • Page 23: Read Register Command [$07]

    AT88RF1354 Command Reference Guide Read Register Command [$07] This command reads the contents of the specified configuration register. 2.6.1 SPI Command Format Host Reader Command > Address Wait for ISTAT ISTAT goes High Success Response > ACK/NACK Data ISTAT stays Low ISTAT goes High Failure Response >...
  • Page 24 AT88RF1354 Command Reference Guide 2.6.3 Operation Read a reader configuration register. 2.6.4 Command Field Descriptions Address: Register address 2.6.5 Response Field Descriptions ACK: Acknowledge — the command executed correctly. NACK: Not Acknowledge — the command did not execute correctly. Data: Contents of the register.
  • Page 25: Rf Off Command [$0B]

    AT88RF1354 Command Reference Guide RF OFF Command [$0B] This command turns the 13.56 MHz RF field off. 2.7.1 SPI Command Format Host Reader Command > Wait for ISTAT ISTAT goes High Response > ACK/NACK ISTAT stays Low 2.7.2 TWI Command Format...
  • Page 26: Rf On Command [$0A]

    AT88RF1354 Command Reference Guide RF ON Command [$0A] This command turns the 13.56 MHz RF field on. 2.8.1 SPI Command Format Host Reader Command > Wait for ISTAT ISTAT goes High Response > ACK/NACK ISTAT stays Low 2.8.2 TWI Command Format...
  • Page 27: Sleep Command [$0C]

    AT88RF1354 Command Reference Guide Sleep Command [$0C] This command activates the standby mode. 2.9.1 SPI Command Format Host Reader Command > ISTAT stays Low 2.9.2 TWI Command Format Host Reader TWI Address > TWI_W Command > ISTAT stays Low 2.9.3 Operation The Sleep command places the reader into one of several standby modes.
  • Page 28: Tx Data Command [$03]

    AT88RF1354 Command Reference Guide 2.10 TX Data Command [$03] This command transmits data from the reader and waits for a response. 2.10.1 SPI Command Format Host Reader Command > “L” PARAM Timeout Data 1 Data 2 …… Data “L – 1”...
  • Page 29 AT88RF1354 Command Reference Guide 2.10.2 TWI Command Format Host Reader TWI Address > TWI_W Command > “L” PARAM Timeout Data 1 Data 2 …… Data “L – 1” Data “L” Wait for ISTAT ISTAT goes High TWI Address > TWI_R Success Response >...
  • Page 30 AT88RF1354 Command Reference Guide 2.10.4 Command Field Descriptions Length of data in bytes, except $00 is 256 bytes. PARAM: Contains the CPR and Length [2:0] fields. Figure 9. PARAM Byte Field Definitions. TX Data Command Bit 7 Bit 6 Bit 5...
  • Page 31: Write Buffer Command [$09]

    AT88RF1354 Command Reference Guide 2.11 Write Buffer Command [$09] This command writes data to the RAM buffer of the reader. 2.11.1 SPI Command Format Host Reader Command > Address “L” Data 1 Data 2 …… Data “L – 1” Data “L”...
  • Page 32 AT88RF1354 Command Reference Guide 2.11.2 TWI Command Format Host Reader TWI Address > TWI_W Command > Address “L” Data 1 Data 2 …… Data “L – 1” Data “L” Wait for ISTAT ISTAT goes High TWI Address > TWI_R Response >...
  • Page 33: Write Register Command [$06]

    AT88RF1354 Command Reference Guide 2.12 Write Register Command [$06] This command writes a value to the specified configuration register of the reader. 2.12.1 SPI Command Format Host Reader Command > Address Data Wait for ISTAT ISTAT goes High Response >...
  • Page 35: Section 3 Register Summary

    PLL Configuration Register Read / Write Transmitter Register Read / Write Receiver Register Read / Write All other register address values are NOT supported Registers in the following sections are listed in register address order. AT88RF1354 Command User Guide 5150B—RFID—4/09...
  • Page 36 AT88RF1354 Command Reference Guide Figure 10. Register Memory Map Register Definition Register Register Name Address Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 CPR0_L Reserved for future use CPR0_H CPR1_L Reserved for future use...
  • Page 37: Cpr0 Register [$00 / $01]

    AT88RF1354 Command Reference Guide CPR0 Register [$00 / $01] This read-only 16 bit register contains the standard ISO/IEC 14443 RF communication protocol settings. 3.1.1 Operation The built-in polling functions of the reader IC utilize the settings in CPR0 to configure the transmit and receive frames.
  • Page 38: Cpr Registers

    AT88RF1354 Command Reference Guide CPR Registers 1, 2, 3, 4 CPR1 Register [$02 / $03] CPR2 Register [$04 / $05] CPR3 Register [$06 / $07] CPR4 Register [$08 / $09] These read/write 16 bit registers are used to set the Timeout wait time for RF communications.
  • Page 39 AT88RF1354 Command Reference Guide 3.2.2 Registers Figure 13. CPRx_L register Definition. All Bits are RFU. Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Reserved for future use Default: Figure 14. CPRx_H Register Definition...
  • Page 40: Sreg Register [$0A]

    AT88RF1354 Command Reference Guide SREG Register ($0A) This read-only register reports the status of the reader. 3.3.1 Operation The state of the reader can be determined by reading this register. 3.3.2 Register Bit 7 Bit 6 Bit 5 Bit 4...
  • Page 41: Ereg Register [$0B]

    AT88RF1354 Command Reference Guide EREG Register [$0B] This read-only register reports RF communication errors. Not every bit is functional with every command. 3.4.1 Operation The contents of this register are returned in the error register field of a response to the host.
  • Page 42: Idr Register [$0C]

    AT88RF1354 Command Reference Guide IDR Register [$0C] This read-only register reports the hardware revision of the chip. 3.5.1 Operation The value of this register in hex corresponds to the IC hardware revision. This register is updated when the IC design is changed.
  • Page 43: Pll Register [$0D]

    AT88RF1354 Command Reference Guide PLL Register ($0D) This read/write register sets the configuration of the CLKO pin. 3.6.1 Operation The CLKO pin PLL generates a programmable output frequency on the CLKO pin for use by circuits external to the reader chip.
  • Page 44: Txc Register [$0E]

    AT88RF1354 Command Reference Guide TXC Register [$0E] This read/write register sets the transmit power and ASK modulation level. 3.7.1 Operation The transmit modulation index is set with the ML bits. The TXP bit selects between two RF output power levels.
  • Page 45: Rxc Register [$0F]

    AT88RF1354 Command Reference Guide RXC Register [$0F] This read/write register sets the receiver circuit gain and noise immunity. 3.8.1 Operation This register adjusts the receiver gain and noise immunity. The gain should be adjusted to the minimum level that provides good RF performance.
  • Page 46 AT88RF1354 Command Reference Guide Receiver Squelch. Adjust the receiver noise immunity. Typical Setting is $5 to $7. Table 14. Receiver Squelch Coding Receiver Noise Immunity Bit 3 Bit 2 Bit 1 Bit 0 Maximum High Moderate Minimum All other values are NOT supported...
  • Page 47: Appendix A Initialization Procedure

    Appendix A Initialization Procedure The procedure for initializing the AT88RF1354 RF Reader is outlined here, starting from power up. The same general procedure applies when the IC ResetB pin is toggled (starting at step 2). 1. Turn Power On to both Vcc and Vcc_Ant.
  • Page 49: Appendix B The Spi Serial Interface

    ISTAT will go low for 150 uS, then return high. ISTAT will remain high until the last bit of the byte is read, when it will return low. All data must be clocked out of the AT88RF1354 before it can receive a command.
  • Page 51: Appendix C The Twi Serial Interface

    The TWI Interface mode is selected by shorting the ISEL pin to Vss. Four microcontroller pins are required to operate AT88RF1354 in TWI mode. TWI ACK polling is not supported; the ISTAT signal is used for handshaking between the microcontroller and RF reader.
  • Page 52 AT88RF1354. The read bit should be set when retrieving response packets from AT88RF1354. Upon a successful compare of the device address, the AT88RF1354 will pull the SDI output low for 1 bit period, sending a TWI ACK bit. If an address compare is unsuccessful, the device will return to an idle state and the SDA / SDI line will remain pulled up by the external pull-up resistor, effectively sending a TWI NACK bit.
  • Page 53 Register Set Sorted by Address ..................3-1 Table 9. CPR Register Addresses ....................Table 10. Coding of Frame Waiting Time in FWI Field ..............Table 11. CLKO Rate Select bit Coding..................Table 12. Modulation Level Coding..................... 3-10 AT88RF1354 Command User Guide 5150B—RFID—4/09...
  • Page 54 AT88RF1354 Command Reference Guide Table 13. Receiver Gain Coding ....................3-11 Table 14. Receiver Squelch Coding.................... 3-12 Table 15. TWI Device Address..................... C- AT88RF1354 Command User Guide 5150B—RFID—4/09...
  • Page 55: Revision History

    AT88RF1354 Command Reference Guide Revision History Doc. Rev. Date Comments 5150A 3/2006 Initial document release. 5150B 12/2008 Document updated. AT88RF1354 Command User Guide 5150B—RFID—4/09...
  • Page 56 POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein.

Table of Contents