0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
PN512

PN512

  • 厂商:

    NXP(恩智浦)

  • 封装:

  • 描述:

    PN512 - Transmission module Integrated data mode detector - NXP Semiconductors

  • 数据手册
  • 价格&库存
PN512 数据手册
PN512 Transmission module Rev. 3.7 — 18 May 2011 111337 Product data sheet COMPANY PUBLIC 1. Introduction This document describes the functionality and electrical specifications of the transceiver IC PN512. 2. General description The PN512 is a highly integrated transceiver IC for contactless communication at 13.56 MHz. This transceiver IC utilizes an outstanding modulation and demodulation concept completely integrated for different kinds of contactless communication methods and protocols at 13.56 MHz. The PN512 transceiver ICs support 4 different operating modes • • • • Reader/Writer mode supporting ISO/IEC 14443A/MIFARE and FeliCa scheme Reader/Writer mode supporting ISO/IEC 14443B Card Operation mode supporting ISO/IEC 14443A/MIFARE and FeliCa scheme NFCIP-1 mode Enabled in Reader/Writer mode for ISO/IEC 14443A/MIFARE, the PN512’s internal transmitter part is able to drive a reader/writer antenna designed to communicate with ISO/IEC 14443A/ MIFARE cards and transponders without additional active circuitry. The receiver part provides a robust and efficient implementation of a demodulation and decoding circuitry for signals from ISO/IEC 14443A/MIFARE compatible cards and transponders. The digital part handles the complete ISO/IEC 14443A framing and error detection (Parity & CRC). The PN512 supports MIFARE 1K or MIFARE 4K emulation products. The PN512 supports contactless communication using MIFARE higher transfer speeds up to 424 kbit/s in both directions. Enabled in Reader/Writer mode for FeliCa, the PN512 transceiver IC supports the FeliCa communication scheme. The receiver part provides a robust and efficient implementation of the demodulation and decoding circuitry for FeliCa coded signals. The digital part handles the FeliCa framing and error detection like CRC. The PN512 supports contactless communication using FeliCa Higher transfer speeds up to 424 kbit/s in both directions. The PN512 supports all layers of the ISO/IEC 14443B reader/writer communication scheme, given correct implementation of additional components, like oscillator, power supply, coil etc. and provided that standardized protocols, e.g. like ISO/IEC 14443-4 and/or ISO/IEC 14443B anticollision are correctly implemented. NXP Semiconductors PN512 Transmission module In Card Operation mode, the PN512 transceiver IC is able to answer to a reader/writer command either according to the FeliCa or ISO/IEC 14443A/MIFARE card interface scheme. The PN512 generates the digital load modulated signals and in addition with an external circuit the answer can be sent back to the reader/writer. A complete card functionality is only possible in combination with a secure IC using the S2C interface. Additionally, the PN512 transceiver IC offers the possibility to communicate directly to an NFCIP-1 device in the NFCIP-1 mode. The NFCIP-1 mode offers different communication mode and transfer speeds up to 424 kbit/s according to the Ecma 340 and ISO/IEC 18092 NFCIP-1 Standard. The digital part handles the complete NFCIP-1 framing and error detection. Various host controller interfaces are implemented: • • • • 8-bit parallel interface1 SPI interface serial UART (similar to RS232 with voltage levels according pad voltage supply) I2C interface. A purchaser of this NXP IC has to take care for appropriate third party patent licenses. 1. PN512 8-bit parallel Interface only available in HVQFN40 package. All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 2 of 125 NXP Semiconductors PN512 Transmission module 3. Features and benefits Highly integrated analog circuitry to demodulate and decode responses Buffered output drivers for connecting an antenna with the minimum number of external components Integrated RF Level detector Integrated data mode detector Supports ISO/IEC 14443 A/MIFARE Supports ISO/IEC 14443 B Read/Write modes Typical operating distance in Read/Write mode up to 50 mm depending on the antenna size and tuning Typical operating distance in NFCIP-1 mode up to 50 mm depending on the antenna size and tuning and power supply Typical operating distance in ISO/IEC 14443A/MIFARE card or FeliCa Card Operation mode of about 100 mm depending on the antenna size and tuning and the external field strength Supports MIFARE 1K or MIFARE 4K emulation encryption in Reader/Writer mode ISO/IEC 14443A higher transfer speed communication at 212 kbit/s and 424 kbit/s Contactless communication according to the FeliCa scheme at 212 kbit/s and 424 kbit/s Integrated RF interface for NFCIP-1 up to 424 kbit/s S2C interface Additional power supply to directly supply the smart card IC connected via S2C Supported host interfaces SPI up to 10 Mbit/s I2C-bus interface up to 400 kBd in Fast mode, up to 3400 kBd in High-speed mode RS232 Serial UART up to 1228.8 kBd, with voltage levels dependant on pin voltage supply 8-bit parallel interface with and without Address Latch Enable FIFO buffer handles 64 byte send and receive Flexible interrupt modes Hard reset with low power function Power-down mode per software Programmable timer Internal oscillator for connection to 27.12 MHz quartz crystal 2.5 V to 3.6 V power supply CRC coprocessor Programmable I/O pins Internal self-test PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 3 of 125 NXP Semiconductors PN512 Transmission module 4. Quick reference data Table 1. Symbol VDDA VDDD Quick reference data Parameter analog supply voltage digital supply voltage Conditions VDD(PVDD) ≤ VDDA = VDDD = VDD(TVDD); VSSA = VSSD = VSS(PVSS) = VSS(TVSS) = 0 V [1][2] Min 2.5 Typ - Max 3.6 Unit V VDD(TVDD) TVDD supply voltage VDD(PVDD) PVDD supply voltage VDD(SVDD) SVDD supply voltage Ipd power-down current VSSA = VSSD = VSS(PVSS) = VSS(TVSS) = 0 V VDDA = VDDD = VDD(TVDD) = VDD(PVDD) = 3 V hard power-down; pin NRSTPD set LOW soft power-down; RF level detector on IDDD IDDA digital supply current analog supply current pin DVDD; VDDD = 3 V pin AVDD; VDDA = 3 V, CommandReg register’s RcvOff bit = 0 pin AVDD; receiver switched off; VDDA = 3 V, CommandReg register’s RcvOff bit = 1 IDD(PVDD) IDD(TVDD) Tamb [1] [2] [3] [4] [5] [6] [7] [8] [4] [4] [3] 1.6 1.6 - 6.5 7 3 60 3.6 3.6 5 10 9 10 5 40 100 +85 V V μA μA mA mA mA mA mA °C PVDD supply current TVDD supply current ambient temperature pin PVDD pin TVDD; continuous wave HVQFN32, HVQFN40 [5] [6][7][8] −30 Supply voltages below 3 V reduce the performance in, for example, the achievable operating distance. VDDA, VDDD and VDD(TVDD) must always be the same voltage. VDD(PVDD) must always be the same or lower voltage than VDDD. Ipd is the total current for all supplies. IDD(PVDD) depends on the overall load at the digital pins. IDD(TVDD) depends on VDD(TVDD) and the external circuit connected to pins TX1 and TX2. During typical circuit operation, the overall current is below 100 mA. Typical value using a complementary driver configuration and an antenna matched to 40 Ω between pins TX1 and TX2 at 13.56 MHz. 5. Ordering information Table 2. Ordering information Package Name PN5120A0HN1/C2 PN5120A0HN/C2 HVQFN32 HVQFN40 Description plastic thermal enhanced very thin quad flat package; no leads; 32 terminal; body 5 × 5 × 0.85 mm plastic thermal enhanced very thin quad flat package; no leads; 40 terminals; body 6 × 6 × 0.85 mm Version SOT617-1 SOT618-1 Type number PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 4 of 125 NXP Semiconductors PN512 Transmission module 6. Block diagram The analog interface handles the modulation and demodulation of the analog signals according to the Card Receiving mode, Reader/Writer mode and NFCIP-1 mode communication scheme. The RF level detector detects the presence of an external RF-field delivered by the antenna to the RX pin. The Data mode detector detects a MIFARE, FeliCa or NFCIP-1 mode in order to prepare the internal receiver to demodulate signals, which are sent to the PN512. The communication (S2C) interface provides digital signals to support communication for transfer speeds above 424 kbit/s and digital signals to communicate to a secure IC. The contactless UART manages the protocol requirements for the communication protocols in cooperation with the host. The FIFO buffer ensures fast and convenient data transfer to and from the host and the contactless UART and vice versa. Various host interfaces are implemented to meet different customer requirements. REGISTER BANK ANTENNA ANALOG INTERFACE CONTACTLESS UART FIFO BUFFER SERIAL UART SPI I2C-BUS HOST 001aaj627 Fig 1. Simplified block diagram of the PN512 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 5 of 125 NXP Semiconductors PN512 Transmission module D2/ADR_4 SDA/NSS/RX 24 EA 32 I2C 1 D1/ADR_5 25 D6/ADR_0/ D4/ADR_2 MOSI/MX D5/ADR_1/ D7/SCL/ D3/ADR_3 SCK/DTRQ MISO/TX 27 28 29 30 31 PVDD PVSS 2 5 VOLTAGE MONITOR AND POWER ON DETECT 3 4 15 18 26 DVDD DVSS AVDD AVSS SPI, UART, I2C-BUS INTERFACE CONTROL FIFO CONTROL STATE MACHINE 64-BYTE FIFO BUFFER COMMAND REGISTER RESET CONTROL PROGRAMABLE TIMER CONTROL REGISTER BANK INTERRUPT CONTROL POWER-DOWN CONTROL 6 NRSTPD 23 IRQ MIFARE CLASSIC UNIT CRC16 GENERATION AND CHECK RANDOM NUMBER GENERATOR PARALLEL/SERIAL CONVERTER BIT COUNTER PARITY GENERATION AND CHECK FRAME GENERATION AND CHECK BIT DECODING BIT ENCODING 7 SERIAL DATA SWITCH 8 9 21 OSCILLATOR 22 OSCOUT MFIN MFOUT SVDD OSCIN AMPLITUDE RATING REFERENCE VOLTAGE ANALOG TO DIGITAL CONVERTER CLOCK GENERATION, FILTERING AND DISTRIBUTION Q-CLOCK GENERATION TEMPERATURE SENSOR ANALOG TEST MULTIPLEXOR AND DIGITAL TO ANALOG CONVERTER I-CHANNEL AMPLIFIER I-CHANNEL DEMODULATOR Q-CHANNEL AMPLIFIER TRANSMITTER CONTROL Q-CHANNEL DEMODULATOR 16 19 20 17 RX 10, 14 TVSS 11 TX1 13 TX2 12 TVDD 001aak602 VMID AUX1 AUX2 Fig 2. Detailed block diagram of the PN512 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 6 of 125 NXP Semiconductors PN512 Transmission module 7. Pinning information 7.1 Pinning 31 D7 30 D6 29 D5 28 D4 27 D3 26 D2 25 D1 24 ALE 23 IRQ 22 OSCOUT 21 OSCIN 20 AUX2 19 AUX1 18 AVSS 17 RX TVSS 10 TX1 11 TVDD 12 TX2 13 TVSS 14 AVDD 15 VMID 16 32 D1 31 D0 30 NCS 29 ALE 28 NRD 27 NWR 26 IRQ 25 OSCOUT 24 OSCIN 23 AUX2 22 AUX1 21 AVSS SIGOUT 11 SVDD 12 TVSS 13 TX1 14 TVDD 15 TX2 16 TVSS 17 AVDD 18 VMID 19 RX 20 001aan213 001aan212 A1 PVDD DVDD DVSS PVSS NRSTPD SIGIN SIGOUT 1 2 3 4 5 6 7 8 9 32 A0 terminal 1 index area PN512 SVDD terminal 1 index area A2 A3 A4 A5 PVDD DVDD DVSS PVSS NRSTPD 1 2 3 4 5 6 7 8 9 Transparent top view Fig 3. Pinning configuration HVQFN32 (SOT617-1) 38 D7 37 D6 36 D5 35 D4 34 D3 PN512 SIGIN 10 Transparent top view Fig 4. Pinning configuration HVQFN40 (SOT618-1) PN512 All information provided in this document is subject to legal disclaimers. 33 D2 40 A1 39 A0 © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 7 of 125 NXP Semiconductors PN512 Transmission module 7.2 Pin description Table 3. Pin 1 2 3 4 5 6 Pin description HVQFN32 Symbol A1 PVDD DVDD DVSS PVSS NRSTPD Type I PWR PWR PWR PWR I Description Address Line Pad power supply Digital Power Supply Digital Ground Pad power supply ground Not Reset and Power Down: When LOW, internal current sinks are switched off, the oscillator is inhibited, and the input pads are disconnected from the outside world. With a positive edge on this pin the internal reset phase starts. Communication Interface Input: accepts a digital, serial data stream Communication Interface Output: delivers a serial data stream S2C Pad Power Supply: provides power to the S2C pads Transmitter Ground: supplies the output stage of TX1 and TX2 Transmitter 1: delivers the modulated 13.56 MHz energy carrier Transmitter Power Supply: supplies the output stage of TX1 and TX2 Transmitter 2: delivers the modulated 13.56 MHz energy carrier Transmitter Ground: supplies the output stage of TX1 and TX2 Analog Power Supply Internal Reference Voltage: This pin delivers the internal reference voltage. Receiver Input Analog Ground Auxiliary Outputs: These pins are used for testing. Crystal Oscillator Input: input to the inverting amplifier of the oscillator. This pin is also the input for an externally generated clock (fosc = 27.12 MHz). Crystal Oscillator Output: Output of the inverting amplifier of the oscillator. Interrupt Request: output to signal an interrupt event Address Latch Enable: signal to latch AD0 to AD5 into the internal address latch when HIGH. 8-bit Bi-directional Data Bus. Remark: An 8-bit parallel interface is not available. Remark: If the host controller selects I2C as digital host controller interface, these pins can be used to define the I2C address. Remark: For serial interfaces this pins can be used for test signals or I/Os. 32 A0 I Address Line 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 to 31 SIGIN SIGOUT SVDD TVSS TX1 TVDD TX2 TVSS AVDD VMID RX AVSS AUX1 AUX2 OSCIN OSCOUT IRQ ALE D1 to D7 I O PWR PWR O PWR O PWR PWR PWR I PWR O O I O O I I/O PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 8 of 125 NXP Semiconductors PN512 Transmission module Table 4. Pin 1 to 4 5 6 7 8 9 Pin description HVQFN40 Symbol A2 to A5 PVDD DVDD DVSS PVSS NRSTPD Type I PWR PWR PWR PWR I Description Address Line Pad power supply Digital Power Supply Digital Ground Pad power supply ground Not Reset and Power Down: When LOW, internal current sinks are switched off, the oscillator is inhibited, and the input pads are disconnected from the outside world. With a positive edge on this pin the internal reset phase starts. Communication Interface Input: accepts a digital, serial data stream Communication Interface Output: delivers a serial data stream S2C Pad Power Supply: provides power to the S2C pads Transmitter Ground: supplies the output stage of TX1 and TX2 Transmitter 1: delivers the modulated 13.56 MHz energy carrier Transmitter Power Supply: supplies the output stage of TX1 and TX2 Transmitter 2: delivers the modulated 13.56 MHz energy carrier Transmitter Ground: supplies the output stage of TX1 and TX2 Analog Power Supply Internal Reference Voltage: This pin delivers the internal reference voltage. Receiver Input Analog Ground Auxiliary Outputs: These pins are used for testing. Crystal Oscillator Input: input to the inverting amplifier of the oscillator. This pin is also the input for an externally generated clock (fosc = 27.12 MHz). Crystal Oscillator Output: Output of the inverting amplifier of the oscillator. Interrupt Request: output to signal an interrupt event Not Write: strobe to write data (applied on D0 to D7) into the PN512 register Not Read: strobe to read data from the PN512 register (applied on D0 to D7) Address Latch Enable: signal to latch AD0 to AD5 into the internal address latch when HIGH. Not Chip Select: selects and activates the host controller interface of the PN512 8-bit Bi-directional Data Bus. Remark: For serial interfaces this pins can be used for test signals or I/Os. Remark: If the host controller selects I2C as digital host controller interface, these pins can be used to define the I2C address. 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 to 38 SIGIN SIGOUT SVDD TVSS TX1 TVDD TX2 TVSS AVDD VMID RX AVSS AUX1 AUX2 OSCIN OSCOUT IRQ NWR NRD ALE NCS D0 to D7 I O PWR PWR O PWR O PWR PWR PWR I PWR O O I O O I I I I I/O 39 to 40 A0 to A1 I Address Line PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 9 of 125 NXP Semiconductors PN512 Transmission module 8. Functional description The PN512 transmission module supports the Read/Write mode for ISO/IEC 14443 A/MIFARE and ISO/IEC 14443 B using various transfer speeds and modulation protocols. PN512 transceiver IC supports the following operating modes: • Reader/Writer mode supporting ISO/IEC 14443A/MIFARE and FeliCa scheme • Card Operation mode supporting ISO/IEC 14443A/MIFARE and FeliCa scheme • NFCIP-1 mode The modes support different transfer speeds and modulation schemes. The following chapters will explain the different modes in detail. Note: All indicated modulation indices and modes in this chapter are system parameters. This means that beside the IC settings a suitable antenna tuning is required to achieve the optimum performance. BATTERY PN512 MICROCONTROLLER ISO/IEC 14443 A CARD contactless card reader/writer 001aan218 Fig 5. PN512 Read/Write mode 8.1 ISO/IEC 14443 A/MIFARE functionality The physical level communication is shown in Figure 6. (1) ISO/IEC 14443 A READER ISO/IEC 14443 A CARD (2) 001aan219 PN512 Fig 6. ISO/IEC 14443 A/MIFARE Read/Write mode communication diagram The physical parameters are described in Table 4. Table 5. Communication overview for ISO/IEC 14443 A/MIFARE reader/writer Signal type reader side modulation bit encoding bit length Transfer speed 106 kBd 100 % ASK modified Miller encoding 128 (13.56 μs) 212 kBd 100 % ASK modified Miller encoding 64 (13.56 μs) 424 kBd 100 % ASK modified Miller encoding 32 (13.56 μs) Communication direction Reader to card (send data from the PN512 to a card) PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 10 of 125 NXP Semiconductors PN512 Transmission module Communication overview for ISO/IEC 14443 A/MIFARE reader/writer …continued Signal type card side modulation subcarrier frequency bit encoding Transfer speed 106 kBd subcarrier load modulation 13.56 MHz/16 Manchester encoding 212 kBd subcarrier load modulation 13.56 MHz/16 BPSK 424 kBd subcarrier load modulation 13.56 MHz/16 BPSK Table 5. Communication direction Card to reader (PN512 receives data from a card) The PN512’s contactless UART and dedicated external host must manage the complete ISO/IEC 14443 A/MIFARE protocol. Figure 7 shows the data coding and framing according to ISO/IEC 14443 A/MIFARE. ISO/IEC 14443 A framing at 106 kBd start 8-bit data start bit is 1 odd parity 8-bit data odd parity 8-bit data odd parity ISO/IEC 14443 A framing at 212 kBd, 424 kBd and 848 kBd start 8-bit data start bit is 0 burst of 32 subcarrier clocks odd parity 8-bit data odd parity 8-bit data even parity even parity at the end of the frame 001aak585 Fig 7. Data coding and framing according to ISO/IEC 14443 A The internal CRC coprocessor calculates the CRC value based on ISO/IEC 14443 A part 3 and handles parity generation internally according to the transfer speed. Automatic parity generation can be switched off using the ManualRCVReg register’s ParityDisable bit. 8.2 ISO/IEC 14443 B functionality The MFRC523 reader IC fully supports international standard ISO 14443 which includes communication schemes ISO 14443 A and ISO 14443 B. Refer to the ISO 14443 reference documents Identification cards - Contactless integrated circuit cards - Proximity cards (parts 1 to 4). Remark: NXP Semiconductors does not offer a software library to enable design-in of the ISO 14443 B protocol. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 11 of 125 NXP Semiconductors PN512 Transmission module 8.3 FeliCa reader/writer functionality The FeliCa mode is the general reader/writer to card communication scheme according to the FeliCa specification. The following diagram describes the communication on a physical level, the communication overview describes the physical parameters. Felica READER (PCD) 1. PCD to PICC, 8-30 % ASK Manchester coded, baudrate 212 to 424 kbaud FeliCa CARD (PICC) PN512 2. PICC to PCD, > 12 % ASK loadmodulation Manchester coded, baudrate 212 to 424 kbaud 001aan214 Fig 8. FeliCa reader/writer communication diagram Table 6. Communication overview for FeliCa reader/writer FeliCa Transfer speed PN512 → card Modulation on reader side bit coding Bitlength card → PN512 Loadmodulation on card side bit coding 212 kbit/s 8-30 % ASK Manchester Coding (64/13.56) μs > 12 % ASK Manchester coding FeliCa Higher transfer speeds 424 kbit/s 8-30 % ASK Manchester Coding (32/13.56) μs > 12 % ASK Manchester coding Communication direction The contactless UART of PN512 and a dedicated external host controller are required to handle the complete FeliCa protocol. 8.3.1 FeliCa framing and coding Table 7. Preamble 00h 00h 00h 00h 00h 00h FeliCa framing and coding Sync B2h 4Dh Len n-Data CRC To enable the FeliCa communication a 6 byte preamble (00h, 00h, 00h, 00h, 00h, 00h) and 2 bytes Sync bytes (B2h, 4Dh) are sent to synchronize the receiver. The following Len byte indicates the length of the sent data bytes plus the LEN byte itself. The CRC calculation is done according to the FeliCa definitions with the MSB first. To transmit data on the RF interface, the host controller has to send the Len- and databytes to the PN512's FIFO-buffer. The preamble and the sync bytes are generated by the PN512 automatically and must not be written to the FIFO by the host controller. The PN512 performs internally the CRC calculation and adds the result to the data frame. Example for FeliCa CRC Calculation: Table 8. Preamble 00h 00h 00h 00h 00h 00h Start value for the CRC Polynomial: (00h), (00h) Sync B2h 4Dh Len 03h 2 Data Bytes ABh CDh CRC 90h 35h PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 12 of 125 NXP Semiconductors PN512 Transmission module 8.4 NFCIP-1 mode The NFCIP-1 communication differentiates between an active and a Passive Communication mode. • Active Communication mode means both the initiator and the target are using their own RF field to transmit data. • Passive Communication mode means that the target answers to an initiator command in a load modulation scheme. The initiator is active in terms of generating the RF field. • Initiator: generates RF field at 13.56 MHz and starts the NFCIP-1 communication • Target: responds to initiator command either in a load modulation scheme in Passive Communication mode or using a self generated and self modulated RF field for Active Communication mode. In order to fully support the NFCIP-1 standard the PN512 supports the Active and Passive Communication mode at the transfer speeds 106 kbit/s, 212 kbit/s and 424 kbit/s as defined in the NFCIP-1 standard. BATTERY MICROCONTROLLER PN512 MICROCONTROLLER initiator: active PN512 BATTERY target: passive or active 001aan215 Fig 9. NFCIP-1 mode PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 13 of 125 NXP Semiconductors PN512 Transmission module 8.4.1 Active communication mode Active communication mode means both the initiator and the target are using their own RF field to transmit data. Initial command host NFC INITIATOR NFC TARGET host powered to generate RF field 1. initiator starts communication at selected transfer speed powered for digital processing response host NFC INITIATOR NFC TARGET host powered for digital processing 2. target answers at the same transfer speed powered to generate RF field 001aan216 Fig 10. Active communication mode Table 9. Communication overview for Active communication mode 212 kbit/s 424 kbit/s 848 kbit/s 1.69 Mbit/s, 3.39 Mbit/s Communication 106 kbit/s direction Initiator → Target According to Target → Initiator ISO/IEC 14443A 100 % ASK, Modified Miller Coded According to FeliCa, 8-30 % digital capability to handle ASK Manchester Coded this communication The contactless UART of PN512 and a dedicated host controller are required to handle the NFCIP-1 protocol. Note: Transfer Speeds above 424 kbit/s are not defined in the NFCIP-1 standard. The PN512 supports these transfer speeds only with dedicated external circuits. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 14 of 125 NXP Semiconductors PN512 Transmission module 8.4.2 Passive communication mode Passive Communication mode means that the target answers to an initiator command in a load modulation scheme. The initiator is active meaning generating the RF field. 1. initiator starts communication at selected transfer speed host NFC INITIATOR NFC TARGET host powered to generate RF field 2. targets answers using load modulated data at the same transfer speed powered for digital processing 001aan217 Fig 11. Passive communication mode Table 10. Communication overview for Passive communication mode 106 kbit/s According to ISO/IEC 14443A 100 % ASK, Modified Miller Coded 212 kbit/s 424 kbit/s 848 kbit/s 1.69 Mbit/s, 3.39 Mbit/s Communication direction Initiator → Target According to FeliCa, 8-30 % ASK Manchester Coded digital capability to handle this communication Target → Initiator According to According to FeliCa, > 12 % ISO/IEC 14443A ASK Manchester Coded subcarrier load modulation, Manchester Coded The contactless UART of PN512 and a dedicated host controller are required to handle the NFCIP-1 protocol. Note: Transfer Speeds above 424 kbit/s are not defined in the NFCIP-1 standard. The PN512 supports these transfer speeds only with dedicated external circuits. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 15 of 125 NXP Semiconductors PN512 Transmission module 8.4.3 NFCIP-1 framing and coding The NFCIP-1 framing and coding in Active and Passive Communication mode is defined in the NFCIP-1 standard. Table 11. 106 kbit/s 212 kbit/s 424 kbit/s Framing and coding overview Framing and Coding According to the ISO/IEC 14443A/MIFARE scheme According to the FeliCa scheme According to the FeliCa scheme Transfer speed 8.4.4 NFCIP-1 protocol support The NFCIP-1 protocol is not completely described in this document. For detailed explanation of the protocol refer to the NFCIP-1 standard. However the datalink layer is according to the following policy: • Speed shall not be changed while continuum data exchange in a transaction. • Transaction includes initialization and anticollision methods and data exchange (in continuous way, meaning no interruption by another transaction). In order not to disturb current infrastructure based on 13.56 MHz general rules to start NFCIP-1 communication are defined in the following way. 1. Per default NFCIP-1 device is in Target mode meaning its RF field is switched off. 2. The RF level detector is active. 3. Only if application requires the NFCIP-1 device shall switch to Initiator mode. 4. Initiator shall only switch on its RF field if no external RF field is detected by RF Level detector during a time of TIDT. 5. The initiator performs initialization according to the selected mode. 8.4.5 MIFARE Card operation mode Table 12. MIFARE Card operation mode ISO/IEC 14443A/ MIFARE transfer speed reader/writer → PN512 Modulation on reader side bit coding Bitlength PN512 → reader/ Modulation on writer PN512 side subcarrier frequency bit coding 106 kbit/s 100 % ASK Modified Miller (128/13.56) μs subcarrier load modulation 13.56 MHz/16 Manchester coding MIFARE Higher transfer speeds 212 kbit/s 100 % ASK Modified Miller (64/13.56) μs subcarrier load modulation 13.56 MHz/16 BPSK 424 kbit/s 100 % ASK Modified Miller (32/13.56) μs subcarrier load modulation 13.56 MHz/16 BPSK Communication direction PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 16 of 125 NXP Semiconductors PN512 Transmission module 8.4.6 FeliCa Card operation mode Table 13. FeliCa Card operation mode FeliCa Transfer speed reader/writer → PN512 Modulation on reader side bit coding Bitlength PN512 → reader/ Load modulation on PN512 writer side bit coding 212 kbit/s 8-30 % ASK Manchester Coding (64/13.56) μs > 12 % ASK load modulation Manchester coding FeliCa Higher transfer speeds 424 kbit/s 8-30 % ASK Manchester Coding (32/13.56) μs > 12 % ASK load modulation Manchester coding Communication direction 9. PN512 register SET 9.1 PN512 registers overview Table 14. Addr (hex) 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 PN512 PN512 registers overview Register Name Function Page 0: Command and Status PageReg CommandReg ComlEnReg DivlEnReg ComIrqReg DivIrqReg ErrorReg Status1Reg Status2Reg FIFODataReg FIFOLevelReg WaterLevelReg ControlReg BitFramingReg CollReg RFU PageReg ModeReg TxModeReg RxModeReg TxControlReg TxAutoReg Selects the register page Starts and stops command execution Controls bits to enable and disable the passing of Interrupt Requests Controls bits to enable and disable the passing of Interrupt Requests Contains Interrupt Request bits Contains Interrupt Request bits Error bits showing the error status of the last command executed Contains status bits for communication Contains status bits of the receiver and transmitter In- and output of 64 byte FIFO-buffer Indicates the number of bytes stored in the FIFO Defines the level for FIFO under- and overflow warning Contains miscellaneous Control Registers Adjustments for bit oriented frames Bit position of the first bit collision detected on the RF-interface Reserved for future use Selects the register page Defines general modes for transmitting and receiving Defines the data rate and framing during transmission Defines the data rate and framing during receiving Controls the logical behavior of the antenna driver pins TX1 and TX2 Controls the setting of the antenna drivers © NXP B.V. 2011. All rights reserved. Page 1: Command All information provided in this document is subject to legal disclaimers. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 17 of 125 NXP Semiconductors PN512 Transmission module PN512 registers overview …continued Register Name TxSelReg RxSelReg DemodReg FelNFC1Reg FelNFC2Reg MifNFCReg ManualRCVReg TypeBReg SerialSpeedReg PageReg CRCResultReg GsNOffReg ModWidthReg TxBitPhaseReg RFCfgReg GsNOnReg CWGsPReg ModGsPReg TModeReg TPrescalerReg TReloadReg Function Selects the internal sources for the antenna driver Selects internal receiver settings Defines demodulator settings Defines the length of the valid range for the receive package Defines the length of the valid range for the receive package Controls the communication in ISO/IEC 14443/MIFARE and NFC target mode at 106 kbit Allows manual fine tuning of the internal receiver Configure the ISO/IEC 14443 type B Selects the speed of the serial UART interface Selects the register page Shows the actual MSB and LSB values of the CRC calculation Selects the conductance of the antenna driver pins TX1 and TX2 for modulation, when the driver is switched off Controls the setting of the ModWidth Adjust the TX bit phase at 106 kbit Configures the receiver gain and RF level Selects the conductance of the antenna driver pins TX1 and TX2 for modulation when the drivers are switched on Selects the conductance of the antenna driver pins TX1 and TX2 for modulation during times of no modulation Selects the conductance of the antenna driver pins TX1 and TX2 for modulation during modulation Defines settings for the internal timer Describes the 16-bit timer reload value Table 14. Addr (hex) 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F RxThresholdReg Selects thresholds for the bit decoder Page 2: CFG TCounterValReg Shows the 16-bit actual timer value Page 3: TestRegister 0 1 2 3 4 5 6 PN512 PageReg TestSel1Reg TestSel2Reg TestPinEnReg TestPin ValueReg TestBusReg AutoTestReg selects the register page General test signal configuration General test signal configuration and PRBS control Enables pin output driver on 8-bit parallel bus (Note: For serial interfaces only) Defines the values for the 8-bit parallel bus when it is used as I/O bus Shows the status of the internal testbus Controls the digital selftest © NXP B.V. 2011. All rights reserved. All information provided in this document is subject to legal disclaimers. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 18 of 125 NXP Semiconductors PN512 Transmission module PN512 registers overview …continued Register Name VersionReg AnalogTestReg TestDAC1Reg TestDAC2Reg TestADCReg RFT Function Shows the version Controls the pins AUX1 and AUX2 Defines the test value for the TestDAC1 Defines the test value for the TestDAC2 Shows the actual value of ADC I and Q Reserved for production tests Table 14. Addr (hex) 7 8 9 A B C-F 9.1.1 Register bit behavior Depending on the functionality of a register, the access conditions to the register can vary. In principle bits with same behavior are grouped in common registers. In Table 15 the access conditions are described. Table 15. r/w Behavior of register bits and its designation Description read and write These bits can be written and read by the μ-Controller. Since they are used only for control means, there content is not influenced by internal state machines, e.g. the PageSelect-Register may be written and read by the μ-Controller. It will also be read by internal state machines, but never changed by them. dynamic These bits can be written and read by the μ-Controller. Nevertheless, they may also be written automatically by internal state machines, e.g. the Command-Register changes its value automatically after the execution of the actual command. These registers hold bits, which value is determined by internal states only, e.g. the CRCReady bit can not be written from external but shows internal states. Reading these registers returns always ZERO. These registers are reserved for future use. In case of a PN512 Version V1.2 (VersionReg = 82h) a read access to these registers returns always the value “0”. Nevertheless this is not guaranteed for future chips versions where the value is undefined. In case of a write access, it is recommended to write always the value “0”. RFT These registers are reserved for production tests and shall not be changed. Abbreviation Behavior dy r read only w RFU write only - PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 19 of 125 NXP Semiconductors PN512 Transmission module 9.2 Register description 9.2.1 Page 0: Command and status 9.2.1.1 PageReg Selects the register page. Table 16. PageReg register (address 00h); reset value: 00h, 0000000b 7 UsePage Select Access Rights Table 17. Bit 7 r/w 6 0 RFU 5 0 RFU 4 0 RFU 3 0 RFU 2 0 RFU 1 r/w 0 r/w PageSelect Description of PageReg bits Symbol UsePageSelect Description Set to logic 1, the value of PageSelect is used as register address A5 and A4. The LSB-bits of the register address are defined by the address pins or the internal address latch, respectively. Set to logic 0, the whole content of the internal address latch defines the register address. The address pins are used as described in Section 10.1 “Automatic microcontroller interface detection”. 6 to 2 1 to 0 PageSelect Reserved for future use. The value of PageSelect is used only if UsePageSelect is set to logic 1. In this case it specifies the register page (which is A5 and A4 of the register address). 9.2.1.2 CommandReg Starts and stops command execution. Table 18. CommandReg register (address 01h); reset value: 20h, 00100000b 7 0 Access Rights Table 19. Bit 7 to 6 5 4 RFU 6 0 RFU 5 RcvOff r/w 4 Power Down dy dy 3 2 dy 1 dy 0 dy Command Description of CommandReg bits Symbol RcvOff PowerDown Description Reserved for future use. Set to logic 1, the analog part of the receiver is switched off. Set to logic 1, Soft Power-down mode is entered. Set to logic 0, the PN512 starts the wake up procedure. During this procedure this bit still shows a 1. A 0 indicates that the PN512 is ready for operations; see Section 16.2 “Soft power-down mode”. Note: The bit Power Down cannot be set, when the command SoftReset has been activated. 3 to 0 Command Activates a command according to the Command Code. Reading this register shows, which command is actually executed (see Section 19.3 “PN512 command overview”). PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 20 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.3 CommIEnReg Control bits to enable and disable the passing of interrupt requests. Table 20. CommIEnReg register (address 02h); reset value: 80h, 10000000b 7 IRqInv Access Rights Table 21. Bit 7 r/w 6 TxIEn r/w 5 RxIEn r/w 4 IdleIEn r/w 3 HiAlertIEn r/w 2 LoAlertIEn r/w 1 ErrIEn r/w 0 TimerIEn r/w Description of CommIEnReg bits Description Set to logic 1, the signal on pin IRQ is inverted with respect to bit IRq in the register Status1Reg. Set to logic 0, the signal on pin IRQ is equal to bit IRq. In combination with bit IRqPushPull in register DivIEnReg, the default value of 1 ensures, that the output level on pin IRQ is 3-state. Allows the transmitter interrupt request (indicated by bit TxIRq) to be propagated to pin IRQ. Allows the receiver interrupt request (indicated by bit RxIRq) to be propagated to pin IRQ. Allows the idle interrupt request (indicated by bit IdleIRq) to be propagated to pin IRQ. Allows the high alert interrupt request (indicated by bit HiAlertIRq) to be propagated to pin IRQ. Allows the low alert interrupt request (indicated by bit LoAlertIRq) to be propagated to pin IRQ. Allows the error interrupt request (indicated by bit ErrIRq) to be propagated to pin IRQ. Allows the timer interrupt request (indicated by bit TimerIRq) to be propagated to pin IRQ. Symbol IRqInv 6 5 4 3 2 1 0 TxIEn RxIEn IdleIEn HiAlertIEn LoAlertIEn ErrIEn TimerIEn PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 21 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.4 DivIEnReg Control bits to enable and disable the passing of interrupt requests. Table 22. DivIEnReg register (address 03h); reset value: 00h, 00000000b 7 IRQPushPull Access Rights Table 23. Bit 7 6 to 5 4 3 2 1 0 r/w 6 0 RFU 5 0 RFU 4 r/w 3 r/w 2 r/w 1 r/w 0 RFOffIEn r/w SiginActIEn ModeIEn CRCIEn RFOnIEn Description of DivIEnReg bits Symbol IRQPushPull SiginActIEn ModeIEn CRCIEn RfOnIEn RfOffIEn Description Set to logic 1, the pin IRQ works as standard CMOS output pad. Set to logic 0, the pin IRQ works as open drain output pad. Reserved for future use. Allows the SIGIN active interrupt request to be propagated to pin IRQ. Allows the mode interrupt request (indicated by bit ModeIRq) to be propagated to pin IRQ. Allows the CRC interrupt request (indicated by bit CRCIRq) to be propagated to pin IRQ. Allows the RF field on interrupt request (indicated by bit RfOnIRq) to be propagated to pin IRQ. Allows the RF field off interrupt request (indicated by bit RfOffIRq) to be propagated to pin IRQ. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 22 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.5 CommIRqReg Contains Interrupt Request bits. Table 24. CommIRqReg register (address 04h); reset value: 14h, 00010100b 7 Set1 Access Rights w 6 TxIRq dy 5 RxIRq dy 4 IdleIRq dy 3 dy 2 dy 1 ErrIRq dy 0 TimerIRq dy HiAlertIRq LoAlertIRq Table 25. Description of CommIRqReg bits All bits in the register CommIRqReg shall be cleared by software. Bit 7 Symbol Set1 Description Set to logic 1, Set1 defines that the marked bits in the register CommIRqReg are set. Set to logic 0, Set1 defines, that the marked bits in the register CommIRqReg are cleared. 6 5 TxIRq RxIRq Set to logic 1 immediately after the last bit of the transmitted data was sent out. Set to logic 1 when the receiver detects the end of a valid datastream. If the bit RxNoErr in register RxModeReg is set to logic 1, bit RxIRq is only set to logic 1 when data bytes are available in the FIFO. 4 IdleIRq Set to logic 1, when a command terminates by itself e.g. when the CommandReg changes its value from any command to the Idle Command. If an unknown command is started, the CommandReg changes its content to the idle state and the bit IdleIRq is set. Starting the Idle Command by the μ-Controller does not set bit IdleIRq. 3 HiAlertIRq Set to logic 1, when bit HiAlert in register Status1Reg is set. In opposition to HiAlert, HiAlertIRq stores this event and can only be reset as indicated by bit Set1. 2 LoAlertIRq Set to logic 1, when bit LoAlert in register Status1Reg is set. In opposition to LoAlert, LoAlertIRq stores this event and can only be reset as indicated by bit Set1. ErrIRq TimerIRq Set to logic 1 if any error bit in the Error Register is set. Set to logic 1 when the timer decrements the TimerValue Register to zero. 1 0 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 23 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.6 DivIRqReg Contains Interrupt Request bits Table 26. DivIRqReg register (address 05h); reset value: XXh, 000X00XXb 7 Set2 Access Rights w 6 0 RFU 5 0 RFU 4 dy 3 dy 2 CRCIRq dy 1 RFOnIRq dy 0 RFOffIRq dy SiginActIRq ModeIRq Table 27. Description of DivIRqReg bits All bits in the register DivIRqReg shall be cleared by software. Bit 7 Symbol Set2 Description Set to logic 1, Set2 defines that the marked bits in the register DivIRqReg are set. Set to logic 0, Set2 defines, that the marked bits in the register DivIRqReg are cleared 6 to 5 4 SiginActIRq Reserved for future use. Set to logic 1, when SIGIN is active. See Section 12.6 “S2C interface support”. This interrupt is set when either a rising or falling signal edge is detected. Set to logic 1, when the mode has been detected by the Data mode detector. Note: The Data mode detector can only be activated by the AutoColl command and is terminated automatically having detected the Communication mode. Note: The Data mode detector is automatically restarted after each RF Reset. 2 1 0 CRCIRq RFOnIRq RFOffIRq Set to logic 1, when the CRC command is active and all data are processed. Set to logic 1, when an external RF field is detected. Set to logic 1, when a present external RF field is switched off. 3 ModeIRq PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 24 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.7 ErrorReg Error bit register showing the error status of the last command executed. Table 28. ErrorReg register (address 06h); reset value: 00h, 00000000b 7 WrErr Access Rights Table 29. Bit 7 r 6 TempErr r 5 RFErr r 4 BufferOvfl r 3 CollErr r 2 CRCErr r 1 ParityErr r 0 ProtocolErr r Description of ErrorReg bits Symbol WrErr Description Set to logic 1, when data is written into FIFO by the host controller during the AutoColl command or MFAuthent command or if data is written into FIFO by the host controller during the time between sending the last bit on the RF interface and receiving the last bit on the RF interface. Set to logic 1, if the internal temperature sensor detects overheating. In this case, the antenna drivers are switched off automatically. Set to logic 1, if in Active Communication mode the counterpart does not switch on the RF field in time as defined in NFCIP-1 standard. Note: RFErr is only used in Active Communication mode. The bits RxFraming or the bits TxFraming has to be set to 01 to enable this functionality. 6 5 TempErr[1] RFErr 4 BufferOvfl Set to logic 1, if the host controller or a PN512’s internal state machine (e.g. receiver) tries to write data into the FIFO-bufferFIFO-buffer although the FIFO-buffer is already full. Set to logic 1, if a bit-collision is detected. It is cleared automatically at receiver start-up phase. This bit is only valid during the bitwise anticollision at 106 kbit. During communication schemes at 212 and 424 kbit this bit is always set to logic 1. Set to logic 1, if bit RxCRCEn in register RxModeReg is set and the CRC calculation fails. It is cleared to 0 automatically at receiver start-up phase. Set to logic 1, if the parity check has failed. It is cleared automatically at receiver start-up phase. Only valid for ISO/IEC 14443A/MIFARE or NFCIP-1 communication at 106 kbit. Set to logic 1, if one out of the following cases occur: 3 CollErr 2 CRCErr 1 ParityErr 0 ProtocolErr • • Set to logic 1 if the SOF is incorrect. It is cleared automatically at receiver start-up phase. The bit is only valid for 106 kbit in Active and Passive Communication mode. If bit DetectSync in register ModeReg is set to logic 1 during FeliCa communication or active communication with transfer speeds higher than 106 kbit, the bit ProtocolErr is set to logic 1 in case of a byte length violation. During the AutoColl command, bit ProtocolErr is set to logic 1, if the bit Initiator in register ControlReg is set to logic 1. During the MFAuthent Command, bit ProtocolErr is set to logic 1, if the number of bytes received in one data stream is incorrect. Set to logic 1, if the Miller Decoder detects 2 pulses below the minimum time according to the ISO/IEC 14443A definitions. • • • [1] PN512 Command execution will clear all error bits except for bit TempErr. A setting by software is impossible. All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 25 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.8 Status1Reg Contains status bits of the CRC, Interrupt and FIFO-buffer. Table 30. Status1Reg register (address 07h); reset value: XXh, X100X01Xb 7 Access Rights Table 31. Bit 7 r 6 r 5 r 4 IRq r 3 TRunning r 2 RFOn r 1 HiAlert r 0 LoAlert r RFFreqOK CRCOk CRCReady Description of Status1Reg bits Symbol RFFreqOK Description Indicates if the frequency detected at the RX pin is in the range of 13.56 MHz. Set to logic 1, if the frequency at the RX pin is in the range 12 MHz < RX pin frequency < 15 MHz. Note: The value of RFFreqOK is not defined if the external RF frequency is in the range from 9 to 12 MHz or in the range from 15 to 19 MHz. 6 CRCOk Set to logic 1, if the CRC Result is zero. For data transmission and reception the bit CRCOk is undefined (use CRCErr in register ErrorReg). CRCOk indicates the status of the CRC co-processor, during calculation the value changes to ZERO, when the calculation is done correctly, the value changes to ONE. Set to logic 1, when the CRC calculation has finished. This bit is only valid for the CRC co-processor calculation using the command CalcCRC. This bit shows, if any interrupt source requests attention (with respect to the setting of the interrupt enable bits, see register CommIEnReg and DivIEnReg). Set to logic 1, if the PN512’s timer unit is running, e.g. the timer will decrement the TCounterValReg with the next timer clock. Note: In the gated mode the bit TRunning is set to logic 1, when the timer is enabled by the register bits. This bit is not influenced by the gated signal. 5 CRCReady 4 IRq 3 TRunning 2 1 RFOn HiAlert Set to logic 1, if an external RF field is detected. This bit does not store the state of the RF field. Set to logic 1, when the number of bytes stored in the FIFO-buffer fulfills the following equation: HiAlert = ( 64 – FIFOLength ) ≤ WaterLevel Example: FIFOLength = 60, WaterLevel = 4 → HiAlert = 1 FIFOLength = 59, WaterLevel = 4 → HiAlert = 0 0 LoAlert Set to logic 1, when the number of bytes stored in the FIFO-buffer fulfills the following equation: LoAlert = FIFOLength ≤ WaterLevel Example: FIFOLength = 4, WaterLevel = 4 → LoAlert = 1 FIFOLength = 5, WaterLevel = 4 → LoAlert = 0 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 26 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.9 Status2Reg Contains status bits of the Receiver, Transmitter and Data mode detector. Table 32. Status2Reg register (address 08h); reset value: 00h, 00000000b 7 TempSensClear Access Rights Table 33. Bit 7 6 r/w 6 I2CForceHS r/w 5 0 RFU 4 dy 3 dy 2 r 1 r 0 r TargetActivated MFCrypto1On Modem State Description of Status2Reg bits Symbol TempSensClear I2CForceHS Description Set to logic 1, this bit clears the temperature error, if the temperature is below the alarm limit of 125 °C. I2C input filter settings. Set to logic 1, the I2C input filter is set to the High-speed mode independent of the I2C protocol. Set to logic 0, the I2C input filter is set to the used I2C protocol. Reserved for future use. Set to logic 1 if the Select command or if the Polling command was answered. Note: This bit can only be set during the AutoColl command in Passive Communication mode. Note: This bit is cleared automatically by switching off the external RF field. 5 4 TargetActivated 3 MFCrypto1On This bit indicates that the MIFARE Crypto1 unit is switched on and therefore all data communication with the card is encrypted. This bit can only be set to logic 1 by a successful execution of the MFAuthent Command. This bit is only valid in Reader/Writer mode for MIFARE cards. This bit shall be cleared by software. 2 to 0 Modem State ModemState shows the state of the transmitter and receiver state machines. Value 000 001 010 Description IDLE Wait for StartSend in register BitFramingReg TxWait: Wait until RF field is present, if the bit TxWaitRF is set to logic 1. The minimum time for TxWait is defined by the TxWaitReg register. Sending RxWait: Wait until RF field is present, if the bit RxWaitRF is set to logic 1. The minimum time for RxWait is defined by the RxWaitReg register. Wait for data Receiving 011 100 101 110 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 27 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.10 FIFODataReg In- and output of 64 byte FIFO-buffer. Table 34. FIFODataReg register (address 09h); reset value: XXh, XXXXXXXXb 7 Access Rights Table 35. Bit 7 to 0 dy 6 dy 5 dy 4 FIFOData dy dy dy dy dy 3 2 1 0 Description of FIFODataReg bits Symbol FIFOData Description Data input and output port for the internal 64 byte FIFO-buffer. The FIFO-buffer acts as parallel in/parallel out converter for all serial data stream in- and outputs. 9.2.1.11 FIFOLevelReg Indicates the number of bytes stored in the FIFO. Table 36. FIFOLevelReg register (address 0Ah); reset value: 00h, 00000000b 7 FlushBuffer Access Rights Table 37. Bit 7 w r r r 6 5 4 3 FIFOLevel r r r r 2 1 0 Description of FIFOLevelReg bits Symbol FlushBuffer Description Set to logic 1, this bit clears the internal FIFO-buffer’s read- and write-pointer and the bit BufferOvfl in the register ErrReg immediately. Reading this bit will always return 0. Indicates the number of bytes stored in the FIFO-buffer. Writing to the FIFODataReg increments, reading decrements the FIFOLevel. 6 to 0 FIFOLevel PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 28 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.12 WaterLevelReg Defines the level for FIFO under- and overflow warning. Table 38. WaterLevelReg register (address 0Bh); reset value: 08h, 00001000b 7 0 Access Rights Table 39. Bit 7 to 6 5 to 0 RFU 6 0 RFU r/w r/w 5 4 3 r/w 2 r/w 1 r/w 0 r/w WaterLevel Description of WaterLevelReg bits Symbol WaterLevel Description Reserved for future use. This register defines a warning level to indicate a FIFO-buffer over- or underflow: The bit HiAlert in Status1Reg is set to logic 1, if the remaining number of bytes in the FIFO-buffer space is equal or less than the defined number of WaterLevel bytes. The bit LoAlert in Status1Reg is set to logic 1, if equal or less than WaterLevel bytes are in the FIFO. Note: For the calculation of HiAlert and LoAlert see Table 30 9.2.1.13 ControlReg Miscellaneous control bits. Table 40. ControlReg register (address 0Ch); reset value: 00h, 00000000b 7 Access Rights Table 41. Bit 7 6 5 w 6 w 5 WrNFCIDtoFIFO dy 4 Initiator r/w 3 0 RFU r 2 1 RxLastBits r r 0 TStopNow TStartNow Description of ControlReg bits Description Set to logic 1, the timer stops immediately. Reading this bit will always return 0. Set to logic 1 starts the timer immediately. Reading this bit will always return 0. Set to logic 1, the internal stored NFCID (10 bytes) is copied into the FIFO. Afterwards the bit is cleared automatically Set to logic 1, the PN512 acts as initiator, otherwise it acts as target Reserved for future use. Shows the number of valid bits in the last received byte. If zero, the whole byte is valid. Symbol TStopNow TStartNow WrNFCIDtoFIFO 4 3 2 to 0 Initiator RxLastBits PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 29 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.14 BitFramingReg Adjustments for bit oriented frames. Table 42. BitFramingReg register (address 0Dh); reset value: 00h, 00000000b 7 StartSend Access Rights Table 43. Bit 7 6 to 4 w r/w 6 5 RxAlign r/w r/w 4 3 0 RFU r/w 2 1 TxLastBits r/w r/w 0 Description of BitFramingReg bits Symbol StartSend RxAlign Description Set to logic 1, the transmission of data starts. This bit is only valid in combination with the Transceive command. Used for reception of bit oriented frames: RxAlign defines the bit position for the first bit received to be stored in the FIFO. Further received bits are stored at the following bit positions. Example: RxAlign = 0: RxAlign = 1: RxAlign = 7: the LSB of the received bit is stored at bit 0, the second received bit is stored at bit position 1. the LSB of the received bit is stored at bit 1, the second received bit is stored at bit position 2. the LSB of the received bit is stored at bit 7, the second received bit is stored in the following byte at bit position 0. This bit shall only be used for bitwise anticollision at 106 kbit/s in Passive Communication mode. In all other modes it shall be set to logic 0. 3 2 to 0 TxLastBits Reserved for future use. Used for transmission of bit oriented frames: TxLastBits defines the number of bits of the last byte that shall be transmitted. A 000 indicates that all bits of the last byte shall be transmitted. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 30 of 125 NXP Semiconductors PN512 Transmission module 9.2.1.15 CollReg Defines the first bit collision detected on the RF interface. Table 44. CollReg register (address 0Eh); reset value: XXh, 101XXXXXb 7 Values AfterColl Access Rights Table 45. Bit 7 r/w 6 0 RFU 5 CollPos NotValid r r r 4 3 2 CollPos r r r 1 0 Description of CollReg bits Symbol ValuesAfterColl Description If this bit is set to logic 0, all receiving bits will be cleared after a collision. This bit shall only be used during bitwise anticollision at 106 kbit, otherwise it shall be set to logic 1. Reserved for future use. Set to logic 1, if no Collision is detected or the Position of the Collision is out of the range of bits CollPos. This bit shall only be interpreted in Passive Communication mode at 106 kbit or ISO/IEC 14443A/MIFARE Reader/Writer mode. These bits show the bit position of the first detected collision in a received frame, only data bits are interpreted. Example: 00h 01h 08h indicates a bit collision in the 32th bit indicates a bit collision in the 1st bit indicates a bit collision in the 8th bit 6 5 CollPosNotValid 4 to 0 CollPos These bits shall only be interpreted in Passive Communication mode at 106 kbit or ISO/IEC 14443A/MIFARE Reader/Writer mode if bit CollPosNotValid is set to logic 0. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 31 of 125 NXP Semiconductors PN512 Transmission module 9.2.2 Page 1: Communication 9.2.2.1 PageReg Selects the register page. Table 46. PageReg register (address 10h); reset value: 00h, 00000000b 7 UsePage Select Access Rights Table 47. Bit 7 r/w 6 0 RFU 5 0 RFU 4 0 RFU 3 0 RFU 2 0 RFU 1 r/w 0 r/w PageSelect Description of PageReg bits Symbol Description UsePage Select Set to logic 1, the value of PageSelect is used as register address A5 and A4. The LSB-bits of the register address are defined by the address pins or the internal address latch, respectively. Set to logic 0, the whole content of the internal address latch defines the register address. The address pins are used as described in Section 10.1 “Automatic microcontroller interface detection”. 6 to 2 1 to 0 PageSelect Reserved for future use. The value of PageSelect is used only, if UsePageSelect is set to logic 1. In this case it specifies the register page (which is A5 and A4 of the register address). PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 32 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.2 ModeReg Defines general mode settings for transmitting and receiving. Table 48. ModeReg register (address 11h); reset value: 3Bh, 00111011b 7 Access Rights Table 49. Bit 7 r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w MSBFirst Detect Sync TxWaitRF RxWaitRF PolSigin ModeDetOff CRCPreset Description of ModeReg bits Symbol MSBFirst Description Set to logic 1, the CRC co-processor calculates the CRC with MSB first and the CRCResultMSB and the CRCResultLSB in the CRCResultReg register are bit reversed. Note: During RF communication this bit is ignored. If set to logic 1, the contactless UART waits for the value F0h before the receiver is activated and F0h is added as a Sync-byte for transmission. This bit is only valid for 106 kbit during NFCIP-1 data exchange protocol. In all other modes it shall be set to logic 0. 6 Detect Sync 5 4 TxWaitRF RxWaitRF Set to logic 1 the transmitter in reader/writer or initiator mode for NFCIP-1 can only be started, if an RF field is generated. Set to logic 1, the counter for RxWait starts only if an external RF field is detected in Target mode for NFCIP-1 or in Card Communication mode. PolSigin defines the polarity of the SIGIN pin. Set to logic 1, the polarity of SIGIN pin is active high. Set to logic 0 the polarity of SIGIN pin is active low. Note: The internal envelope signal is coded active low. Note: Changing this bit will generate a SiginActIRq event. 3 PolSigin 2 1 to 0 ModeDetOff CRCPreset Set to logic 1, the internal mode detector is switched off. Note: The mode detector is only active during the AutoColl command. Defines the preset value for the CRC co-processor for the command CalCRC. Note: During any communication, the preset values is selected automatically according to the definition in the bits RxMode and TxMode. Value 00 01 10 11 Description 0000 6363 A671 FFFF PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 33 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.3 TxModeReg Defines the data rate and framing during transmission. Table 50. TxModeReg register (address 12h); reset value: 00h, 00000000b 7 TxCRCEn Access Rights Table 51. Bit 7 r/w dy 6 5 TxSpeed dy dy 4 3 InvMod r/w 2 TxMix r/w 1 dy 0 dy TxFraming Description of TxModeReg bits Symbol TxCRCEn Description Set to logic 1, this bit enables the CRC generation during data transmission. Note: This bit shall only be set to logic 0 at 106 kbit. Defines the bit rate while data transmission. Value 000 001 010 011 100 101 110 111 Description 106 kbit 212 kbit 424 kbit 848 kbit 1696 kbit 3392 kbit Reserved Reserved 6 to 4 TxSpeed Note: The bit coding for transfer speeds above 424 kbit is equivalent to the bit coding of Active Communication mode 424 kbit (Ecma 340). 3 2 1 to 0 InvMod TxMix TxFraming Set to logic 1, the modulation for transmitting data is inverted. Set to logic 1, the signal at pin SIGIN is mixed with the internal coder (see Section 12.6 “S2C interface support”). Defines the framing used for data transmission. Value 00 01 10 11 Description ISO/IEC 14443A/MIFARE and Passive Communication mode 106 kbit Active Communication mode FeliCa and Passive communication mode 212 and 424 kbit ISO/IEC 14443B PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 34 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.4 RxModeReg Defines the data rate and framing during reception. Table 52. RxModeReg register (address 13h); reset value: 00h, 00000000b 7 RxCRCEn Access Rights Table 53. Bit 7 6 to 4 r/w dy 6 5 RxSpeed dy dy 4 3 RxNoErr r/w 2 RxMultiple r/w 1 dy 0 dy RxFraming Description of RxModeReg bits Symbol RxCRCEn RxSpeed Description Set to logic 1, this bit enables the CRC calculation during reception. Note: This bit shall only be set to logic 0 at 106 kbit. Defines the bit rate while data transmission. The PN512’s analog part handles only transfer speeds up to 424 kbit internally, the digital UART handles the higher transfer speeds as well. Value 000 001 010 011 100 101 110 111 Description 106 kbit 212 kbit 424 kbit 848 kbit 1696 kbit 3392 kbit Reserved Reserved Note: The bit coding for transfer speeds above 424 kbit is equivalent to the bit coding of Active Communication mode 424 kbit (Ecma 340). 3 RxNoErr If set to logic 1 a not valid received data stream (less than 4 bits received) will be ignored. The receiver will remain active. For ISO/IEC14443B also RxSOFReq logic 1 is required to ignore a non valid datastream. 2 RxMultiple Set to logic 0, the receiver is deactivated after receiving a data frame. Set to logic 1, it is possible to receive more than one data frame. Having set this bit, the receive and transceive commands will not terminate automatically. In this case the multiple receiving can only be deactivated by writing any command (except the Receive command) to the CommandReg register or by clearing the bit by the host controller. If set to logic 1, at the end of a received data stream an error byte is added to the FIFO. The error byte is a copy of the ErrorReg register. 1 to 0 RxFraming Defines the expected framing for data reception. Value 00 01 10 11 Description ISO/IEC 14443A/MIFARE and Passive Communication mode 106 kbit Active Communication mode FeliCa and Passive Communication mode 212 and 424 kbit ISO/IEC 14443B PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 35 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.5 TxControlReg Controls the logical behavior of the antenna driver pins Tx1 and Tx2. Table 54. TxControlReg register (address 14h); reset value: 80h, 10000000b 7 6 5 4 3 Tx2CW r/w 2 CheckRF w 1 Tx2RF En r/w 0 Tx1RF En r/w InvTx2RF InvTx1RF InvTx2RF InvTx1RF On On Off Off Access Rights Table 55. Bit 7 6 5 4 3 r/w r/w r/w r/w Description of TxControlReg bits Symbol InvTx2RFOn InvTx1RFOn InvTx2RFOff InvTx1RFOff Tx2CW Description Set to logic 1, the output signal at pin TX2 will be inverted, if driver TX2 is enabled. Set to logic 1, the output signal at pin TX1 will be inverted, if driver TX1 is enabled. Set to logic 1, the output signal at pin TX2 will be inverted, if driver TX2 is disabled. Set to logic 1, the output signal at pin TX1 will be inverted, if driver TX1 is disabled. Set to logic 1, the output signal on pin TX2 will deliver continuously the un-modulated 13.56 MHz energy carrier. Set to logic 0, Tx2CW is enabled to modulate the 13.56 MHz energy carrier. 2 CheckRF Set to logic 1, Tx2RFEn and Tx1RFEn can not be set if an external RF field is detected. Only valid when using in combination with bit Tx2RFEn or Tx1RFEn Set to logic 1, the output signal on pin TX2 will deliver the 13.56 MHz energy carrier modulated by the transmission data. Set to logic 1, the output signal on pin TX1 will deliver the 13.56 MHz energy carrier modulated by the transmission data. 1 0 Tx2RFEn Tx1RFEn PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 36 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.6 TxAutoReg Controls the settings of the antenna driver. Table 56. TxAutoReg register (address 15h); reset value: 00h, 00000000b 7 AutoRF OFF Access Rights Table 57. Bit 7 6 5 4 3 2 r/w 6 5 4 0 RFU 3 CAOn r/w 2 InitialRF On r/w 1 Tx2RFAut oEn r/w 0 Tx1RFAuto En r/w Force100 Auto ASK WakeUp r/w r/w Description of TxAutoReg bits Symbol AutoRFOFF Description Set to logic 1, all active antenna drivers are switched off after the last data bit has been transmitted as defined in the NFCIP-1. Force100ASK Set to logic 1, Force100ASK forces a 100% ASK modulation independent of the setting in register ModGsPReg. AutoWakeUp CAOn InitialRFOn Set to logic 1, the PN512 in soft Power-down mode will be started by the RF level detector. Reserved for future use. Set to logic 1, the collision avoidance is activated and internally the value n is set in accordance to the NFCIP-1 Standard. Set to logic 1, the initial RF collision avoidance is performed and the bit InitialRFOn is cleared automatically, if the RF is switched on. Note: The driver, which should be switched on, has to be enabled by bit Tx2RFAutoEn or bit Tx1RFAutoEn. 1 Tx2RFAutoEn Set to logic 1, the driver Tx2 is switched on after the external RF field is switched off according to the time TADT. If the bits InitialRFOn and Tx2RFAutoEn are set to logic 1, Tx2 is switched on if no external RF field is detected during the time TIDT. Note: The times TADT and TIDT are defined in the NFC IP-1 standard (ISO/IEC 18092). 0 Tx1RFAutoEn Set to logic 1, the driver Tx1 is switched on after the external RF field is switched off according to the time TADT. If the bit InitialRFOn and Tx1RFAutoEn are set to logic 1, Tx1 is switched on if no external RF field is detected during the time TIDT. Note: The times TADT and TIDT are defined in the NFC IP-1 standard (ISO/IEC 18092). PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 37 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.7 TxSelReg Selects the sources for the analog part. Table 58. TxSelReg register (address 16h); reset value: 10h, 00010000b 7 0 Access Rights Table 59. Bit 7 to 6 5 to 4 DriverSel RFU 6 0 RFU 5 DriverSel r/w r/w r/w 4 3 2 r/w 1 r/w 0 r/w SigOutSel Description of TxSelReg bits Description Reserved for future use. Selects the input of driver Tx1 and Tx2. Value 00 Description Tristate Note: In soft power down the drivers are only in Tristate mode if DriverSel is set to Tristate mode. 01 10 11 Modulation signal (envelope) from the internal coder Modulation signal (envelope) from SIGIN HIGH Note: The HIGH level depends on the setting of InvTx1RFOn/ InvTx1RFOff and InvTx2RFOn/InvTx2RFOff. Symbol PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 38 of 125 NXP Semiconductors PN512 Transmission module Description of TxSelReg bits …continued Description Selects the input for the SIGOUT Pin. Value 0000 0001 0010 0011 0100 0101 0110 Description Tristate Low High TestBus signal as defined by bit TestBusBitSel in register TestSel1Reg. Modulation signal (envelope) from the internal coder Serial data stream to be transmitted Output signal of the receiver circuit (card modulation signal regenerated and delayed). This signal is used as data output signal for SAM interface connection using 3 lines. Note: To have a valid signal the PN512 has to be set to the receiving mode by either the Transceive or Receive command. The bit RxMultiple can be used to keep the PN512 in receiving mode. Note: Do not use this setting in MIFARE mode. Manchester coding as data collisions will not be transmitted on the SIGOUT line. 0111 Serial data stream received. Note: Do not use this setting in MIFARE mode. Miller coding parameters as the bit length can vary. 1000-1011 FeliCa Sam modulation 1000 RX* 1001 TX 1010 Demodulator comparator output 1011 RFU Note: * To have a valid signal the PN512 has to be set to the receiving mode by either the Transceive or Receive command. The bit RxMultiple can be used to keep the PN512 in receiving mode. 1100-1111 MIFARE Sam modulation 1100 RX* with RF carrier 1101 TX with RF carrier 1110 RX with RF carrier un-filtered 1111 RX envelope un-filtered Note: *To have a valid signal the PN512 has to be set to the receiving mode by either the Transceive or Receive command. The bit RxMultiple can be used to keep the PN512 in receiving mode. Table 59. Bit 3 to 0 Symbol SigOutSel PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 39 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.8 RxSelReg Selects internal receiver settings. Table 60. RxSelReg register (address 17h); reset value: 84h, 10000100b 7 UartSel Access Rights Table 61. Bit 7 to 6 r/w r/w r/w r/w r/w 6 5 4 3 RxWait r/w r/w r/w 2 1 0 Description of RxSelReg bits Symbol UartSel Description Selects the input of the contactless UART Value 00 01 10 11 Description Constant Low Envelope signal at SIGIN Modulation signal from the internal analog part Modulation signal from SIGIN pin. Only valid for transfer speeds above 424 kbit 5 to 0 RxWait After data transmission, the activation of the receiver is delayed for RxWait bit-clocks. During this ‘frame guard time’ any signal at pin RX is ignored. This parameter is ignored by the Receive command. All other commands (e.g. Transceive, Autocoll, MFAuthent) use this parameter. Depending on the mode of the PN512, the counter starts different. In Passive Communication mode the counter starts with the last modulation pulse of the transmitted data stream. In Active Communication mode the counter starts immediately after the external RF field is switched on. 9.2.2.9 RxThresholdReg Selects thresholds for the bit decoder. Table 62. RxThresholdReg register (address 18h); reset value: 84h, 10000100b 7 Access Rights Table 63. Bit 7 to 4 3 2 to 0 r/w 6 MinLevel r/w r/w r/w 5 4 3 0 RFU r/w 2 1 CollLevel r/w r/w 0 Description of RxThresholdReg bits Symbol MinLevel CollLevel Description Defines the minimum signal strength at the decoder input that shall be accepted. If the signal strength is below this level, it is not evaluated. Reserved for future use. Defines the minimum signal strength at the decoder input that has to be reached by the weaker half-bit of the Manchester-coded signal to generate a bit-collision relatively to the amplitude of the stronger half-bit. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 40 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.10 DemodReg Defines demodulator settings. Table 64. DemodReg register (address 19h); reset value: 4Dh, 01001101b 7 AddIQ Access Rights Table 65. Bit 7 to 6 r/w r/w 6 5 FixIQ r/w 4 TPrescal Even r/w r/w 3 TauRcv r/w 2 1 TauSync r/w r/w 0 Description of DemodReg bits Symbol AddIQ Description Defines the use of I and Q channel during reception Note: FixIQ has to be set to logic 0 to enable the following settings. Value 00 01 10 11 Description Select the stronger channel Select the stronger and freeze the selected during communication combines the I and Q channel Reserved 5 FixIQ If set to logic 1 and the bits of AddIQ are set to X0, the reception is fixed to I channel. If set to logic 1 and the bits of AddIQ are set to X1, the reception is fixed to Q channel. NOTE: If SIGIN/SIGOUT is used as S2C interface FixIQ set to 1 and AddIQ set to X0 is rewired. 4 TPrescalE If set to logic 0 the following formula is used to calculate fTimer of the ven prescaler: fTimer = 13.56 MHz / (2 * TPreScaler + 1). If set to logic 1 the following formula is used to calculate fTimer of the prescaler: fTimer = 13.56 MHz / (2 * TPreScaler + 2). (Default TPrescalEven is logic 0) 3 to 2 1 to 0 TauRcv TauSync Changes the time constant of the internal during data reception. Note: If set to 00, the PLL is frozen during data reception. Changes the time constant of the internal PLL during burst. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 41 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.11 FelNFC1Reg Defines the length of the FeliCa Sync bytes and the minimum length of the received packet. Table 66. FelNFC1Reg register (address 1Ah); reset value: 00h, 00000000b 7 Access Rights Table 67. Bit 7 to 6 r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w FelSyncLen DataLenMin Description of FelNFC1Reg bits Symbol FelSyncLen Description Defines the length of the Sync bytes. Value 00 01 10 11 Sync- bytes in hex B2 4D 00 B2 4D 00 00 B2 4D 00 00 00 B2 4D 5 to 0 DataLenMin These bits define the minimum length of the accepted packet length: DataLenMin * 4 ≤ data packet length This parameter is ignored at 106 kbit if the bit DetectSync in register ModeReg is set to logic 0. If a received data packet is shorter than the defined DataLenMin value, the data packet will be ignored. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 42 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.12 FelNFC2Reg Defines the maximum length of the received packet. Table 68. FelNFC2Reg register (address1Bh); reset value: 00h, 00000000b 7 WaitForSelected Access Rights Table 69. Bit 7 r/w 6 ShortTimeSlot r/w r/w r/w 5 4 3 r/w 2 r/w 1 r/w 0 r/w DataLenMax Description of FelNFC2Reg bits Symbol WaitForSelected Description Set to logic 1, the AutoColl command is only terminated automatically when: 1. A valid command has been received after performing a valid Select procedure according ISO/IEC 14443A. 2. A valid command has been received after performing a valid Polling procedure according to the FeliCa specification. Note: If this bit is set, no active communication is possible. Note: Setting this bit reduces the host controller interaction in case of a communication to another device in the same RF field during Passive Communication mode. 6 ShortTimeSlot Defines the time slot length for Passive Communication mode at 424 kbit. Set to logic 1 a short time slot is used (half of the timeslot at 212 kbit). Set to logic 0 a long timeslot is used (equal to the timeslot for 212 kbit). These bits define the maximum length of the accepted packet length: DataLenMax * 4 ≥ data packet length Note: If set to logic 0 the maximum data length is 256 bytes. This parameter is ignored at 106 kbit if the bit DetectSync in register ModeReg is set to logic 0. If a received packet is larger than the defined DataLenMax value, the packet will be ignored. 5 to 0 DataLenMax PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 43 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.13 MifNFCReg Defines ISO/IEC 14443A/MIFARE/NFC specific settings in target or Card Operating mode. Table 70. MifNFCReg register (address 1Ch); reset value: 62h, 01100010b 7 Access Rights Table 71. Bit 7 to 5 4 to 3 2 r/w 6 SensMiller r/w r/w 5 4 TauMiller r/w r/w 3 2 MFHalted r/w r/w 1 TxWait r/w 0 Description of MifNFCReg bits Symbol SensMiller TauMiller MFHalted Description These bits define the sensitivity of the Miller decoder. These bits define the time constant of the Miller decoder. Set to logic 1, this bit indicates that the PN512 is set to HALT mode in Card Operation mode at 106 kbit. This bit is either set by the host controller or by the internal state machine and indicates that only the code 52h is accepted as a request command. This bit is cleared automatically by a RF reset. These bits define the additional response time for the target at 106 kbit in Passive Communication mode and during the AutoColl command. Per default 7 bits are added to the value of the register bit. 1 to 0 TxWait PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 44 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.14 ManualRCVReg Allows manual fine tuning of the internal receiver. Remark: For standard applications it is not recommended to change this register settings. Table 72. ManualRCVReg register (address 1Dh); reset value: 00h, 00000000b 7 0 Access Rights Table 73. Bit 7 6 RFU 6 FastFilt MF_SO r/w 5 Delay MF_SO r/w 4 Parity Disable r/w 3 LargeBW PLL r/w 2 Manual HPCF r/w r/w 1 HPFC r/w 0 Description of ManualRCVReg bits Symbol FastFilt MF_SO Description Reserved for future use. If this bit is set to logic 1, the internal filter for the Miller-Delay Circuit is set to Fast mode. Note: This bit should only set to logic 1, if Millerpulses of less than 400 ns Pulse length are expected. At 106 kBaud the typical value is 3 us. 5 Delay MF_SO If this bit is set to logic 1, the Signal at SIGOUT-pin is delayed, so that in SAM mode the Signal at SIGIN must be 128/fc faster compared to the ISO/IEC 14443A, to reach the ISO/IEC 14443A restrictions on the RF-Field. Note: This delay shall only be activated for setting bits SigOutSel to (1110b) or (1111b) in register TxSelReg. 4 Parity Disable If this bit is set to logic 1, the generation of the Parity bit for transmission and the Parity-Check for receiving is switched off. The received Parity bit is handled like a data bit. Set to logic 1, the bandwidth of the internal PLL used for clock recovery is extended. Set to logic 0, the HPCF bits are ignored and the HPCF settings are adapted automatically to the receiving mode. Set to logic 1, values of HPCF are valid. Selects the High Pass Corner Frequency (HPCF) of the filter in the internal receiver chain 00 For signals with frequency spectrum down to 106 kHz. 01 For signals with frequency spectrum down to 212 kHz. 10 For signals with frequency spectrum down to 424 kHz. 11 For signals with frequency spectrum down to 848 kHz 3 2 LargeBWPLL ManualHPCF 1 to 0 HPFC PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 45 of 125 NXP Semiconductors PN512 Transmission module 9.2.2.15 TypeBReg Table 74. TypeBReg register (address 1Eh); reset value: 00h, 00000000b 7 RxSOF Req Access Rights Table 75. Bit 7 r/w 6 RxEOF Req r/w 5 0 RFU 4 EOFSO FWidth r/w 3 2 1 TxEGT r/w r/w 0 NoTxSOF NoTxEOF r/w r/w Description of TypeBReg bits Symbol RxSOFReq Description If this bit is set to logic 1, the SOF is required. A datastream starting without SOF is ignored. If this bit is cleared, a datastream with and without SOF is accepted. The SOF will be removed and not written into the FIFO. 6 RxEOFReq If this bit is set to logic 1, the EOF is required. A datastream ending without EOF will generate a Protocol-Error. If this bit is cleared, a datastream with and without EOF is accepted. The EOF will be removed and not written into the FIFO. Reserved for future use. 5 4 - EOFSOFWidth If this bit is set to logic 1 and EOFSOFAdjust bit is logic 0, the SOF and EOF will have the maximum length defined in ISO/IEC 14443B. If this bit is cleared and EOFSOFAdjust bit is logic 0, the SOF and EOF will have the minimum length defined in ISO/IEC 14443B. If this bit is set to 1 and the EOFSOFadjust bit is logic 1 will result in SOF low = (11etu − 8 cycles)/fc SOF high = (2 etu + 8 cycles)/fc EOF low = (11 etu − 8 cycles)/fc If this bit is set to 0 and the EOFSOFAdjust bit is logic 1 will result in an incorrect system behavior in respect to ISO specification. 3 2 1 to 0 NoTxSOF NoTxEOF TxEGT If this bit is set to logic 1, the generation of the SOF is suppressed. If this bit is set to logic 1, the generation of the EOF is suppressed. These bits define the length of the EGT. Value Description 00 0 bit 01 1 bit 10 2 bits 11 3 bits 9.2.2.16 SerialSpeedReg Selects the speed of the serial UART interface. Table 76. SerialSpeedReg register (address 1Fh); reset value: EBh, 11101011b 7 Access Rights r/w 6 BR_T0 r/w r/w r/w r/w 5 4 3 2 BR_T1 r/w r/w r/w 1 0 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 46 of 125 NXP Semiconductors PN512 Transmission module Description of SerialSpeedReg bits Symbol BR_T0 BR_T1 Description Factor BR_T0 to adjust the transfer speed, for description see Section 10.3.2 “Selectable UART transfer speeds”. Factor BR_T1 to adjust the transfer speed, for description see Section 10.3.2 “Selectable UART transfer speeds”. Table 77. Bit 7 to 5 3 to 0 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 47 of 125 NXP Semiconductors PN512 Transmission module 9.2.3 Page 2: Configuration 9.2.3.1 PageReg Selects the register page. Table 78. PageReg register (address 20h); reset value: 00h, 00000000b 7 UsePageSelect Access Rights Table 79. Bit 7 r/w 6 0 RFU 5 0 RFU 4 0 RFU 3 0 RFU 2 0 RFU 1 r/w 0 r/w PageSelect Description of PageReg bits Symbol Description UsePageSelect Set to logic 1, the value of PageSelect is used as register address A5 and A4. The LSB-bits of the register address are defined by the address pins or the internal address latch, respectively. Set to logic 0, the whole content of the internal address latch defines the register address. The address pins are used as described in Section 10.1 “Automatic microcontroller interface detection”. 6 to 2 1 to 0 PageSelect Reserved for future use. The value of PageSelect is used only if UsePageSelect is set to logic 1. In this case, it specifies the register page (which is A5 and A4of the register address). 9.2.3.2 CRCResultReg Shows the actual MSB and LSB values of the CRC calculation. Note: The CRC is split into two 8-bit register. Note: Setting the bit MSBFirst in ModeReg register reverses the bit order, the byte order is not changed. Table 80. CRCResultReg register (address 21h); reset value: FFh, 11111111b 7 Access Rights Table 81. Bit 7 to 0 r 6 r 5 r 4 r 3 r 2 r 1 r 0 r CRCResultMSB Description of CRCResultReg bits Symbol CRCResultMSB Description This register shows the actual value of the most significant byte of the CRCResultReg register. It is valid only if bit CRCReady in register Status1Reg is set to logic 1. Table 82. CRCResultReg register (address 22h); reset value: FFh, 11111111b 7 6 r 5 r 4 r 3 r 2 r 1 r 0 r CRCResultLSB Access Rights Table 83. Bit 7 to 0 r Description of CRCResultReg bits Symbol CRCResultLSB Description This register shows the actual value of the least significant byte of the CRCResult register. It is valid only if bit CRCReady in register Status1Reg is set to logic 1. © NXP B.V. 2011. All rights reserved. PN512 All information provided in this document is subject to legal disclaimers. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 48 of 125 NXP Semiconductors PN512 Transmission module 9.2.3.3 GsNOffReg Selects the conductance for the N-driver of the antenna driver pins TX1 and TX2 when the driver is switched off. Table 84. GsNOffReg register (address 23h); reset value: 88h, 10001000b 7 Access Rights Table 85. Bit 7 to 4 r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w CWGsNOff ModGsNOff Description of GsNOffReg bits Symbol CWGsNOff Description The value of this register defines the conductance of the output N-driver during times of no modulation. Note: The conductance value is binary weighted. Note: During soft Power-down mode the highest bit is forced to 1. Note: The value of the register is only used if the driver is switched off. Otherwise the bit value CWGsNOn of register GsNOnReg is used. Note: This value is used for LoadModulation. 3 to 0 ModGsNOff The value of this register defines the conductance of the output N-driver for the time of modulation. This may be used to regulate the modulation index. Note: The conductance value is binary weighted. Note: During soft Power-down mode the highest bit is forced to 1. Note: The value of the register is only used if the driver is switched off. Otherwise the bit value ModGsNOn of register GsNOnReg is used Note: This value is used for LoadModulation. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 49 of 125 NXP Semiconductors PN512 Transmission module 9.2.3.4 ModWidthReg Controls the modulation width settings. Table 86. ModWidthReg register (address 24h); reset value: 26h, 00100110b 7 Access Rights Table 87. Bit 7 to 0 r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w ModWidth Description of ModWidthReg bits Symbol ModWidth Description These bits define the width of the Miller modulation as initiator in Active and Passive Communication mode as multiples of the carrier frequency (ModWidth + 1/fc). The maximum value is half the bit period. Acting as a target in Passive Communication mode at 106 kbit or in Card Operating mode for ISO/IEC 14443A/MIFARE these bits are used to change the duty cycle of the subcarrier frequency. The resulting number of carrier periods are calculated according to the following formulas: LOW value: #clocksLOW = (ModWidth modulo 8) + 1. HIGH value: #clocksHIGH = 16-#clocksLOW. 9.2.3.5 TxBitPhaseReg Adjust the bitphase at 106 kbit during transmission. Table 88. TxBitPhaseReg register (address 25h); reset value: 87h, 10000111b 7 RcvClkChange Access Rights Table 89. Bit 7 6 to 0 r/w r/w r/w r/w 6 5 4 3 TxBitPhase r/w r/w r/w r/w 2 1 0 Description of TxBitPhaseReg bits Symbol RcvClkChange TxBitPhase Description Set to logic 1, the demodulator’s clock is derived by the external RF field. These bits are representing the number of carrier frequency clock cycles, which are added to the waiting period before transmitting data in all communication modes. TXBitPhase is used to adjust the TX bit synchronization during passive NFCIP-1 communication mode at 106 kbit and in ISO/IEC 14443A/MIFARE card mode. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 50 of 125 NXP Semiconductors PN512 Transmission module 9.2.3.6 RFCfgReg Configures the receiver gain and RF level detector sensitivity. Table 90. RFCfgReg register (address 26h); reset value: 48h, 01001000b 7 RFLevelAmp Access Rights Table 91. Bit 7 6 to 4 r/w r/w 6 5 RxGain r/w r/w r/w r/w 4 3 2 1 RFLevel r/w r/w 0 Description of RFCfgReg bits Symbol RFLevelAmp RxGain Description Set to logic 1, this bit activates the RF level detectors’ amplifier. This register defines the receivers signal voltage gain factor: Value 000 001 010 011 100 101 110 111 Description 18 dB 23 dB 18 dB 23 dB 33 dB 38 dB 43 dB 48 dB 3 to 0 RFLevel Defines the sensitivity of the RF level detector, for description see Section 12.3 “RF level detector” . PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 51 of 125 NXP Semiconductors PN512 Transmission module 9.2.3.7 GsNOnReg Selects the conductance for the N-driver of the antenna driver pins TX1 and TX2 when the driver is switched on. Table 92. GsNOnReg register (address 27h); reset value: 88h, 10001000b 7 Access Rights Table 93. Bit 7 to 4 r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w CWGsNOn ModGsNOn Description of GsNOnReg bits Symbol CWGsNOn Description The value of this register defines the conductance of the output N-driver during times of no modulation. This may be used to regulate the output power and subsequently current consumption and operating distance. Note: The conductance value is binary weighted. Note: During soft Power-down mode the highest bit is forced to 1. Note: This value is only used if the driver TX1 or TX2 are switched on. Otherwise the value of the bits CWGsNOff of register GsNOffReg is used. 3 to 0 ModGsNOn The value of this register defines the conductance of the output N-driver for the time of modulation. This may be used to regulate the modulation index. Note: The conductance value is binary weighted. Note: During soft Power-down mode the highest bit is forced to 1. Note: This value is only used if the driver TX1 or Tx2 are switched on. Otherwise the value of the bits ModsNOff of register GsNOffReg is used. 9.2.3.8 CWGsPReg Defines the conductance of the P-driver during times of no modulation Table 94. CWGsPReg register (address 28h); reset value: 20h, 00100000b 7 0 Access Rights Table 95. Bit 7 to 6 5 to 0 RFU 6 0 RFU r/w r/w 5 4 3 CWGsP r/w r/w r/w r/w 2 1 0 Description of CWGsPReg bits Symbol CWGsP Description Reserved for future use. The value of this register defines the conductance of the output P-driver. This may be used to regulate the output power and subsequently current consumption and operating distance. Note: The conductance value is binary weighted. Note: During soft Power-down mode the highest bit is forced to 1. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 52 of 125 NXP Semiconductors PN512 Transmission module 9.2.3.9 ModGsPReg Defines the driver P-output conductance during modulation. Table 96. ModGsPReg register (address 29h); reset value: 20h, 00100000b 7 0 Access Rights Table 97. Bit 7 to 6 5 to 0 RFU 6 0 RFU r/w r/w 5 4 3 ModGsP r/w r/w r/w r/w 2 1 0 Description of ModGsPReg bits Symbol ModGsP[1] Description Reserved for future use. The value of this register defines the conductance of the output P-driver for the time of modulation. This may be used to regulate the modulation index. Note: The conductance value is binary weighted. Note: During soft Power-down mode the highest bit is forced to 1. [1] If Force100ASK is set to logic 1, the value of ModGsP has no effect. 9.2.3.10 TMode Register, TPrescaler Register Defines settings for the timer. Note: The Prescaler value is split into two 8-bit registers Table 98. TModeReg register (address 2Ah); reset value: 00h, 00000000b 7 TAuto Access Rights Table 99. Bit 7 r/w 6 TGated r/w r/w 5 4 TAutoRestart r/w r/w 3 2 r/w 1 r/w 0 r/w TPrescaler_Hi Description of TModeReg bits Description Set to logic 1, the timer starts automatically at the end of the transmission in all communication modes at all speeds or when bit InitialRFOn is set to logic 1 and the RF field is switched on. In mode MIFARE and ISO14443-B 106kbit/s the timer stops after the 5th bit (1 startbit, 4 databits) if the bit RxMultiple in the register RxModeReg is not set. In all other modes, the timer stops after the 4th bit if the bit RxMultiple the register RxModeReg is not set. If RxMultiple is set to logic 1, the timer never stops. In this case the timer can be stopped by setting the bit TStopNow in register ControlReg to 1. Set to logic 0 indicates, that the timer is not influenced by the protocol. Symbol TAuto PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 53 of 125 NXP Semiconductors PN512 Transmission module Description of TModeReg bits …continued Description The internal timer is running in gated mode. Note: In the gated mode, the bit TRunning is 1 when the timer is enabled by the register bits. This bit does not influence the gating signal. Value 00 01 10 11 Description Non gated mode Gated by SIGIN Gated by AUX1 Gated by A3 Table 99. Bit 6 to 5 Symbol TGated 4 TAutoRestart Set to logic 1, the timer automatically restart its count-down from TReloadValue, instead of counting down to zero. Set to logic 0 the timer decrements to ZERO and the bit TimerIRq is set to logic 1. 3 to 0 TPrescaler_Hi Defines higher 4 bits for TPrescaler. The following formula is used to calculate fTimer if TPrescalEven bit in Demot Reg is set to logic 0: fTimer = 13.56 MHz/(2*TPreScaler+1). Where TPreScaler = [TPrescaler_Hi:TPrescaler_Lo] (TPrescaler value on 12 bits) (Default TPrescalEven is logic 0) The following formula is used to calculate fTimer if TPrescalEven bit in Demot Reg is set to logic 1: fTimer = 13.56 MHz/(2*TPreScaler+2). For detailed description see Section 15 “Timer unit”. Table 100. TPrescalerReg register (address 2Bh); reset value: 00h, 00000000b 7 Access Rights r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w TPrescaler_Lo Table 101. Description of TPrescalerReg bits Bit 7 to 0 Symbol Description The following formula is used to calculate fTimer if TPrescalEven bit in Demot Reg is set to logic 0: fTimer = 13.56 MHz/(2*TPreScaler+1). Where TPreScaler = [TPrescaler_Hi:TPrescaler_Lo] (TPrescaler value on 12 bits) The following formula is used to calculate fTimer if TPrescalEven bit in Demot Reg is set to logic 1: fTimer = 13.56 MHz/(2*TPreScaler+2). Where TPreScaler = [TPrescaler_Hi:TPrescaler_Lo] (TPrescaler value on 12 bits) For detailed description see Section 15 “Timer unit”. TPrescaler_Lo Defines lower 8 bits for TPrescaler. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 54 of 125 NXP Semiconductors PN512 Transmission module 9.2.3.11 TReloadReg Describes the 16-bit long timer reload value. Note: The Reload value is split into two 8-bit registers. Table 102. TReloadReg (Higher bits) register (address 2Ch); reset value: 00h, 00000000b 7 Access Rights r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w TReloadVal_Hi Table 103. Description of the higher TReloadReg bits Bit 7 to 0 Symbol TReloadVal_Hi Description Defines the higher 8 bits for the TReloadReg. With a start event the timer loads the TReloadVal. Changing this register affects the timer only at the next start event. Table 104. TReloadReg (Lower bits) register (address 2Dh); reset value: 00h, 00000000b 7 Access Rights r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w TReloadVal_Lo Table 105. Description of lower TReloadReg bits Bit 7 to 0 Symbol TReloadVal_Lo Description Defines the lower 8 bits for the TReloadReg. With a start event the timer loads the TReloadVal. Changing this register affects the timer only at the next start event. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 55 of 125 NXP Semiconductors PN512 Transmission module 9.2.3.12 TCounterValReg Contains the current value of the timer. Note: The Counter value is split into two 8-bit register. Table 106. TCounterValReg (Higher bits) register (address 2Eh); reset value: XXh, XXXXXXXXb 7 Access Rights r 6 r 5 r 4 r 3 r 2 r 1 r 0 r TCounterVal_Hi Table 107. Description of the higher TCounterValReg bits Bit 7 to 0 Symbol TCounterVal_Hi Description Current value of the timer, higher 8 bits. Table 108. TCounterValReg (Lower bits) register (address 2Fh); reset value: XXh, XXXXXXXXb 7 Access Rights r 6 r 5 r 4 r 3 r 2 r 1 r 0 r TCounterVal_Lo Table 109. Description of lower TCounterValReg bits Bit 7 to 0 Symbol Description TCounterVal_Lo Current value of the timer, lower 8 bits. 9.2.4 Page 3: Test 9.2.4.1 PageReg Selects the register page. Table 110. PageReg register (address 30h); reset value: 00h, 00000000b 7 UsePageSelect Access Rights r/w 6 0 RFU 5 0 RFU 4 0 RFU 3 0 RFU 2 0 RFU 1 r/w 0 r/w PageSelect PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 56 of 125 NXP Semiconductors PN512 Transmission module Table 111. Description of PageReg bits Bit 7 Symbol UsePageSelect Description Set to logic 1, the value of PageSelect is used as register address A5 and A4. The LSB-bits of the register address are defined by the address pins or the internal address latch, respectively. Set to logic 0, the whole content of the internal address latch defines the register address. The address pins are used as described in Section 10.1 “Automatic microcontroller interface detection”. 6 to 2 1 to 0 PageSelect Reserved for future use. The value of PageSelect is used only if UsePageSelect is set to logic 1. In this case, it specifies the register page (which is A5 and A4 of the register address). PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 57 of 125 NXP Semiconductors PN512 Transmission module 9.2.4.2 TestSel1Reg General test signal configuration. Table 112. TestSel1Reg register (address 31h); reset value: 00h, 00000000b 7 Access Rights r/w 6 r/w 5 r/w 4 r/w 3 SAMClkD1 r/w r/w 2 1 TstBusBitSel r/w r/w 0 SAMClockSel Table 113. Description of TestSel1Reg bits Bit 7 to 6 5 to 4 Symbol SAMClockSel Description Reserved for future use. Defines the source for the 13.56 MHz SAM clock Value 00 01 10 11 3 2 to 0 SAMClkD1 TstBusBitSel Description GND- Sam Clock switched off clock derived by the internal oscillator internal UART clock clock derived by the RF field Set to logic 1, the SAM clock is delivered to D1. Note: Only possible if the 8bit parallel interface is not used. Select the TestBus bit from the testbus to be propagated to SIGOUT. 9.2.4.3 TestSel2Reg General test signal configuration and PRBS control Table 114. TestSel2Reg register (address 32h); reset value: 00h, 00000000b 7 TstBusFlip Access Rights r/w 6 PRBS9 r/w 5 PRBS15 r/w r/w r/w 4 3 2 TestBusSel r/w r/w r/w 1 0 Table 115. Description of TestSel2Reg bits Bit 7 Symbol TstBusFlip Description If set to logic 1, the testbus is mapped to the parallel port by the following order: D4, D3, D2, D6, D5, D0, D1. See Section 20 “Testsignals”. 6 PRBS9 Starts and enables the PRBS9 sequence according ITU-TO150. Note: All relevant registers to transmit data have to be configured before entering PRBS9 mode. Note: The data transmission of the defined sequence is started by the send command. 5 PRBS15 Starts and enables the PRBS15 sequence according ITU-TO150. Note: All relevant registers to transmit data have to be configured before entering PRBS15 mode. Note: The data transmission of the defined sequence is started by the send command. 4 to 0 PN512 TestBusSel Selects the testbus. See Section 20 “Testsignals” © NXP B.V. 2011. All rights reserved. All information provided in this document is subject to legal disclaimers. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 58 of 125 NXP Semiconductors PN512 Transmission module 9.2.4.4 TestPinEnReg Enables the pin output driver on the 8-bit parallel bus. Table 116. TestPinEnReg register (address 33h); reset value: 80h, 10000000b 7 RS232LineEn Access Rights r/w r/w r/w r/w 6 5 4 3 TestPinEn r/w r/w r/w r/w 2 1 0 Table 117. Description of TestPinEnReg bits Bit 7 6 to 0 Symbol RS232LineEn TestPinEn Description Set to logic 0, the lines MX and DTRQ for the serial UART are disabled. Enables the pin output driver on the 8-bit parallel interface. Example: Setting bit 0 to 1 enables D0 Setting bit 5 to 1 enables D5 Note: Only valid if one of serial interfaces is used. If the SPI interface is used only D0 to D4 can be used. If the serial UART interface is used and RS232LineEn is set to logic 1 only D0 to D4 can be used. 9.2.4.5 TestPinValueReg Defines the values for the 7-bit parallel port when it is used as I/O. Table 118. TestPinValueReg register (address 34h); reset value: 00h, 00000000b 7 UseIO Access Rights r/w r/w r/w r/w 6 5 4 3 TestPinValue r/w r/w r/w r/w 2 1 0 Table 119. Description of TestPinValueReg bits Bit 7 Symbol UseIO Description Set to logic 1, this bit enables the I/O functionality for the 7-bit parallel port in case one of the serial interfaces is used. The input/output behavior is defined by TestPinEn in register TestPinEnReg. The value for the output behavior is defined in the bits TestPinVal. Note: If SAMClkD1 is set to logic 1, D1 can not be used as I/O. 6 to 0 TestPinValue Defines the value of the 7-bit parallel port, when it is used as I/O. Each output has to be enabled by the TestPinEn bits in register TestPinEnReg. Note: Reading the register indicates the actual status of the pins D6 D0 if UseIO is set to logic 1. If UseIO is set to logic 0, the value of the register TestPinValueReg is read back. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 59 of 125 NXP Semiconductors PN512 Transmission module 9.2.4.6 TestBusReg Shows the status of the internal testbus. Table 120. TestBusReg register (address 35h); reset value: XXh, XXXXXXXXb 7 Access Rights r 6 r 5 r 4 TestBus r r r r r 3 2 1 0 Table 121. Description of TestBusReg bits Bit 7 to 0 Symbol TestBus Description Shows the status of the internal testbus. The testbus is selected by the register TestSel2Reg. See Section 20 “Testsignals”. 9.2.4.7 AutoTestReg Controls the digital selftest. Table 122. AutoTestReg register (address 36h); reset value: 40h, 01000000b 7 0 Access Rights RFT 6 AmpRcv r/w 5 0 RFU 4 EOFSO FAdjust RFU r/w 3 2 SelfTest r/w r/w r/w 1 0 Table 123. Description of bits Bit 7 6 Symbol AmpRcv Description Reserved for production tests. If set to logic 1, the internal signal processing in the receiver chain is performed non-linear. This increases the operating distance in communication modes at 106 kbit. Note: Due to the non linearity the effect of the bits MinLevel and CollLevel in the register RxThreshholdReg are as well non linear. 5 4 Reserved for future use. EOFSOFAdjust If set to logic 0 and the EOFSOFwidth is set to 1 will result in the Maximum length of SOF and EOF according to ISO/IEC14443B If set to logic 0 and the EOFSOFwidth is set to 0 will result in the Minimum length of SOF and EOF according to ISO/IEC14443B If this bit is set to 1 and the EOFSOFwidth bit is logic 1 will result in SOF low = (11 etu − 8 cycles)/fc SOF high = (2 etu + 8 cycles)/fc EOF low = (11 etu − 8 cycles)/fc 3 to 0 SelfTest Enables the digital self test. The selftest can be started by the selftest command in the command register. The selftest is enabled by 1001. Note: For default operation the selftest has to be disabled by 0000. 9.2.4.8 VersionReg Shows the version. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 60 of 125 NXP Semiconductors PN512 Transmission module Table 124. VersionReg register (address 37h); reset value: XXh, XXXXXXXXb 7 Access Rights r 6 r 5 r 4 Version r r r r r 3 2 1 0 Table 125. Description of VersionReg bits Bit 7 to 0 Symbol Version Description 80h indicates PN512 Version V1.0. 82h indicates PN512 Version V1.2. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 61 of 125 NXP Semiconductors PN512 Transmission module 9.2.4.9 AnalogTestReg Controls the pins AUX1 and AUX2 Table 126. AnalogTestReg register (address 38h); reset value: 00h, 00000000b 7 Access Rights r/w 6 r/w 5 r/w 4 r/w 3 r/w 2 r/w 1 r/w 0 r/w AnalogSelAux1 AnalogSelAux2 Table 127. Description of AnalogTestReg bits Bit 7 to 4 3 to 0 Symbol Description AnalogSelAux1 Controls the AUX pin. AnalogSelAux2 Note: All test signals are described in Section 20 “Testsignals”. Value 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 Description Tristate Output of TestDAC1 (AUX1), output of TESTDAC2 (AUX2) Note: Current output. The use of 1 kΩ pull-down resistor on AUX is recommended. Testsignal Corr1 Note: Current output. The use of 1 kΩ pull-down resistor on AUX is recommended. Testsignal Corr2 Note: Current output. The use of 1 kΩ pull-down resistor on AUX is recommended. Testsignal MinLevel Note: Current output. The use of 1 kΩ pull-down resistor on AUX is recommended. Testsignal ADC channel I Note: Current output. The use of 1 kΩ pull-down resistor on AUX is recommended. Testsignal ADC channel Q Note: Current output. The use of 1 kΩ pull-down resistor on AUX is recommended. Testsignal ADC channel I combined with Q Note: Current output. The use of 1 kΩ pull-down resistor on AUX is recommended. Testsignal for production test Note: Current output. The use of 1 kΩ pull-down resistor on AUX is recommended. SAM clock (13.56 MHz) HIGH LOW TxActive At 106 kbit: HIGH during Startbit, Data bit, Parity and CRC. At 212 and 424 kbit: High during Preamble, Sync, Data and CRC. 1101 RxActive At 106 kbit: High during databit, Parity and CRC. At 212 and 424 kbit: High during data and CRC. 1110 Subcarrier detected 106 kbit: not applicable 212 and 424 kbit: High during last part of Preamble, Sync data and CRC 1111 TestBus-Bit as defined by the TstBusBitSel in register TestSel1Reg. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 62 of 125 NXP Semiconductors PN512 Transmission module 9.2.4.10 TestDAC1Reg Defines the testvalues for TestDAC1. Table 128. TestDAC1Reg register (address 39h); reset value: XXh, 00XXXXXXb 7 0 Access Rights RFT 6 0 RFU r/w r/w 5 4 3 r/w 2 r/w 1 r/w 0 r/w TestDAC1 Table 129. Description of TestDAC1Reg bits Bit 7 6 5 to 0 Symbol TestDAC1 Description Reserved for production tests. Reserved for future use. Defines the testvalue for TestDAC1. The output of the DAC1 can be switched to AUX1 by setting AnalogSelAux1 to 0001 in register AnalogTestReg. 9.2.4.11 TestDAC2Reg Defines the testvalue for TestDAC2. Table 130. TestDAC2Reg register (address 3Ah); reset value: XXh, 00XXXXXXb 7 0 Access Rights RFU 6 0 RFU r/w r/w 5 4 3 r/w 2 r/w 1 r/w 0 r/w TestDAC2 Table 131. Description ofTestDAC2Reg bits Bit 7 to 6 5 to 0 Symbol TestDAC2 Description Reserved for future use. Defines the testvalue for TestDAC2. The output of the DAC2 can be switched to AUX2 by setting AnalogSelAux2 to 0001 in register AnalogTestReg. 9.2.4.12 TestADCReg Shows the actual value of ADC I and Q channel. Table 132. TestADCReg register (address 3Bh); reset value: XXh, XXXXXXXXb 7 Access Rights Table 133. Description of TestADCReg bits Bit 7 to 4 3 to 0 Symbol ADC_I ADC_Q Description Shows the actual value of ADC I channel. Shows the actual value of ADC Q channel. 6 ADC_I 5 4 3 2 ADC_Q 1 0 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 63 of 125 NXP Semiconductors PN512 Transmission module 9.2.4.13 RFTReg Table 134. RFTReg register (address 3Ch); reset value: FFh, 11111111b 7 1 Access Rights RFT 6 1 RFT 5 1 RFT 4 1 RFT 3 1 RFT 2 1 RFT 1 1 RFT 0 1 RFT Table 135. Description of RFTReg bits Bit 7 to 0 Symbol Description Reserved for production tests. Table 136. RFTReg register (address 3Dh, 3Fh); reset value: 00h, 00000000b 7 0 Access Rights RFT 6 0 RFT 5 0 RFT 4 0 RFT 3 0 RFT 2 0 RFT 1 0 RFT 0 0 RFT Table 137. Description of RFTReg bits Bit 7 to 0 Symbol Description Reserved for production tests. Table 138. RFTReg register (address 3Eh); reset value: 03h, 00000011b 7 0 Access Rights RFT 6 0 RFT 5 0 RFT 4 0 RFT 3 0 RFT 2 0 RFT 1 1 RFT 0 1 RFT Table 139. Description of RFTReg bits Bit 7 to 0 Symbol Description Reserved for production tests. 10. Digital interfaces 10.1 Automatic microcontroller interface detection The PN512 supports direct interfacing of hosts using SPI, I2C-bus or serial UART interfaces. The PN512 resets its interface and checks the current host interface type automatically after performing a power-on or hard reset. The PN512 identifies the host interface by sensing the logic levels on the control pins after the reset phase. This is done using a combination of fixed pin connections. Table 140 shows the different connection configurations. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 64 of 125 NXP Semiconductors PN512 Transmission module Table 140. Connection protocol for detecting different interface types Pin SDA I2C EA D7 D6 D5 D4 D3 D2 D1 Interface type UART (input) RX 0 0 TX MX DTRQ SPI (output) NSS 0 1 MISO MOSI SCK I2C-bus (I/O) SDA 1 EA SCL ADR_0 ADR_1 ADR_2 ADR_3 ADR_4 ADR_5 Table 141. Connection scheme for detecting the different interface types PN512 Pin Parallel Interface Type Separated Read/Write Strobe Dedicated Address Bus Multiplexed Address Bus Common Read/Write Strobe Dedicated Address Bus Multiplexed Address Bus Serial Interface Types UART SPI I2C SDA 0 0 0 0 1 EA 1 1 NCS SCL ADR_0 ADR_1 ADR_2 ADR_3 ADR_4 ADR_5 ADR_6 ALE A5[1] A4[1] A3[2] A2[2] A1 A0 NRD[2] NWR[2] NCS[2] D7 D6 D5 D4 D3 D2 D1 D0 1 A5 A4 A3 A2 A1 A0 NRD NWR NCS D7 D6 D5 D4 D3 D2 D1 D0 ALE 0 0 0 1 1 1 NRD NWR NCS D7 D6 AD5 AD4 AD3 AD2 AD1 AD0 Input 1 A5 A4 A3 A2 A1 A0 NDS RD/NWR NCS D7 D6 D5 D4 D3 D2 D1 D0 Output AS 0 0 0 1 1 0 NDS RD/NWR NCS D7 D6 AD5 AD4 AD3 AD2 AD1 AD0 In/Out RX 0 0 0 0 0 0 1 1 NCS TX MX DTRQ - NSS 0 0 0 0 0 1 1 1 NCS MISO MOSI SCK - Remark: Overview on the pin behavior Pin behavior [1] [2] only available in HVQFN 40. not available in HVQFN 32. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 65 of 125 NXP Semiconductors PN512 Transmission module 10.2 Serial Peripheral Interface A serial peripheral interface (SPI compatible) is supported to enable high-speed communication to the host. The interface can handle data speeds up to 10 Mbit/s. When communicating with a host, the PN512 acts as a slave, receiving data from the external host for register settings, sending and receiving data relevant for RF interface communication. An interface compatible with SPI enables high-speed serial communication between the PN512 and a microcontroller. The implemented interface is in accordance with the SPI standard. The timing specification is given in Section 25.1 on page 107. PN512 SCK MOSI MISO NSS SCK MOSI MISO NSS 001aan220 Fig 12. SPI connection to host The PN512 acts as a slave during SPI communication. The SPI clock signal SCK must be generated by the master. Data communication from the master to the slave uses the MOSI line. The MISO line is used to send data from the PN512 to the master. Data bytes on both MOSI and MISO lines are sent with the MSB first. Data on both MOSI and MISO lines must be stable on the rising edge of the clock and can be changed on the falling edge. Data is provided by the PN512 on the falling clock edge and is stable during the rising clock edge. 10.2.1 SPI read data Reading data using SPI requires the byte order shown in Table 142 to be used. It is possible to read out up to n-data bytes. The first byte sent defines both the mode and the address. Table 142. MOSI and MISO byte order Line MOSI MISO [1] Byte 0 address 0 X[1] Byte 1 address 1 data 0 Byte 2 address 2 data 1 To ... ... Byte n address n data n − 1 Byte n + 1 00 data n X = Do not care. Remark: The MSB must be sent first. 10.2.2 SPI write data To write data to the PN512 using SPI requires the byte order shown in Table 143. It is possible to write up to n data bytes by only sending one address byte. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 66 of 125 NXP Semiconductors PN512 Transmission module The first send byte defines both the mode and the address byte. Table 143. MOSI and MISO byte order Line MOSI MISO [1] Byte 0 address 0 X[1] Byte 1 data 0 X[1] Byte 2 data 1 X[1] To ... ... Byte n data n − 1 X[1] Byte n + 1 data n X[1] X = Do not care. Remark: The MSB must be sent first. 10.2.3 SPI address byte The address byte has to meet the following format. The MSB of the first byte defines the mode used. To read data from the PN512 the MSB is set to logic 1. To write data to the PN512 the MSB must be set to logic 0. Bits 6 to 1 define the address and the LSB is set to logic 0. Table 144. Address byte 0 register; address MOSI 7 (MSB) 1 = read 0 = write 6 address 5 4 3 2 1 0 (LSB) 0 10.3 UART interface 10.3.1 Connection to a host PN512 RX TX RX TX DTRQ MX DTRQ MX 001aan221 Fig 13. UART connection to microcontrollers Remark: Signals DTRQ and MX can be disabled by clearing TestPinEnReg register’s RS232LineEn bit. 10.3.2 Selectable UART transfer speeds The internal UART interface is compatible with an RS232 serial interface. The default transfer speed is 9.6 kBd. To change the transfer speed, the host controller must write a value for the new transfer speed to the SerialSpeedReg register. Bits BR_T0[2:0] and BR_T1[4:0] define the factors for setting the transfer speed in the SerialSpeedReg register. The BR_T0[2:0] and BR_T1[4:0] settings are described in Table 9. Examples of different transfer speeds and the relevant register settings are given in Table 10. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 67 of 125 NXP Semiconductors PN512 Transmission module Table 145. BR_T0 and BR_T1 settings BR_Tn BR_T0 factor BR_T1 range Bit 0 1 Bit 1 1 Bit 2 2 Bit 3 4 Bit 4 8 Bit 5 16 Bit 6 32 Bit 7 64 1 to 32 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 33 to 64 Table 146. Selectable UART transfer speeds Transfer speed (kBd) 7.2 9.6 14.4 19.2 38.4 57.6 115.2 128 230.4 460.8 921.6 1228.8 [1] SerialSpeedReg value Decimal 250 235 218 203 171 154 122 116 90 58 28 21 Hexadecimal FAh EBh DAh CBh ABh 9Ah 7Ah 74h 5Ah 3Ah 1Ch 15h Transfer speed accuracy (%)[1] −0.25 0.32 −0.25 0.32 0.32 −0.25 −0.25 −0.06 −0.25 −0.25 1.45 0.32 The resulting transfer speed error is less than 1.5 % for all described transfer speeds. The selectable transfer speeds shown in Table 10 are calculated according to the following equations: If BR_T0[2:0] = 0: 27.12 × 10 transfer speed = ------------------------------( BR _ T0 + 1 ) If BR_T0[2:0] > 0: ⎛ ⎞ ⎜ 27.12 × 10 6 ⎟ transfer speed = ⎜ ---------------------------------- ⎟ ( BR _ T1 + 33 ) ⎜ ---------------------------------- ⎟ ⎝ 2 ( BR _ T0 – 1 ) ⎠ Remark: Transfer speeds above 1228.8 kBd are not supported. 6 (1) (2) 10.3.3 UART framing Table 147. UART framing Bit Start Data Stop Length 1-bit 8 bits 1-bit Value 0 data 1 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 68 of 125 NXP Semiconductors PN512 Transmission module Remark: The LSB for data and address bytes must be sent first. No parity bit is used during transmission. Read data: To read data using the UART interface, the flow shown in Table 148 must be used. The first byte sent defines both the mode and the address. Table 148. Read data byte order Pin RX (pin 24) TX (pin 31) Byte 0 address Byte 1 data 0 ADDRESS RX SA A0 A1 A2 A3 A4 A5 (1) R/W SO DATA TX SA D0 D1 D2 D3 D4 D5 D6 D7 SO MX DTRQ 001aak588 (1) Reserved. Fig 14. UART read data timing diagram Write data: To write data to the PN512 using the UART interface, the structure shown in Table 149 must be used. The first byte sent defines both the mode and the address. Table 149. Write data byte order Pin RX (pin 24) TX (pin 31) Byte 0 address 0 Byte 1 data 0 address 0 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 69 of 125 xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 70 of 125 PN512 NXP Semiconductors ADDRESS RX SA A0 A1 A2 A3 A4 A5 (1) DATA R/W SO SA D0 D1 D2 D3 D4 D5 D6 D7 SO ADDRESS TX SA A0 A1 A2 A3 A4 A5 (1) R/W SO All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. MX DTRQ 001aak589 (1) Reserved. Fig 15. UART write data timing diagram Remark: The data byte can be sent directly after the address byte on pin RX. Address byte: The address byte has to meet the following format: Transmission module PN512 NXP Semiconductors PN512 Transmission module The MSB of the first byte sets the mode used. To read data from the PN512, the MSB is set to logic 1. To write data to the PN512 the MSB is set to logic 0. Bit 6 is reserved for future use, and bits 5 to 0 define the address; see Table 150. Table 150. Address byte 0 register; address MOSI 7 (MSB) 1 = read 0 = write 6 reserved 5 address 4 3 2 1 0 (LSB) 10.4 I2C Bus Interface An I2C-bus (Inter-IC) interface is supported to enable a low-cost, low pin count serial bus interface to the host. The I2C-bus interface is implemented according to NXP Semiconductors’ I2C-bus interface specification, rev. 2.1, January 2000. The interface can only act in Slave mode. Therefore the PN512 does not implement clock generation or access arbitration. PULL-UP NETWORK PULL-UP NETWORK SDA PN512 MICROCONTROLLER SCL I2C CONFIGURATION WIRING EA ADR_[5:0] 001aan222 Fig 16. I2C-bus interface The PN512 can act either as a slave receiver or slave transmitter in Standard mode, Fast mode and High-speed mode. SDA is a bidirectional line connected to a positive supply voltage using a current source or a pull-up resistor. Both SDA and SCL lines are set HIGH when data is not transmitted. The PN512 has a 3-state output stage to perform the wired-AND function. Data on the I2C-bus can be transferred at data rates of up to 100 kBd in Standard mode, up to 400 kBd in Fast mode or up to 3.4 Mbit/s in High-speed mode. If the I2C-bus interface is selected, spike suppression is activated on lines SCL and SDA as defined in the I2C-bus interface specification. See Table 170 on page 108 for timing requirements. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 71 of 125 NXP Semiconductors PN512 Transmission module 10.4.1 Data validity Data on the SDA line must be stable during the HIGH clock period. The HIGH or LOW state of the data line must only change when the clock signal on SCL is LOW. SDA SCL data line stable; data valid change of data allowed mbc621 Fig 17. Bit transfer on the I2C-bus 10.4.2 START and STOP conditions To manage the data transfer on the I2C-bus, unique START (S) and STOP (P) conditions are defined. • A START condition is defined with a HIGH-to-LOW transition on the SDA line while SCL is HIGH. • A STOP condition is defined with a LOW-to-HIGH transition on the SDA line while SCL is HIGH. The I2C-bus master always generates the START and STOP conditions. The bus is busy after the START condition. The bus is free again a certain time after the STOP condition. The bus stays busy if a repeated START (Sr) is generated instead of a STOP condition. The START (S) and repeated START (Sr) conditions are functionally identical. Therefore, S is used as a generic term to represent both the START (S) and repeated START (Sr) conditions. SDA SDA SCL S START condition P STOP condition SCL mbc622 Fig 18. START and STOP conditions 10.4.3 Byte format Each byte must be followed by an acknowledge bit. Data is transferred with the MSB first; see Figure 21. The number of transmitted bytes during one data transfer is unrestricted but must meet the read/write cycle format. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 72 of 125 NXP Semiconductors PN512 Transmission module 10.4.4 Acknowledge An acknowledge must be sent at the end of one data byte. The acknowledge-related clock pulse is generated by the master. The transmitter of data, either master or slave, releases the SDA line (HIGH) during the acknowledge clock pulse. The receiver pulls down the SDA line during the acknowledge clock pulse so that it remains stable LOW during the HIGH period of this clock pulse. The master can then generate either a STOP (P) condition to stop the transfer or a repeated START (Sr) condition to start a new transfer. A master-receiver indicates the end of data to the slave-transmitter by not generating an acknowledge on the last byte that was clocked out by the slave. The slave-transmitter releases the data line to allow the master to generate a STOP (P) or repeated START (Sr) condition. data output by transmitter not acknowledge data output by receiver acknowledge SCL from master S START condition clock pulse for acknowledgement mbc602 1 2 8 9 Fig 19. Acknowledge on the I2C-bus P SDA MSB acknowledgement signal from slave byte complete, interrupt within slave clock line held LOW while interrupts are serviced SCL S or Sr Sr or P STOP or repeated START condition msc608 acknowledgement signal from receiver Sr 1 2 7 8 9 ACK 1 2 3-8 9 ACK START or repeated START condition Fig 20. Data transfer on the I2C-bus PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 73 of 125 NXP Semiconductors PN512 Transmission module 10.4.5 7-Bit addressing During the I2C-bus address procedure, the first byte after the START condition is used to determine which slave will be selected by the master. Several address numbers are reserved. During device configuration, the designer must ensure that collisions with these reserved addresses cannot occur. Check the I2C-bus specification for a complete list of reserved addresses. The I2C-bus address specification is dependent on the definition of pin EA. Immediately after releasing pin NRSTPD or after a power-on reset, the device defines the I2C-bus address according to pin EA. If pin EA is set LOW, the upper 4 bits of the device bus address are reserved by NXP Semiconductors and set to 0101b for all PN512 devices. The remaining 3 bits (ADR_0, ADR_1, ADR_2) of the slave address can be freely configured by the customer to prevent collisions with other I2C-bus devices. If pin EA is set HIGH, ADR_0 to ADR_5 can be completely specified at the external pins according to Table 140 on page 65. ADR_6 is always set to logic 0. In both modes, the external address coding is latched immediately after releasing the reset condition. Further changes at the used pins are not taken into consideration. Depending on the external wiring, the I2C-bus address pins can be used for test signal outputs. MSB LSB bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 R/W slave address 001aak591 Fig 21. First byte following the START procedure 10.4.6 Register write access To write data from the host controller using the I2C-bus to a specific register in the PN512 the following frame format must be used. • The first byte of a frame indicates the device address according to the I2C-bus rules. • The second byte indicates the register address followed by up to n-data bytes. In one frame all data bytes are written to the same register address. This enables fast FIFO buffer access. The Read/Write (R/W) bit is set to logic 0. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 74 of 125 NXP Semiconductors PN512 Transmission module 10.4.7 Register read access To read out data from a specific register address in the PN512, the host controller must use the following procedure: • Firstly, a write access to the specific register address must be performed as indicated in the frame that follows • The first byte of a frame indicates the device address according to the I2C-bus rules • The second byte indicates the register address. No data bytes are added • The Read/Write bit is 0 After the write access, read access can start. The host sends the device address of the PN512. In response, the PN512 sends the content of the read access register. In one frame all data bytes can be read from the same register address. This enables fast FIFO buffer access or register polling. The Read/Write (R/W) bit is set to logic 1. write cycle I2C-BUS S SLAVE ADDRESS [A7:A0] 0 (W) JOINER REGISTER ADDRESS [A5:A0] DATA [7:0] A 0 0 A [0:n] A P read cycle I2C-BUS SLAVE ADDRESS [A7:A0] S 0 (W) A 0 0 JOINER REGISTER ADDRESS [A5:A0] A P optional, if the previous access was on the same register address [0:n] S I2C-BUS SLAVE ADDRESS [A7:A0] 1 (R) A [0:n] DATA [7:0] A DATA [7:0] sent by master A P S P sent by slave A start condition stop condition acknowledge A W R not acknowledge write cycle read cycle 001aak592 Fig 22. Register read and write access PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 75 of 125 NXP Semiconductors PN512 Transmission module 10.4.8 High-speed mode In High-speed mode (HS mode), the device can transfer information at data rates of up to 3.4 Mbit/s, while remaining fully downward-compatible with Fast or Standard mode (F/S mode) for bidirectional communication in a mixed-speed bus system. 10.4.9 High-speed transfer To achieve data rates of up to 3.4 Mbit/s the following improvements have been made to I2C-bus operation. • The inputs of the device in HS mode incorporate spike suppression, a Schmitt trigger on the SDA and SCL inputs and different timing constants when compared to F/S mode • The output buffers of the device in HS mode incorporate slope control of the falling edges of the SDA and SCL signals with different fall times compared to F/S mode 10.4.10 Serial data transfer format in HS mode The HS mode serial data transfer format meets the Standard mode I2C-bus specification. HS mode can only start after all of the following conditions (all of which are in F/S mode): 1. START condition (S) 2. 8-bit master code (00001XXXb) 3. Not-acknowledge bit (A) When HS mode starts, the active master sends a repeated START condition (Sr) followed by a 7-bit slave address with a R/W bit address and receives an acknowledge bit (A) from the selected PN512. Data transfer continues in HS mode after the next repeated START (Sr), only switching back to F/S mode after a STOP condition (P). To reduce the overhead of the master code, a master links a number of HS mode transfers, separated by repeated START conditions (Sr). F/S mode HS mode (current-source for SCL HIGH enabled) F/S mode S MASTER CODE A Sr SLAVE ADDRESS R/W A DATA (n-bytes + A) A/A P HS mode continues Sr SLAVE ADDRESS 001aak749 Fig 23. I2C-bus HS mode protocol switch PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 76 of 125 NXP Semiconductors PN512 Transmission module S SDA high 8-bit master code 0000 1xxx A t1 tH SCL high 1 2 to 5 6 7 8 9 F/S mode Sr 7-bit SLA R/W A n + (8-bit data + A/A) Sr P SDA high SCL high 1 2 to 5 6 7 8 9 1 2 to 5 6 7 8 9 If P then F/S mode If Sr (dotted lines) then HS mode HS mode tH = Master current source pull-up tFS msc618 = Resistor pull-up Fig 24. I2C-bus HS mode protocol frame PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 77 of 125 NXP Semiconductors PN512 Transmission module 10.4.11 Switching between F/S mode and HS mode After reset and initialization, the PN512 is in Fast mode (which is in effect F/S mode as Fast mode is downward-compatible with Standard mode). The connected PN512 recognizes the “S 00001XXX A” sequence and switches its internal circuitry from the Fast mode setting to the HS mode setting. The following actions are taken: 1. Adapt the SDA and SCL input filters according to the spike suppression requirement in HS mode. 2. Adapt the slope control of the SDA output stages. It is possible for system configurations that do not have other I2C-bus devices involved in the communication to switch to HS mode permanently. This is implemented by setting Status2Reg register’s I2CForceHS bit to logic 1. In permanent HS mode, the master code is not required to be sent. This is not defined in the specification and must only be used when no other devices are connected on the bus. In addition, spikes on the I2C-bus lines must be avoided because of the reduced spike suppression. 10.4.12 PN512 at lower speed modes PN512 is fully downward-compatible and can be connected to an F/S mode I2C-bus system. The device stays in F/S mode and communicates at F/S mode speeds because a master code is not transmitted in this configuration. 11. 8-bit parallel interface The PN512 supports two different types of 8-bit parallel interfaces, Intel and Motorola compatible modes. 11.1 Overview of supported host controller interfaces The PN512 supports direct interfacing to various μ-Controllers. The following table shows the parallel interface types supported by the PN512. Table 151. Supported interface types Supported interface types Separated Read and Write Strobes (INTEL compatible) Bus control address data Multiplexed Read and Write control Strobe (Motorola compatible) address data Separated Address and Data Bus NRD, NWR, NCS A0 … A3 [..A5*] D0 … D7 R/NW, NDS, NCS A0 … A3 [..A5*] D0 … D7 Multiplexed Address and Data Bus NRD, NWR, NCS, ALE AD0 … AD7 AD0 … AD7 R/NW, NDS, NCS, AS AD0 … AD7 AD0 … AD7 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 78 of 125 NXP Semiconductors PN512 Transmission module 11.2 Separated Read/Write strobe non multiplexed address low low low high high high multiplexed address/data AD0...AD7) D0...D7 address latch enable (ALE) not read strobe (NRD) not write (NWR) ALE NRD NWR 001aan223 ADDRESS DECODER PN512 NCS A5* A4* A3 A2 A1 A0 address bus ADDRESS DECODER PN512 NCS address bus (A0...A3[A5*]) A0...A3[A5*] data bus (D0...D7) D0...D7 high not data strobe (NRD) not write (NWR) ALE NRD NWR remark: *depending on the package type. Fig 25. Connection to host controller with separated Read/Write strobes For timing requirements refer to Section 25.2 “8-bit parallel interface timing”. 11.3 Common Read/Write strobe non multiplexed address low low low high high low multiplexed address/data AD0...AD7) D0...D7 address strobe (AS) not data strobe (NDS) read not write (RD/NWR) ALE NRD NWR 001aan224 ADDRESS DECODER PN512 NCS A5* A4* A3 A2 A1 A0 address bus ADDRESS DECODER PN512 NCS address bus (A0...A3[A5*]) A0...A3[A5*] Data bus (D0...D7) D0...D7 high not data strobe (NDS) read not write (RD/NWR) ALE NRD NWR remark: *depending on the package type. Fig 26. Connection to host controller with common Read/Write strobes For timing requirements refer to Section 25.2 “8-bit parallel interface timing” PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 79 of 125 NXP Semiconductors PN512 Transmission module 12. Analog interface and contactless UART 12.1 General The integrated contactless UART supports the external host online with framing and error checking of the protocol requirements up to 848 kBd. An external circuit can be connected to the communication interface pins MFIN and MFOUT to modulate and demodulate the data. The contactless UART handles the protocol requirements for the communication protocols in cooperation with the host. Protocol handling generates bit and byte-oriented framing. In addition, it handles error detection such as parity and CRC, based on the various supported contactless communication protocols. Remark: The size and tuning of the antenna and the power supply voltage have an important impact on the achievable operating distance. 12.2 TX driver The signal on pins TX1 and TX2 is the 13.56 MHz energy carrier modulated by an envelope signal. It can be used to drive an antenna directly using a few passive components for matching and filtering; see Section 15 on page 92. The signal on pins TX1 and TX2 can be configured using the TxControlReg register; see Section 9.2.2.5 on page 36. The modulation index can be set by adjusting the impedance of the drivers. The impedance of the p-driver can be configured using registers CWGsPReg and ModGsPReg. The impedance of the n-driver can be configured using the GsNReg register. The modulation index also depends on the antenna design and tuning. The TxModeReg and TxSelReg registers control the data rate and framing during transmission and the antenna driver setting to support the different requirements at the different modes and transfer speeds. Table 152. Register and bit settings controlling the signal on pin TX1 Bit Bit Bit Tx1RFEn Force InvTx1RFOn 100ASK 0 1 X[1] 0 0 1 X[1] 0 1 1 Bit Envelope Pin InvTx1RFOff TX1 X[1] X[1] X[1] X[1] X[1] 0 1 0 1 0 1 [1] X = Do not care. GSPMos GSNMos Remarks X[1] RF RF RF RF 0 X[1] pMod pCW pMod pCW pMod X[1] nMod nCW nMod nCW nMod nCW not specified if RF is switched off 100 % ASK: pin TX1 pulled to logic 0, independent of the InvTx1RFOff bit RF_n pCW PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 80 of 125 NXP Semiconductors PN512 Transmission module Table 153. Register and bit settings controlling the signal on pin TX2 Bit Tx1RFEn 0 Bit Bit Force Tx2CW 100ASK X[1] X[1] Bit Bit Envelope Pin InvTx2RFOn InvTx2RFOff TX2 X[1] X[1] X[1] X[1] GSPMos GSNMos Remarks X[1] X[1] not specified if RF is switched off - 1 0 0 0 1 X[1] X[1] X[1] X[1] X[1] X[1] X[1] X[1] 0 1 0 1 X[1] X[1] 0 1 0 1 X[1] X[1] RF RF RF_n RF_n RF RF_n 0 RF 0 RF_n RF RF_n pMod pCW pMod pCW pCW pCW pMod pCW pMod pCW pCW pCW nMod nCW nMod nCW nCW nCW nMod nCW nMod nCW nCW nCW 1 0 1 conductance always CW for the Tx2CW bit 100 % ASK: pin TX2 pulled to logic 0 (independent of the InvTx2RFOn/Inv Tx2RFOff bits) 1 0 0 1 1 0 1 [1] X = Do not care. The following abbreviations have been used in Table 152 and Table 153: • • • • • RF: 13.56 MHz clock derived from 27.12 MHz quartz crystal oscillator divided by 2 RF_n: inverted 13.56 MHz clock GSPMos: conductance, configuration of the PMOS array GSNMos: conductance, configuration of the NMOS array pCW: PMOS conductance value for continuous wave defined by the CWGsPReg register • pMod: PMOS conductance value for modulation defined by the ModGsPReg register • nCW: NMOS conductance value for continuous wave defined by the GsNReg register’s CWGsN[3:0] bits • nMod: NMOS conductance value for modulation defined by the GsNReg register’s ModGsN[3:0] bits • X = do not care. Remark: If only one driver is switched on, the values for CWGsPReg, ModGsPReg and GsNReg registers are used for both drivers. 12.3 RF level detector The RF level detector is integrated to fulfill NFCIP1 protocol requirements (e.g. RF collision avoidance). Furthermore the RF level detector can be used to wake up the PN512 and to generate an interrupt. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 81 of 125 NXP Semiconductors PN512 Transmission module The sensitivity of the RF level detector is adjustable in a 4-bit range using the bits RFLevel in register RFCfgReg. The sensitivity itself depends on the antenna configuration and tuning. Possible sensitivity levels at the RX pin are listed in the Table 153. Table 154. Setting of the bits RFlevel in register RFCfgReg (RFLevel amplifier deactivated) V~Rx [Vpp] ~2 ~1.4 ~0.99 ~0.69 ~0.49 ~0.35 ~0.24 ~0.17 ~0.12 ~0.083 ~0.058 ~0.041 ~0.029 ~0.020 ~0.014 ~0.010 RFLevel 1111 1110 1101 1100 1011 1010 1001 1000 0111 0110 0101 0100 0011 0010 0001 0000 To increase the sensitivity of the RF level detector an amplifier can be activated by setting the bit RFLevelAmp in register RFCfgReg to 1. Remark: During soft Power-down mode the RF level detector amplifier is automatically switched off to ensure that the power consumption is less than 10 μA at 3 V. Remark: With typical antennas lower sensitivity levels can provoke misleading results because of intrinsic noise in the environment. Note: It is recommended to use the bit RFLevelAmp only with higher RF level settings. 12.4 Data mode detector The Data mode detector gives the possibility to detect received signals according to the ISO/IEC 14443A/MIFARE, FeliCa or NFCIP-1 schemes at the standard transfer speeds for 106 kbit, 212 kbit and 424 kbit in order to prepare the internal receiver in a fast and convenient way for further data processing. The Data mode detector can only be activated by the AutoColl command. The mode detector resets, when no external RF field is detected by the RF level detector. The Data mode detector could be switched off during the AutoColl command by setting bit ModeDetOff in register ModeReg to 1. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 82 of 125 NXP Semiconductors PN512 Transmission module HOST INTERFACES REGISTERS REGISTERSETTING FOR THE DETECTED MODE NFC @ 106 kbit/s NFC @ 212 kbit/s NFC @ 424 kbit/s DATA MODE DETECTOR RECEIVER I/Q DEMODULATOR PN512 RX 001aan225 Fig 27. Data mode detector PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 83 of 125 NXP Semiconductors PN512 Transmission module 12.5 Serial data switch Two main blocks are implemented in the PN512. The digital block comprises the state machines, encoder/decoder logic. The analog block comprises the modulator and antenna drivers, the receiver and amplifiers. The interface between these two blocks can be configured in the way, that the interfacing signals may be routed to the pins SIGIN and SIGOUT. SIGIN is capable of processing digital NFC signals on transfer speeds above 424 kbit. The SIGOUT pin can provide a digital signal that can be used with an additional external circuit to generate transfer speeds above 424 kbit (including 106, 212 and 424 kbit). Furthermore SIGOUT and SIGIN can be used to enable the S2C interface in the card SAM mode to emulate a card functionality with the PN512 and a secure IC. A secure IC can be the SmartMX smart card controller IC. This topology allows the analog block of the PN512 to be connected to the digital block of another device. The serial signal switch is controlled by the TxSelReg and RxSelReg registers. Figure 28 shows the serial data switch for TX1 and TX2. DriverSel[1:0] 3-state INTERNAL CODER INVERT IF InvMod = 1 envelope 00 01 10 1 MFIN INVERT IF PolMFin = 0 11 to driver TX1 and TX2 0 = impedance = modulated 1 = impedance = CW 001aak593 Fig 28. Serial data switch for TX1 and TX2 12.6 S2C interface support The S2C provides the possibility to directly connect a secure IC to the PN512 in order act as a contactless smart card IC via the PN512. The interfacing signals can be routed to the pins SIGIN and SIGOUT. SIGIN can receive either a digital FeliCa or digitized ISO/IEC 14443A signal sent by the secure IC. The SIGOUT pin can provide a digital signal and a clock to communicate to the secure IC. A secure IC can be the smart card IC provided by NXP Semiconductors. The PN512 has an extra supply pin (SVDD and PVSS as Ground line) for the SIGIN and SIGOUT pads. Figure 30 outlines possible ways of communications via the PN512 to the secure IC. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 84 of 125 NXP Semiconductors PN512 Transmission module HOST CONTROLLER PN512 SPI, I2C, SERIAL UART FIFO AND STATE MACHINE 1. secure access module (SAM) mode SIGOUT SERIAL SIGNAL SWITCH SIGIN SECURE CORE IC CONTACTLESS UART 2. contactless card mode 001aan226 Fig 29. Communication flows using the S2C interface Configured in the Secure Access Mode the host controller can directly communicate to the Secure IC via SIGIN/SIGOUT. In this mode the PN512 generates the RF clock and performs the communication on the SIGOUT line. To enable the Secure Access module mode the clock has to be derived by the internal oscillator of the PN512, see bits SAMClockSel in register TestSel1Reg. Configured in Contactless Card mode the secure IC can act as contactless smart card IC via the PN512. In this mode the signal on the SIGOUT line is provided by the external RF field of the external reader/writer. To enable the Contactless Card mode the clock derived by the external RF field has to be used. The configuration of the S2C interface differs for the FeliCa and MIFARE scheme as outlined in the following chapters. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 85 of 125 NXP Semiconductors PN512 Transmission module 12.6.1 Signal shape for Felica S2C interface support The FeliCa secure IC is connected to the PN512 via the pins SIGOUT and SIGIN. The signal at SIGOUT contains the information of the 13.56 MHz clock and the digitized demodulated signal. The clock and the demodulated signal is combined by using the logical function exclusive or. To ensure that this signal is free of spikes, the demodulated signal is digitally filtered first. The time delay for that digital filtering is in the range of one bit length. The demodulated signal changes only at a positive edge of the clock. The register TxSelReg controls the setting at SIGOUT. clock signal on SIGIN signal on antenna 001aan227 Fig 30. Signal shape for SIGOUT in FeliCa card SAM mode The answer of the FeliCa SAM is transferred from SIGIN directly to the antenna driver. The modulation is done according to the register settings of the antenna drivers. The clock is switched to AUX1 or AUX2 (see AnalogSelAux). Note: A HIGH signal on AUX1 and AUX2 has the same level as AVDD. A HIGH signal at SIGOUT has the same level as SVDD. Alternatively it is possible to use pin D0 as clock output if a serial interface is used. The HIGH level at D0 is the same as PVDD. clock demodulated signal signal on SIGOUT 001aan228 Fig 31. Signal shape for SIGIN in SAM mode Note: The signal on the antenna is shown in principle only. In reality the waveform is sinusoidal. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 86 of 125 NXP Semiconductors PN512 Transmission module 12.6.2 Waveform shape for ISO/IEC 14443A and MIFARE S2C support The secure IC, e.g. the SmartMX is connected to the PN512 via the pins SIGOUT and SIGIN. The waveform shape at SIGOUT is a digital 13.56 MHz Miller coded signal with levels between PVSS and PVDD derived out of the external 13.56 MHz carrier signal in case of the Contactless Card mode or internally generated in terms of Secure Access mode. The register TxSelReg controls the setting at SIGOUT. Note: The clock settings for the Secure Access mode and the Contactless Card mode differ, refer to the description of the bits SAMClockSel in register TestSel1Reg. bit value RF signal on antenna 0 1 0 0 1 1 signal on SIGOUT 0 001aan229 Fig 32. Signal shape for SIGOUT in MIFARE Card SAM mode The signal at SIGIN is a digital Manchester coded signal according to the requirements of the ISO/IEC 14443A with the subcarrier frequency of 847.5 kHz generated by the secure IC. bit value 0 1 0 0 1 signal on antenna 1 signal on SIGIN 0 001aan230 Fig 33. Signal shape for SIGIN in MIFARE Card SAM mode PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 87 of 125 NXP Semiconductors PN512 Transmission module 12.7 Hardware support for FeliCa and NFC polling 12.7.1 Polling sequence functionality for initiator 1. Timer: The PN512 has a timer, which can be programmed in a way that it generates an interrupt at the end of each timeslot, or if required an interrupt is generated at the end of the last timeslot. 2. The receiver can be configured in a way to receive continuously. In this mode it can receive any number of packets. The receiver is ready to receive the next packet directly after the last packet has been received. This mode is active by setting the bit RxMultiple in register RxModeReg to 1 and has to be stopped by software. 3. The internal UART adds one byte to the end of every received packet, before it is transferred into the FIFO-buffer. This byte indicates if the received byte packet is correct (see register ErrReg). The first byte of each packet contains the length byte of the packet. 4. The length of one packet is 18 or 20 bytes (+ 1 byte Error-Info). The FIFO has a length of 64 bytes. This means three packets can be stored in the FIFO at the same time. If more than three packets are expected, the host controller has to empty the FIFO, before the FIFO is filled completely. In case of a FIFO-overflow data is lost (See bit BufferOvfl in register ErrorReg). 12.7.2 Polling sequence functionality for target 1. The host controller has to configure the PN512 with the correct polling response parameters for the polling command. 2. To activate the automatic polling in Target mode, the AutoColl Command has to be activated. 3. The PN512 receives the polling command send out by an initiator and answers with the polling response. The timeslot is selected automatically (The timeslot itself is randomly generated, but in the range 0 to TSN, which is defined by the Polling command). The PN512 compares the system code, stored in byte 17 and 18 of the Config Command with the system code received by the polling command of an initiator. If the system code is equal, the PN512 answers according to the configured polling response. The system code FF (hex) acts as a wildcard for the system code bytes, i.e. a target of a system code 1234 (hex) answers to the polling command with one of the following system codes 1234 (hex), 12FF (hex), FF34 (hex) or FFFF (hex). If the system code does not match no answer is sent back by the PN512. If a valid command is received by the PN512, which is not a Polling command, no answer is sent back and the command AutoColl is stopped. The received packet is stored in the FIFO. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 88 of 125 NXP Semiconductors PN512 Transmission module 12.7.3 Additional hardware support for FeliCa and NFC Additionally to the polling sequence support for the Felica mode, the PN512 supports the check of the Len-byte. The received Len-byte in accordance to the registers FelNFC1Reg and FelNFC2Reg: DataLenMin in register FelNFC1Reg defines the minimum length of the accepted packet length. This register is six bit long. Each bit represents a length of four bytes. DataLenMax in register FelNFC2Reg defines the maximum length of the accepted package. This register is six bit long. Each bit represents a length of four bytes. If set to logic 1 this limit is ignored. If the length is not in the supposed range, the packet is not transferred to the FIFO and receiving is kept active. Example 1: • DataLenMin = 4 – The length shall be greater or equal 16. • DataLenMax = 5 – The length shall be smaller than 20. Valid area: 16, 17, 18, 19 Example 2: • DataLenMin = 9 – The length shall be greater or equal 36. • DataLenMax = 0 – The length shall be smaller than 256. Valid area: 36 to 255 12.7.4 CRC coprocessor The following CRC coprocessor parameters can be configured: • The CRC preset value can be either 0000h, 6363h, A671h or FFFFh depending on the ModeReg register’s CRCPreset[1:0] bits setting • The CRC polynomial for the 16-bit CRC is fixed to x16 + x12 + x5 + 1 • The CRCResultReg register indicates the result of the CRC calculation. This register is split into two 8-bit registers representing the higher and lower bytes. • The ModeReg register’s MSBFirst bit indicates that data will be loaded with the MSB first. Table 155. CRC coprocessor parameters Parameter CRC register length CRC algorithm CRC preset value Value 16-bit CRC algorithm according to ISO/IEC 14443 A and ITU-T 0000h, 6363h, A671h or FFFFh depending on the setting of the ModeReg register’s CRCPreset[1:0] bits PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 89 of 125 NXP Semiconductors PN512 Transmission module 13. FIFO buffer An 8 × 64 bit FIFO buffer is used in the PN512. It buffers the input and output data stream between the host and the PN512’s internal state machine. This makes it possible to manage data streams up to 64 bytes long without the need to take timing constraints into account. 13.1 Accessing the FIFO buffer The FIFO buffer input and output data bus is connected to the FIFODataReg register. Writing to this register stores one byte in the FIFO buffer and increments the internal FIFO buffer write pointer. Reading from this register shows the FIFO buffer contents stored in the FIFO buffer read pointer and decrements the FIFO buffer read pointer. The distance between the write and read pointer can be obtained by reading the FIFOLevelReg register. When the microcontroller starts a command, the PN512 can, while the command is in progress, access the FIFO buffer according to that command. Only one FIFO buffer has been implemented which can be used for input and output. The microcontroller must ensure that there are not any unintentional FIFO buffer accesses. 13.2 Controlling the FIFO buffer The FIFO buffer pointers can be reset by setting FIFOLevelReg register’s FlushBuffer bit to logic 1. Consequently, the FIFOLevel[6:0] bits are all set to logic 0 and the ErrorReg register’s BufferOvfl bit is cleared. The bytes stored in the FIFO buffer are no longer accessible allowing the FIFO buffer to be filled with another 64 bytes. 13.3 FIFO buffer status information The host can get the following FIFO buffer status information: • • • • Number of bytes stored in the FIFO buffer: FIFOLevelReg register’s FIFOLevel[6:0] FIFO buffer almost full warning: Status1Reg register’s HiAlert bit FIFO buffer almost empty warning: Status1Reg register’s LoAlert bit FIFO buffer overflow warning: ErrorReg register’s BufferOvfl bit. The BufferOvfl bit can only be cleared by setting the FIFOLevelReg register’s FlushBuffer bit. The PN512 can generate an interrupt signal when: • ComIEnReg register’s LoAlertIEn bit is set to logic 1. It activates pin IRQ when Status1Reg register’s LoAlert bit changes to logic 1. • ComIEnReg register’s HiAlertIEn bit is set to logic 1. It activates pin IRQ when Status1Reg register’s HiAlert bit changes to logic 1. If the maximum number of WaterLevel bytes (as set in the WaterLevelReg register) or less are stored in the FIFO buffer, the HiAlert bit is set to logic 1. It is generated according to Equation 3: HiAlert = ( 64 – FIFOLength ) ≤ WaterLevel (3) PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 90 of 125 NXP Semiconductors PN512 Transmission module If the number of WaterLevel bytes (as set in the WaterLevelReg register) or less are stored in the FIFO buffer, the LoAlert bit is set to logic 1. It is generated according to Equation 4: L oAlert = FIFOLength ≤ WaterLevel (4) 14. Interrupt request system The PN512 indicates certain events by setting the Status1Reg register’s IRq bit and, if activated, by pin IRQ. The signal on pin IRQ can be used to interrupt the host using its interrupt handling capabilities. This allows the implementation of efficient host software. 14.1 Interrupt sources overview Table 156 shows the available interrupt bits, the corresponding source and the condition for its activation. The ComIrqReg register’s TimerIRq interrupt bit indicates an interrupt set by the timer unit which is set when the timer decrements from 1 to 0. The ComIrqReg register’s TxIRq bit indicates that the transmitter has finished. If the state changes from sending data to transmitting the end of the frame pattern, the transmitter unit automatically sets the interrupt bit. The CRC coprocessor sets the DivIrqReg register’s CRCIRq bit after processing all the FIFO buffer data which is indicated by CRCReady bit = 1. The ComIrqReg register’s RxIRq bit indicates an interrupt when the end of the received data is detected. The ComIrqReg register’s IdleIRq bit is set if a command finishes and the Command[3:0] value in the CommandReg register changes to idle (see Table 157 on page 97). The ComIrqReg register’s HiAlertIRq bit is set to logic 1 when the Status1Reg register’s HiAlert bit is set to logic 1 which means that the FIFO buffer has reached the level indicated by the WaterLevel[5:0] bits. The ComIrqReg register’s LoAlertIRq bit is set to logic 1 when the Status1Reg register’s LoAlert bit is set to logic 1 which means that the FIFO buffer has reached the level indicated by the WaterLevel[5:0] bits. The ComIrqReg register’s ErrIRq bit indicates an error detected by the contactless UART during send or receive. This is indicated when any bit is set to logic 1 in register ErrorReg. Table 156. Interrupt sources Interrupt flag TimerIRq TxIRq CRCIRq RxIRq IdleIRq HiAlertIRq LoAlertIRq ErrIRq Interrupt source timer unit transmitter CRC coprocessor receiver ComIrqReg register FIFO buffer FIFO buffer contactless UART Trigger action the timer counts from 1 to 0 a transmitted data stream ends all data from the FIFO buffer has been processed a received data stream ends command execution finishes the FIFO buffer is almost full the FIFO buffer is almost empty an error is detected PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 91 of 125 NXP Semiconductors PN512 Transmission module 15. Timer unit A timer unit is implemented in the PN512. The external host controller may use this timer to manage timing relevant tasks. The timer unit may be used in one of the following configurations: • • • • • Time-out counter Watch-dog counter Stop watch Programmable one-shot Periodical trigger The timer unit can be used to measure the time interval between two events or to indicate that a specific event occurred after a specific time. The timer can be triggered by events which will be explained in the following, but the timer itself does not influence any internal event (e.g. A time-out during data reception does not influence the reception process automatically). Furthermore, several timer related bits are set and these bits can be used to generate an interrupt. Timer The timer has an input clock of 13.56 MHz (derived from the 27.12 MHz quartz). The timer consists of two stages: 1 prescaler and 1 counter. The prescaler is a 12-bit counter. The reload value for TPrescaler can be defined between 0 and 4095 in register TModeReg and TPrescalerReg. The reload value for the counter is defined by 16 bits in a range of 0 to 65535 in the register TReloadReg. The current value of the timer is indicated by the register TCounterValReg. If the counter reaches 0 an interrupt will be generated automatically indicated by setting the TimerIRq bit in the register CommonIRqReg. If enabled, this event can be indicated on the IRQ line. The bit TimerIRq can be set and reset by the host controller. Depending on the configuration the timer will stop at 0 or restart with the value from register TReloadReg. The status of the timer is indicated by bit TRunning in register Status1Reg. The timer can be manually started by TStartNow in register ControlReg or manually stopped by TStopNow in register ControlReg. Furthermore the timer can be activated automatically by setting the bit TAuto in the register TModeReg to fulfill dedicated protocol requirements automatically. The time delay of a timer stage is the reload value +1. The definition of total time is: t = ((TPrescaler*2+1)*TReload+1)/13.56MHz or if TPrescaleEven bit is set: t = ((TPrescaler*2+2)*TReload+1)/13.56MHz Maximum time: Example: TPrescaler = 4095,TReloadVal = 65535 => (2*4095 +2)*65536/13.56 MHz = 39.59 s PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 92 of 125 NXP Semiconductors PN512 Transmission module To indicate 25 us it is required to count 339 clock cycles. This means the value for TPrescaler has to be set to TPrescaler = 169.The timer has now an input clock of 25 us. The timer can count up to 65535 timeslots of each 25 μs. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 93 of 125 NXP Semiconductors PN512 Transmission module 16. Power reduction modes 16.1 Hard power-down Hard power-down is enabled when pin NRSTPD is LOW. This turns off all internal current sinks including the oscillator. All digital input buffers are separated from the input pins and clamped internally (except pin NRSTPD). The output pins are frozen at either a HIGH or LOW level. 16.2 Soft power-down mode Soft Power-down mode is entered immediately after the CommandReg register’s PowerDown bit is set to logic 1. All internal current sinks are switched off, including the oscillator buffer. However, the digital input buffers are not separated from the input pins and keep their functionality. The digital output pins do not change their state. During soft power-down, all register values, the FIFO buffer content and the configuration keep their current contents. After setting the PowerDown bit to logic 0, it takes 1024 clocks until the Soft power-down mode is exited indicated by the PowerDown bit. Setting it to logic 0 does not immediately clear it. It is cleared automatically by the PN512 when Soft power-down mode is exited. Remark: If the internal oscillator is used, you must take into account that it is supplied by pin AVDD and it will take a certain time (tosc) until the oscillator is stable and the clock cycles can be detected by the internal logic. It is recommended for the serial UART, to first send the value 55h to the PN512. The oscillator must be stable for further access to the registers. To ensure this, perform a read access to address 0 until the PN512 answers to the last read command with the register content of address 0. This indicates that the PN512 is ready. 16.3 Transmitter power-down mode The Transmitter Power-down mode switches off the internal antenna drivers thereby, turning off the RF field. Transmitter power-down mode is entered by setting either the TxControlReg register’s Tx1RFEn bit or Tx2RFEn bit to logic 0. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 94 of 125 NXP Semiconductors PN512 Transmission module 17. Oscillator circuitry PN512 OSCOUT OSCIN 27.12 MHz 001aan231 Fig 34. Quartz crystal connection The clock applied to the PN512 provides a time basis for the synchronous system’s encoder and decoder. The stability of the clock frequency, therefore, is an important factor for correct operation. To obtain optimum performance, clock jitter must be reduced as much as possible. This is best achieved using the internal oscillator buffer with the recommended circuitry. If an external clock source is used, the clock signal must be applied to pin OSCIN. In this case, special care must be taken with the clock duty cycle and clock jitter and the clock quality must be verified. 18. Reset and oscillator start-up time 18.1 Reset timing requirements The reset signal is filtered by a hysteresis circuit and a spike filter before it enters the digital circuit. The spike filter rejects signals shorter than 10 ns. In order to perform a reset, the signal must be LOW for at least 100 ns. 18.2 Oscillator start-up time If the PN512 has been set to a Power-down mode or is powered by a VDDX supply, the start-up time for the PN512 depends on the oscillator used and is shown in Figure 35. The time (tstartup) is the start-up time of the crystal oscillator circuit. The crystal oscillator start-up time is defined by the crystal. The time (td) is the internal delay time of the PN512 when the clock signal is stable before the PN512 can be addressed. The delay time is calculated by: 1024 t d = ------------- = 37.74 μ s 27 μ s The time (tosc) is the sum of td and tstartup. (5) PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 95 of 125 NXP Semiconductors PN512 Transmission module device activation oscillator clock stable clock ready tstartup tosc t 001aak596 td Fig 35. Oscillator start-up time 19. PN512 command set The PN512 operation is determined by a state machine capable of performing a set of commands. A command is executed by writing a command code (see Table 157) to the CommandReg register. Arguments and/or data necessary to process a command are exchanged via the FIFO buffer. 19.1 General description The PN512 operation is determined by a state machine capable of performing a set of commands. A command is executed by writing a command code (see Table 157) to the CommandReg register. Arguments and/or data necessary to process a command are exchanged via the FIFO buffer. 19.2 General behavior • Each command that needs a data bit stream (or data byte stream) as an input immediately processes any data in the FIFO buffer. An exception to this rule is the Transceive command. Using this command, transmission is started with the BitFramingReg register’s StartSend bit. • Each command that needs a certain number of arguments, starts processing only when it has received the correct number of arguments from the FIFO buffer. • The FIFO buffer is not automatically cleared when commands start. This makes it possible to write command arguments and/or the data bytes to the FIFO buffer and then start the command. • Each command can be interrupted by the host writing a new command code to the CommandReg register, for example, the Idle command. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 96 of 125 NXP Semiconductors PN512 Transmission module 19.3 PN512 command overview Table 157. Command overview Command Idle Mem Generate RandomID CalcCRC Transmit NoCmdChange Command Action code 0000 0001 0010 0011 0100 0111 no action, cancels current command execution stores 25 bytes into the internal buffer generates a 10-byte random ID number activates the CRC coprocessor or performs a self test transmits data from the FIFO buffer no command change, can be used to modify the CommandReg register bits without affecting the command, for example, the PowerDown bit activates the receiver circuits transmits data from FIFO buffer to antenna and automatically activates the receiver after transmission reserved for future use performs the MIFARE standard authentication as a reader resets the PN512 Receive Transceive MFAuthent SoftReset 1000 1100 1101 1110 1111 19.3.1 PN512 command descriptions 19.3.1.1 Idle Places the PN512 in Idle mode. The Idle command also terminates itself. 19.3.1.2 Mem Transfers 25 bytes from the FIFO buffer to the internal buffer. To read out the 25 bytes from the internal buffer the Mem command must be started with an empty FIFO buffer. In this case, the 25 bytes are transferred from the internal buffer to the FIFO. During a hard power-down (using pin NRSTPD), the 25 bytes in the internal buffer remain unchanged and are only lost if the power supply is removed from the PN512. This command automatically terminates when finished and the Idle command becomes active. 19.3.1.3 Generate RandomID This command generates a 10-byte random number which is initially stored in the internal buffer. This then overwrites the 10 bytes in the internal 25-byte buffer. This command automatically terminates when finished and the PN512 returns to Idle mode. 19.3.1.4 CalcCRC The FIFO buffer content is transferred to the CRC coprocessor and the CRC calculation is started. The calculation result is stored in the CRCResultReg register. The CRC calculation is not limited to a dedicated number of bytes. The calculation is not stopped when the FIFO buffer is empty during the data stream. The next byte written to the FIFO buffer is added to the calculation. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 97 of 125 NXP Semiconductors PN512 Transmission module The CRC preset value is controlled by the ModeReg register’s CRCPreset[1:0] bits. The value is loaded in to the CRC coprocessor when the command starts. This command must be terminated by writing a command to the CommandReg register, such as, the Idle command. If the AutoTestReg register’s SelfTest[3:0] bits are set correctly, the PN512 enters Self Test mode. Starting the CalcCRC command initiates a digital self test. The result of the self test is written to the FIFO buffer. 19.3.1.5 Transmit The FIFO buffer content is immediately transmitted after starting this command. Before transmitting the FIFO buffer content, all relevant registers must be set for data transmission. This command automatically terminates when the FIFO buffer is empty. It can be terminated by another command written to the CommandReg register. 19.3.1.6 NoCmdChange This command does not influence any running command in the CommandReg register. It can be used to manipulate any bit except the CommandReg register Command[3:0] bits, for example, the RcvOff bit or the PowerDown bit. 19.3.1.7 Receive The PN512 activates the receiver path and waits for a data stream to be received. The correct settings must be chosen before starting this command. This command automatically terminates when the data stream ends. This is indicated either by the end of frame pattern or by the length byte depending on the selected frame type and speed. Remark: If the RxModeReg register’s RxMultiple bit is set to logic 1, the Receive command will not automatically terminate. It must be terminated by starting another command in the CommandReg register. 19.3.1.8 Transceive This command continuously repeats the transmission of data from the FIFO buffer and the reception of data from the RF field. The first action is transmit and after transmission the command is changed to receive a data stream. Each transmit process must be started by setting the BitFramingReg register’s StartSend bit to logic 1. This command must be cleared by writing any command to the CommandReg register. Remark: If the RxModeReg register’s RxMultiple bit is set to logic 1, the Transceive command never leaves the receive state because this state cannot be cancelled automatically. 19.3.1.9 MFAuthent This command manages MIFARE authentication to enable a secure communication to any MIFARE Mini, MIFARE 1K and MIFARE 4K card. The following data is written to the FIFO buffer before the command can be activated: PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 98 of 125 NXP Semiconductors PN512 Transmission module • • • • • • • • • • • • Authentication command code (60h, 61h) Block address Sector key byte 0 Sector key byte 1 Sector key byte 2 Sector key byte 3 Sector key byte 4 Sector key byte 5 Card serial number byte 0 Card serial number byte 1 Card serial number byte 2 Card serial number byte 3 In total 12 bytes are written to the FIFO. Remark: When the MFAuthent command is active all access to the FIFO buffer is blocked. However, if there is access to the FIFO buffer, the ErrorReg register’s WrErr bit is set. This command automatically terminates when the MIFARE card is authenticated and the Status2Reg register’s MFCrypto1On bit is set to logic 1. This command does not terminate automatically if the card does not answer, so the timer must be initialized to automatic mode. In this case, in addition to the IdleIRq bit, the TimerIRq bit can be used as the termination criteria. During authentication processing, the RxIRq bit and TxIRq bit are blocked. The Crypto1On bit is only valid after termination of the MFAuthent command, either after processing the protocol or writing Idle to the CommandReg register. If an error occurs during authentication, the ErrorReg register’s ProtocolErr bit is set to logic 1 and the Status2Reg register’s Crypto1On bit is set to logic 0. 19.3.1.10 SoftReset This command performs a reset of the device. The configuration data of the internal buffer remains unchanged. All registers are set to the reset values. This command automatically terminates when finished. Remark: The SerialSpeedReg register is reset and therefore the serial data rate is set to 9.6 kBd. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 99 of 125 NXP Semiconductors PN512 Transmission module 20. Testsignals 20.1 Selftest The PN512 has the capability to perform a digital selftest. To start the selftest the following procedure has to be performed: 1. Perform a soft reset. 2. Clear the internal buffer by writing 25 bytes of 00h and perform the Config Command. 3. Enable the Selftest by writing the value 09h to the register AutoTestReg. 4. Write 00h to the FIFO. 5. Start the Selftest with the CalcCRC Command. 6. The Selftest will be performed. 7. When the Selftest is finished, the FIFO contains the following bytes: Correct answer for VersionReg equal to 82h: 0x00, 0xEB, 0x66, 0xBA, 0x57, 0xBF, 0x23, 0x95, 0xD0, 0xE3, 0x0D, 0x3D, 0x5C, 0xDE, 0x9D, 0x3B, 0xA7, 0x00, 0x21, 0x5B, 0x89, 0x82, 0x51, 0x02, 0x0C, 0xA5, 0x00, 0x49, 0x7C, 0x84, 0x4D, 0xB3, 0xCC, 0xD2, 0x5D, 0x48, 0x76, 0xD5, 0x71, 0x61, 0x21, 0xA9, 0x86, 0x96, 0x83, 0x9D, 0x5B, 0x6D, 0xDC, 0x15, 0xBA, 0x3E, 0x7D, 0x95, 0x3B, 0x2F 0x27, 0x3A, 0x1B, 0x38, 0x89, 0xEB, 0x81, 0xCF, 20.2 Testbus The testbus is implemented for production test purposes. The following configuration can be used to improve the design of a system using the PN512. The testbus allows to route internal signals to the digital interface. The testbus signals are selected by accessing TestBusSel in register TestSel2Reg. Table 158. Testsignal routing (TestSel2Reg = 07h) Pins Testsignal D6 sdata D5 scoll D4 svalid D3 sover D2 RCV_reset D1 RFon, filtered D0 Envelope Table 159. Description of Testsignals Pins D6 D5 D4 D3 D2 D1 D0 Testsignal sdata scoll svalid sover RCV_reset RFon, filtered Envelope Description shows the actual received data stream. shows if in the actual bit a collision has been detected (106 kbit only) shows if sdata and scoll are valid shows that the receiver has detected a stop condition (ISO/IEC 14443A/ MIFARE mode only). shows if the receiver is reset shows the value of the internal RF level detector shows the output of the internal coder Table 160. Testsignal routing (TestSel2Reg = 0Dh) Pins Testsignal PN512 D6 clkstable D5 clk27/8 D4 clk27rf/8 D3 clkrf13rf/4 D2 clk27 D1 clk27rf D0 clk13rf All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 100 of 125 NXP Semiconductors PN512 Transmission module Table 161. Description of Testsignals Pins D6 D5 D4 D3 D2 D1 D0 Testsignal clkstable clk27/8 clk27rf/8 clkrf13/4 clk27 clk27rf clk13rf Description shows if the oscillator delivers a stable signal. shows the output signal of the oscillator divided by 8 shows the clk27rf signal divided by 8 shows the clk13rf divided by 4. shows the output signal of the oscillator shows the RF clock multiplied by 2. shows the RF clock of 13.56 MHz Table 162. Testsignal routing (TestSel2Reg = 19h) Pins Testsignal D6 D5 TRunning D4 D3 D2 D1 D0 - Table 163. Description of Testsignals Pins D6 D5 D4 D3 D2 D1 D0 Testsignal TRunning Description TRunning stops 1 clockcycle after TimerIRQ is raised - 20.3 Testsignals at pin AUX Table 164. Testsignals description SelAux 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 Description for Aux1 / Aux2 Tristate DAC: register TestDAC 1/2 DAC: testsignal corr1 DAC: testsignal corr2 DAC: testsignal MinLevel DAC: ADC_I DAC: ADC_Q DAC: testsignal ADC_I combined with ADC_Q Testsignal for production test SAM clock High low TxActive RxActive Subcarrier detected TstBusBit Each signal can be switched to pin AUX1 or AUX2 by setting SelAux1 or SelAux2 in the register AnalogTestReg. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 101 of 125 NXP Semiconductors PN512 Transmission module Note: The DAC has a current output, it is recommended to use a 1 kΩ pull-down resistance at pins AUX1/AUX2. 20.4 PRBS Enables the PRBS9 or PRBS15 sequence according to ITU-TO150. To start the transmission of the defined datastream the command send has to be activated. The preamble/Sync byte/start bit/parity bit are generated automatically depending on the selected mode. Note: All relevant register to transmit data have to be configured before entering PRBS mode according ITU-TO150. 21. Application design-in information The figure below shows a typical circuit diagram, using a complementary antenna connection to the PN512. The antenna tuning and RF part matching is described in the application note “NFC Transmission Module Antenna and RF Design Guide”. supply DVDD DVDD PVDD SVDD AVDD TVDD RX R1 CRX VMID Cvmid R2 NRSTPD PN512 HOST CONTROLLER interface TX1 L0 C1 RQ C0 C2 antenna Lant TVSS IRQ C0 C2 C1 RQ TX2 AVSS DVSS L0 OSCIN OSCOUT 27.12 MHz 001aan232 Fig 36. Typical circuit diagram PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 102 of 125 NXP Semiconductors PN512 Transmission module 22. Limiting values Table 165. Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol VDDA VDDD Parameter analog supply voltage digital supply voltage Conditions Min −0.5 −0.5 −0.5 −0.5 −0.5 all input pins except pins SIGIN and RX pin MFIN Ptot Tj VESD total power dissipation junction temperature electrostatic discharge voltage HBM; 1500 Ω, 100 pF; JESD22-A114-B MM; 0.75 μH, 200 pF; JESD22-A114-A Field induced model; JESC22-C101-A per package; and VDDD in shortcut mode Max +4.0 +4.0 +4.0 +4.0 +4.0 Unit V V V V V VDD(PVDD) PVDD supply voltage VDD(TVDD) TVDD supply voltage VDD(SVDD) SVDD supply voltage VI input voltage VSS(PVSS) − 0.5 VDD(PVDD) + 0.5 V VSS(PVSS) − 0.5 VDD(SVDD) + 0.5 V 200 100 2000 200 500 mW °C V V V 23. Recommended operating conditions Table 166. Operating conditions Symbol VDDA VDDD VDD(TVDD) VDD(PVDD) VDD(SVDD) Tamb [1] [2] [3] Parameter analog supply voltage digital supply voltage TVDD supply voltage PVDD supply voltage SVDD supply voltage ambient temperature Conditions VDD(PVDD) ≤ VDDA = VDDD = VDD(TVDD); VSSA = VSSD = VSS(PVSS) = VSS(TVSS) = 0 V VDD(PVDD) ≤ VDDA = VDDD = VDD(TVDD); VSSA = VSSD = VSS(PVSS) = VSS(TVSS) = 0 V VDD(PVDD) ≤ VDDA = VDDD = VDD(TVDD); VSSA = VSSD = VSS(PVSS) = VSS(TVSS) = 0 V VDD(PVDD) ≤ VDDA = VDDD = VDD(TVDD); VSSA = VSSD = VSS(PVSS) = VSS(TVSS) = 0 V VSSA = VSSD = VSS(PVSS) = VSS(TVSS) = 0 V HVQFN32, HVQFN40 [1][2] Min 2.5 2.5 2.5 1.6 1.6 −30 Typ - Max 3.6 3.6 3.6 3.6 3.6 +85 Unit V V V V V °C [1][2] [1][2] [3] Supply voltages below 3 V reduce the performance (the achievable operating distance). VDDA, VDDD and VDD(TVDD) must always be the same voltage. VDD(PVDD) must always be the same or lower voltage than VDDD. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 103 of 125 NXP Semiconductors PN512 Transmission module 24. Thermal characteristics Table 167. Thermal characteristics Symbol Rthj-a Parameter Thermal resistance from junction to ambient Conditions In still air with exposed pad soldered on a 4 layer Jedec PCB In still air Package HVQFN32 HVQFN40 Typ 40 35 Unit K/W K/W 25. Characteristics Table 168. Characteristics Symbol Parameter Conditions Min Typ Max Unit Input characteristics Pins EA, I2C and NRSTPD ILI VIH VIL Pin SIGIN ILI VIH VIL Pin SDA ILI VIH VIL Pin RX[1] Vi Ci input voltage input capacitance VDDA = 3 V; receiver active; VRX(p-p) = 1 V; 1.5 V (DC) offset VDDA = 3 V; receiver active; VRX(p-p) = 1 V; 1.5 V (DC) offset −1 10 VDDA +1 V pF input leakage current HIGH-level input voltage LOW-level input voltage −1 +1 0.3VDD(PVDD) μA V V 0.7VDD(PVDD) input leakage current HIGH-level input voltage LOW-level input voltage −1 +1 0.3VDD(SVDD) μA V V 0.7VDD(SVDD) input leakage current HIGH-level input voltage LOW-level input voltage −1 +1 0.3VDD(PVDD) μA V V 0.7VDD(PVDD) - Ri input resistance - 350 - Ω Input voltage range; see Figure 37 Vi(p-p)(min) minimum peak-to-peak input Manchester encoded; voltage VDDA = 3 V Vi(p-p)(max) maximum peak-to-peak input Manchester encoded; voltage VDDA = 3 V Input sensitivity; see Figure 37 Vmod modulation voltage minimum Manchester encoded; VDDA = 3 V; RxGain[2:0] = 111b (48 dB) 5 mV 100 4 mV V Pin OSCIN ILI VIH VIL PN512 input leakage current HIGH-level input voltage LOW-level input voltage Rev. 3.7 — 18 May 2011 111337 −1 0.7VDDA All information provided in this document is subject to legal disclaimers. - +1 0.3VDDA μA V V © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC 104 of 125 NXP Semiconductors PN512 Transmission module Table 168. Characteristics …continued Symbol Ci Parameter input capacitance Conditions VDDA = 2.8 V; DC = 0.65 V; AC = 1 V (p-p) Min Typ 2 Max Unit pF Input/output characteristics pins D1, D2, D3, D4, D5, D6 and D7 ILI VIH VIL VOH VOL IOH IOL input leakage current HIGH-level input voltage LOW-level input voltage HIGH-level output voltage LOW-level output voltage HIGH-level output current LOW-level output current VDD(PVDD) = 3 V; IO = 4 mA VDD(PVDD) = 3 V; IO = 4 mA VDD(PVDD) = 3 V VDD(PVDD) = 3 V −1 VDD(PVDD) − 0.4 VSS(PVSS) +1 0.3VDD(PVDD) VDD(PVDD) VSS(PVSS) + 0.4 4 4 μA V V V V mA mA 0.7VDD(PVDD) - Output characteristics Pin SIGOUT VOH VOL IOL IOH Pin IRQ VOH VOL IOL IOH VOH VOL IOL IOH HIGH-level output voltage LOW-level output voltage LOW-level output current HIGH-level output current HIGH-level output voltage LOW-level output voltage LOW-level output current HIGH-level output current VDD(PVDD) = 3 V; IO = 4 mA VDD(PVDD) = 3 V; IO = 4 mA VDD(PVDD) = 3 V VDD(PVDD) = 3 V VDDD = 3 V; IO = 4 mA VDDD = 3 V; IO = 4 mA VDDD = 3 V VDDD = 3 V VDD(PVDD) − 0.4 VSS(PVSS) VDDD − 0.4 VSS(PVSS) VDD(PVDD) VSS(PVSS) + 0.4 4 4 VDDD VSS(PVSS) + 0.4 4 4 V V mA mA V V mA mA HIGH-level output voltage LOW-level output voltage LOW-level output current HIGH-level output current VDD(SVDD) = 3 V; IO = 4 mA VDD(SVDD) = 3 V; IO = 4 mA VDD(SVDD) = 3 V VDD(SVDD) = 3 V VDD(SVDD) − 0.4 VSS(PVSS) VDD(SVDD) VSS(PVSS) + 0.4 4 4 V V mA mA Pins AUX1 and AUX2 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 105 of 125 NXP Semiconductors PN512 Transmission module Table 168. Characteristics …continued Symbol VOH Parameter HIGH-level output voltage Conditions VDD(TVDD) = 3 V; IDD(TVDD) = 32 mA; CWGsP[5:0] = 3Fh VDD(TVDD) = 3 V; IDD(TVDD) = 80 mA; CWGsP[5:0] = 3Fh VDD(TVDD) = 2.5 V; IDD(TVDD) = 32 mA; CWGsP[5:0] = 3Fh VDD(TVDD) = 2.5 V; IDD(TVDD) = 80 mA; CWGsP[5:0] = 3Fh VOL LOW-level output voltage VDD(TVDD) = 3 V; IDD(TVDD) = 32 mA; CWGsP[5:0] = 0Fh VDD(TVDD) = 3 V; IDD(TVDD) = 80 mA; CWGsP[5:0] = 0Fh VDD(TVDD) = 2.5 V; IDD(TVDD) = 32 mA; CWGsP[5:0] = 0Fh VDD(TVDD) = 2.5 V; IDD(TVDD) = 80 mA; CWGsP[5:0] = 0Fh Current consumption Ipd power-down current VDDA = VDDD = VDD(TVDD) = VDD(PVDD) = 3 V hard power-down; pin NRSTPD set LOW soft power-down; RF level detector on IDDD IDDA digital supply current analog supply current pin DVDD; VDDD = 3 V pin AVDD; VDDA = 3 V; bit RcvOff = 0 pin AVDD; receiver switched off; VDDA = 3 V; bit RcvOff = 1 IDD(PVDD) IDD(TVDD) IDD(SVDD) fclk δclk tjit VOH PN512 Min VDD(TVDD) − 0.15 VDD(TVDD) − 0.4 VDD(TVDD) − 0.24 VDD(TVDD) − 0.64 - Typ - Max - Unit V Pins TX1 and TX2 - - V - - V - - V - 0.15 V - - 0.4 V - - 0.24 V - - 0.64 V [2] - 6.5 7 3 5 10 9 10 5 μA μA mA mA mA [2] PVDD supply current TVDD supply current SVDD supply current clock frequency clock duty cycle jitter time HIGH-level output voltage pin PVDD pin TVDD; continuous wave pin SVDD [3] [4][5][6] [7] 40 60 27.12 50 1.1 40 100 4 60 10 - mA mA mA MHz % ps V Clock frequency RMS pin OSCOUT - Crystal oscillator All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 106 of 125 NXP Semiconductors PN512 Transmission module Table 168. Characteristics …continued Symbol VOL Ci Parameter LOW-level output voltage input capacitance Conditions pin OSCOUT pin OSCOUT pin OSCIN Typical input requirements fxtal ESR CL Pxtal [1] [2] [3] [4] [5] [6] [7] Min - Typ 0.2 2 2 27.12 10 50 Max 100 100 Unit V pF pF MHz Ω pF mW crystal frequency equivalent series resistance load capacitance crystal power dissipation The voltage on pin RX is clamped by internal diodes to pins AVSS and AVDD. Ipd is the total current for all supplies. IDD(PVDD) depends on the overall load at the digital pins. IDD(TVDD) depends on VDD(TVDD) and the external circuit connected to pins TX1 and TX2. During typical circuit operation, the overall current is below 100 mA. Typical value using a complementary driver configuration and an antenna matched to 40 Ω between pins TX1 and TX2 at 13.56 MHz. IDD(SVDD) depends on the load at pin MFOUT. VDDA + 1 V Vmod Vi(p-p)(max) VMID Vi(p-p)(min) 13.56 MHz carrier 0V −1 V 001aak012 Fig 37. Pin RX input voltage range 25.1 Timing characteristics Table 169. SPI timing characteristics Symbol tWL tWH th(SCKH-D) Parameter pulse width LOW pulse width HIGH SCK HIGH to data input hold time Conditions line SCK line SCK SCK to changing MOSI Min 50 50 25 Typ Max Unit ns ns ns PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 107 of 125 NXP Semiconductors PN512 Transmission module Table 169. SPI timing characteristics …continued Symbol tsu(D-SCKH) th(SCKL-Q) Parameter data input to SCK HIGH set-up time SCK LOW to data output hold time Conditions changing MOSI to SCK SCK to changing MISO Min 25 0 Typ Max 25 Unit ns ns ns t(SCKL-NSSH) SCK LOW to NSS HIGH time Table 170. I2C-bus timing in Fast mode Symbol Parameter Conditions Fast mode Min Max 400 - High-speed Unit mode Min 0 160 Max 3400 kHz ns fSCL tHD;STA SCL clock frequency hold time (repeated) START condition set-up time for a repeated START condition set-up time for STOP condition LOW period of the SCL clock HIGH period of the SCL clock data hold time data set-up time rise time fall time rise time fall time bus free time between a STOP and START condition SCL signal SCL signal SDA and SCL signals SDA and SCL signals 0 after this period, 600 the first clock pulse is generated 600 600 600 0 100 20 20 20 20 1.3 tSU;STA tSU;STO tLOW tHIGH tHD;DAT tSU;DAT tr tf tr tf tBUF 900 300 300 300 300 - 160 160 160 60 0 10 10 10 10 10 1.3 70 40 40 80 80 - ns ns ns ns ns ns ns ns ns ns μs 1300 - PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 108 of 125 NXP Semiconductors PN512 Transmission module tSCKL SCK tSCKH tSCKL tSLDX tDXSH MOSI MSB tSHDX tDXSH LSB MISO MSB LSB tSLNH NSS 001aaj634 Remark: The signal NSS must be LOW to be able to send several bytes in one data stream. To send more than one data stream NSS must be set HIGH between the data streams. Fig 38. Timing diagram for SPI SDA tf tLOW SCL tr tHD;STA S tHIGH tHD;DAT Sr tSU;STO P S 001aaj635 tSU;DAT tf tHD;STA tSP tr tBUF tSU;STA Fig 39. Timing for Fast and Standard mode devices on the I2C-bus PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 109 of 125 NXP Semiconductors PN512 Transmission module 25.2 8-bit parallel interface timing 25.2.1 AC symbols Each timing symbol has five characters. The first character is always 't' for time. The other characters indicate the name of a signal or the logic state of that signal (depending on position): Table 171. AC symbols Designation A D W R L C S Signal address data NWR or nWait NRD or R/NW or nWrite ALE or AS NCS NDS or nDStrb and nAStrb, SCK Designation H L Z X V N Logic Level HIGH LOW high impedance any level or data any valid signal or data NSS Example: tAVLL = time for address valid to ALE low 25.2.2 AC operating specification 25.2.2.1 Bus timing for separated Read/Write strobe Table 172. Timing specification for separated Read/Write strobe Symbol Parameter tLHLL tAVLL tLLAX tLLWL tCLWL tWHCH tRLDV tRHDZ tDVWH tWHDX tWLWH tAVWL tWHAX tWHWL ALE pulse width Min 10 Max 35 10 Unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns Multiplexed Address Bus valid to ALE low (Address Set Up Time) 5 Multiplexed Address Bus valid after ALE low (Address Hold Time) 5 ALE low to NWR, NRD low NCS low to NRD, NWR low NRD, NWR high to NCS high NRD low to DATA valid NRD high to DATA high impedance DATA valid to NWR high DATA hold after NWR high (Data Hold Time) NRD, NWR pulse width Separated Address Bus valid to NRD, NWR low (Set Up Time) Separated Address Bus valid after NWR high (Hold Time) period between sequenced read/write accesses 10 0 0 5 5 40 30 5 40 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 110 of 125 NXP Semiconductors PN512 Transmission module tLHLL ALE tWHCH tCLWL NCS tLLWL tWHWL NWR NRD tAVLL tLLAX tWLDV tRLDV D0...D7 multiplexed addressbus A0...A3 A0...A3 D0...D7 tWHDX tRHDZ tWLWH tWHWL tAVWL SEPARATED ADDRESSBUS A0...A3 tWHAX 001aan233 Fig 40. Timing diagram for separated Read/Write strobe Remark: For separated address and data bus the signal ALE is not relevant and the multiplexed addresses on the data bus don’t care. For the multiplexed address and data bus the address lines A0 to A3 have to be connected as described in chapter Automatic host controller Interface Type Detection. 25.2.2.2 Bus timing for common Read/Write strobe Table 173. Timing specification for common Read/Write strobe Symbol tLHLL tAVLL tLLAX tLLSL tCLSL tSHCH tSLDV,R tSHDZ tDVSH tSHDX tSHRX tSLSH tAVSL tSHAX PN512 Parameter AS pulse width Min 10 Max 35 10 - Unit ns ns ns ns ns ns ns ns ns ns ns ns ns ns Multiplexed Address Bus valid to AS low (Address Set Up Time) 5 Multiplexed Address Bus valid after AS low (Address Hold Time) 5 AS low to NDS low NCS low to NDS low NDS high to NCS high NDS low to DATA valid (for read cycle) NDS low to DATA high impedance (read cycle) DATA valid to NDS high (for write cycle) DATA hold after NDS high (write cycle, Hold Time) R/NW hold after NDS high NDS pulse width Separated Address Bus valid to NDS low (Hold Time) Separated Address Bus valid after NDS high (Set Up Time) All information provided in this document is subject to legal disclaimers. 10 0 0 5 5 5 40 30 5 © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 111 of 125 NXP Semiconductors PN512 Transmission module tLHLL ALE tSHCH tCLSL NCS tRVSL R/NW tSHRX tLLSL tSHSL NDS tSLSH tSHSL tAVLL D0...D7 multiplexed addressbus A0...A3 A0...A3 tLLAX tSLDV, R tSLDV, W tSHDX tSHDZ D0...D7 tAVSL SEPARATED ADDRESSBUS A0...A3 tSHAX 001aan234 Fig 41. Timing diagram for common Read/Write strobe Remark: For separated address and data bus the signal ALE is not relevant and the multiplexed addresses on the data bus don’t care. For the multiplexed address and data bus the address lines A0 to A3 have to be connected as described in Automatic μ-Controller Interface Type Detection. PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 112 of 125 NXP Semiconductors PN512 Transmission module 26. Package information The PN512 can be delivered in 2 different packages. Table 174. Package information Package HVQFN32 HVQFN40 Remarks 8-bit parallel interface not supported Supports the 8-bit parallel interface PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 113 of 125 NXP Semiconductors PN512 Transmission module 27. Package outline HVQFN32: plastic thermal enhanced very thin quad flat package; no leads; 32 terminals; body 5 x 5 x 0.85 mm SOT617-1 D B A terminal 1 index area E A A1 c detail X e1 e 9 L 8 17 e 1/2 C eb 16 vMCAB wMC y1 C y Eh 1/2 e2 e 1 terminal 1 index area 24 32 Dh 0 2.5 scale E (1) 5.1 4.9 Eh 3.25 2.95 e 0.5 e1 3.5 e2 3.5 L 0.5 0.3 v 0.1 w 0.05 y 0.05 y1 0.1 5 mm 25 X DIMENSIONS (mm are the original dimensions) UNIT mm A(1) max. 1 A1 0.05 0.00 b 0.30 0.18 c 0.2 D (1) 5.1 4.9 Dh 3.25 2.95 Note 1. Plastic or metal protrusions of 0.075 mm maximum per side are not included. OUTLINE VERSION SOT617-1 REFERENCES IEC --JEDEC MO-220 JEITA --EUROPEAN PROJECTION ISSUE DATE 01-08-08 02-10-18 Fig 42. Package outline package version (HVQFN32) PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 114 of 125 NXP Semiconductors PN512 Transmission module HVQFN40: plastic thermal enhanced very thin quad flat package; no leads; 40 terminals; body 6 x 6 x 0.85 mm SOT618-1 D B A terminal 1 index area E A A1 c detail X e1 e 11 L 10 21 e 1/2 C e b 20 vMCAB wMC y1 C y Eh 1/2 e2 e 1 terminal 1 index area 30 40 Dh 0 2.5 scale E(1) 6.1 5.9 Eh 4.25 3.95 e 0.5 e1 4.5 e2 4.5 L 0.5 0.3 v 0.1 w 0.05 y 0.05 y1 0.1 5 mm 31 X DIMENSIONS (mm are the original dimensions) UNIT mm A(1) max. 1 A1 0.05 0.00 b 0.30 0.18 c 0.2 D(1) 6.1 5.9 Dh 4.25 3.95 Note 1. Plastic or metal protrusions of 0.075 mm maximum per side are not included. OUTLINE VERSION SOT618-1 REFERENCES IEC --JEDEC MO-220 JEITA --EUROPEAN PROJECTION ISSUE DATE 01-08-08 02-10-22 Fig 43. Package outline package version (HVQFN40) PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 115 of 125 NXP Semiconductors PN512 Transmission module 28. Abbreviations Table 175. Abbreviations Acronym ADC ASK BPSK CRC CW DAC EOF HBM I2C LSB MISO MM MOSI MSB NSS PCB PLL PRBS RX SOF SPI TX UART Description Analog-to-Digital Converter Amplitude Shift keying Binary Phase Shift Keying Cyclic Redundancy Check Continuous Wave Digital-to-Analog Converter End of frame Human Body Model Inter-integrated Circuit Least Significant Bit Master In Slave Out Machine Model Master Out Slave In Most Significant Bit Not Slave Select Printed-Circuit Board Phase-Locked Loop Pseudo-Random Bit Sequence Receiver Start Of Frame Serial Peripheral Interface Transmitter Universal Asynchronous Receiver Transmitter 29. Glossary Modulation index — Defined as the voltage ratio (Vmax − Vmin) / (Vmax + Vmin). Load modulation index — Defined as the voltage ratio for the card (Vmax − Vmin) / (Vmax + Vmin) measured at the card’s coil. Initiator — Generates RF field at 13.56 MHz and starts the NFCIP-1 communication. Target — Responds to command either using load modulation scheme (RF field generated by Initiator) or using modulation of self generated RF field (no RF field generated by initiator). 30. References [1] Application note — NFC Transmission Module Antenna and RF Design Guide PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 116 of 125 NXP Semiconductors PN512 Transmission module 31. Revision history Table 176. Revision history Document ID PN512 v3.7 Modifications: PN512 v.3.6 Modifications: PN512 v.3.5 Modifications: Release date 20110518 Data sheet status Product data sheet Change notice Supersedes PN512 v.3.6 • • Section 32.4 “Licenses” on page 119: License statement “Purchase of NXP ICs with NFC technology” added Product data sheet Product data sheet PN512 v.3.5 111334 Figure 36: corrected 20110310 20110211 • Table 2: type number upadated • General re-wording of MIFARE designation and commercial conditions. • Graphics: updated to latest standard. • Descriptive text: updated. • Register and bit names: updated. • Register tables: presentation updated. • Parameter symbols: updated. • Section 9.2.2.4: register update • Section 9.2.2.10: register update • Section 9.2.2.15: register update • Section 9.2.3.10: register update • Section 9.2.4.7: register update • Section 9.1.1: update of version • Section 9.2.4.8: update of version • Section 15: updated of time calculation • Section 20: updated of selftest result 8 September 2009 21 January 2009 June 2007 January 2007 October 2006 June 2005 Product data sheet Product data sheet Product data sheet Product data sheet Product data sheet Objective data sheet 111333 111332 111331 111330 111310 111334 111333 111332 111331 111330 111310 Modifications: • Initial version PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 117 of 125 NXP Semiconductors PN512 Transmission module 32. Legal information 32.1 Data sheet status Document status[1][2] Objective [short] data sheet Preliminary [short] data sheet Product [short] data sheet [1] [2] [3] Product status[3] Development Qualification Production Definition This document contains data from the objective specification for product development. This document contains data from the preliminary specification. This document contains the product specification. Please consult the most recently issued document before initiating or completing a design. The term ‘short data sheet’ is explained in section “Definitions”. The product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple devices. The latest product status information is available on the Internet at URL http://www.nxp.com. 32.2 Definitions Draft — The document is a draft version only. The content is still under internal review and subject to formal approval, which may result in modifications or additions. NXP Semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. Short data sheet — A short data sheet is an extract from a full data sheet with the same product type number(s) and title. A short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. For detailed and full information see the relevant full data sheet, which is available on request via the local NXP Semiconductors sales office. In case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. Product specification — The information and data provided in a Product data sheet shall define the specification of the product as agreed between NXP Semiconductors and its customer, unless NXP Semiconductors and customer have explicitly agreed otherwise in writing. In no event however, shall an agreement be valid in which the NXP Semiconductors product is deemed to offer functions and qualities beyond those described in the Product data sheet. malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. NXP Semiconductors accepts no liability for inclusion and/or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customer’s own risk. Applications — Applications that are described herein for any of these products are for illustrative purposes only. NXP Semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. Customers are responsible for the design and operation of their applications and products using NXP Semiconductors products, and NXP Semiconductors accepts no liability for any assistance with applications or customer product design. It is customer’s sole responsibility to determine whether the NXP Semiconductors product is suitable and fit for the customer’s applications and products planned, as well as for the planned application and use of customer’s third party customer(s). Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. NXP Semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer’s applications or products, or the application or use by customer’s third party customer(s). Customer is responsible for doing all necessary testing for the customer’s applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by customer’s third party customer(s). NXP does not accept any liability in this respect. Limiting values — Stress above one or more limiting values (as defined in the Absolute Maximum Ratings System of IEC 60134) will cause permanent damage to the device. Limiting values are stress ratings only and (proper) operation of the device at these or any other conditions above those given in the Recommended operating conditions section (if present) or the Characteristics sections of this document is not warranted. Constant or repeated exposure to limiting values will permanently and irreversibly affect the quality and reliability of the device. Terms and conditions of commercial sale — NXP Semiconductors products are sold subject to the general terms and conditions of commercial sale, as published at http://www.nxp.com/profile/terms, unless otherwise agreed in a valid written individual agreement. In case an individual agreement is concluded only the terms and conditions of the respective agreement shall apply. NXP Semiconductors hereby expressly objects to applying the customer’s general terms and conditions with regard to the purchase of NXP Semiconductors products by customer. No offer to sell or license — Nothing in this document may be interpreted or construed as an offer to sell products that is open for acceptance or the grant, conveyance or implication of any license under any copyrights, patents or other industrial or intellectual property rights. Export control — This document as well as the item(s) described herein may be subject to export control regulations. Export might require a prior authorization from national authorities. © NXP B.V. 2011. All rights reserved. 32.3 Disclaimers Limited warranty and liability — Information in this document is believed to be accurate and reliable. However, NXP Semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. In no event shall NXP Semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. Notwithstanding any damages that customer might incur for any reason whatsoever, NXP Semiconductors’ aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the Terms and conditions of commercial sale of NXP Semiconductors. Right to make changes — NXP Semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. This document supersedes and replaces all information supplied prior to the publication hereof. Suitability for use — NXP Semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or PN512 All information provided in this document is subject to legal disclaimers. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 118 of 125 NXP Semiconductors PN512 Transmission module Quick reference data — The Quick reference data is an extract of the product data given in the Limiting values and Characteristics sections of this document, and as such is not complete, exhaustive or legally binding. Non-automotive qualified products — Unless this data sheet expressly states that this specific NXP Semiconductors product is automotive qualified, the product is not suitable for automotive use. It is neither qualified nor tested in accordance with automotive testing or application requirements. NXP Semiconductors accepts no liability for inclusion and/or use of non-automotive qualified products in automotive equipment or applications. In the event that customer uses the product for design-in and use in automotive applications to automotive specifications and standards, customer (a) shall use the product without NXP Semiconductors’ warranty of the product for such automotive applications, use and specifications, and (b) whenever customer uses the product for automotive applications beyond NXP Semiconductors’ specifications such use shall be solely at customer’s own risk, and (c) customer fully indemnifies NXP Semiconductors for any liability, damages or failed product claims resulting from customer design and use of the product for automotive applications beyond NXP Semiconductors’ standard warranty and NXP Semiconductors’ product specifications. 32.4 Licenses Purchase of NXP ICs with ISO/IEC 14443 type B functionality This NXP Semiconductors IC is ISO/IEC 14443 Type B software enabled and is licensed under Innovatron’s Contactless Card patents license for ISO/IEC 14443 B. The license includes the right to use the IC in systems and/or end-user equipment. RATP/Innovatron Technology Purchase of NXP ICs with NFC technology Purchase of an NXP Semiconductors IC that complies with one of the Near Field Communication (NFC) standards ISO/IEC 18092 and ISO/IEC 21481 does not convey an implied license under any patent right infringed by implementation of any of those standards. A license for the patents portfolio of NXP B.V. for the NFC standards needs to be obtained at Via Licensing, the pool agent of the NFC Patent Pool, e-mail: info@vialicensing.com. 32.5 Trademarks Notice: All referenced brands, product names, service names and trademarks are the property of their respective owners. I2C-bus — logo is a trademark of NXP B.V. MIFARE — is a trademark of NXP B.V. 33. Contact information For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 119 of 125 NXP Semiconductors PN512 Transmission module 34. Tables Table 1. Table 2. Table 3. Table 4. Table 5. Table 6. Table 7. Table 8. Table 9. Table 10. Table 11. Table 12. Table 13. Table 14. Table 15. Table 16. Table 17. Table 18. Table 19. Table 20. Table 21. Table 22. Table 23. Table 24. Table 25. Table 26. Table 27. Table 28. Table 29. Table 30. Table 31. Table 32. Table 33. Table 34. Table 35. Table 36. Table 37. Table 38. Table 39. Table 40. PN512 Quick reference data . . . . . . . . . . . . . . . . . . . . .4 Ordering information . . . . . . . . . . . . . . . . . . . . .4 Pin description HVQFN32 . . . . . . . . . . . . . . . . .8 Pin description HVQFN40 . . . . . . . . . . . . . . . . .9 Communication overview for ISO/IEC 14443 A/MIFARE reader/writer . . . . .10 Communication overview for FeliCa reader/writer . . . . . . . . . . . . . . . . . . . . . . . . . . .12 FeliCa framing and coding . . . . . . . . . . . . . . . .12 Start value for the CRC Polynomial: (00h), (00h)12 Communication overview for Active communication mode . . . . . . . . . . . . . . . . . . . .14 Communication overview for Passive communication mode . . . . . . . . . . . . . . . . . . . .15 Framing and coding overview. . . . . . . . . . . . . .16 MIFARE Card operation mode . . . . . . . . . . . . .16 FeliCa Card operation mode . . . . . . . . . . . . . .17 PN512 registers overview . . . . . . . . . . . . . . . .17 Behavior of register bits and its designation . . .19 PageReg register (address 00h); reset value: 00h, 0000000b . . . . . . . . . . . . . . . . . . . . . . . . .20 Description of PageReg bits . . . . . . . . . . . . . . .20 CommandReg register (address 01h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . .20 Description of CommandReg bits . . . . . . . . . . .20 CommIEnReg register (address 02h); reset value: 80h, 10000000b . . . . . . . . . . . . . . . . . . . . . . . .21 Description of CommIEnReg bits . . . . . . . . . . .21 DivIEnReg register (address 03h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .22 Description of DivIEnReg bits . . . . . . . . . . . . . .22 CommIRqReg register (address 04h); reset value: 14h, 00010100b . . . . . . . . . . . . . . . . . . . . . . . .23 Description of CommIRqReg bits . . . . . . . . . . .23 DivIRqReg register (address 05h); reset value: XXh, 000X00XXb . . . . . . . . . . . . . . . . . . . . . . .24 Description of DivIRqReg bits . . . . . . . . . . . . .24 ErrorReg register (address 06h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 Description of ErrorReg bits . . . . . . . . . . . . . . .25 Status1Reg register (address 07h); reset value: XXh, X100X01Xb . . . . . . . . . . . . . . . . . . . . . . .26 Description of Status1Reg bits . . . . . . . . . . . . .26 Status2Reg register (address 08h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .27 Description of Status2Reg bits . . . . . . . . . . . . .27 FIFODataReg register (address 09h); reset value: XXh, XXXXXXXXb . . . . . . . . . . . . . . . . . . . . . .28 Description of FIFODataReg bits . . . . . . . . . . .28 FIFOLevelReg register (address 0Ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .28 Description of FIFOLevelReg bits. . . . . . . . . . .28 WaterLevelReg register (address 0Bh); reset value: 08h, 00001000b . . . . . . . . . . . . . . . . . . .29 Description of WaterLevelReg bits . . . . . . . . . .29 ControlReg register (address 0Ch); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 29 Table 41. Description of ControlReg bits . . . . . . . . . . . . 29 Table 42. BitFramingReg register (address 0Dh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 30 Table 43. Description of BitFramingReg bits . . . . . . . . . . 30 Table 44. CollReg register (address 0Eh); reset value: XXh, 101XXXXXb . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 Table 45. Description of CollReg bits. . . . . . . . . . . . . . . . 31 Table 46. PageReg register (address 10h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 Table 47. Description of PageReg bits . . . . . . . . . . . . . . 32 Table 48. ModeReg register (address 11h); reset value: 3Bh, 00111011b . . . . . . . . . . . . . . . . . . . . . . . . 33 Table 49. Description of ModeReg bits . . . . . . . . . . . . . . 33 Table 50. TxModeReg register (address 12h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 34 Table 51. Description of TxModeReg bits . . . . . . . . . . . . 34 Table 52. RxModeReg register (address 13h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 35 Table 53. Description of RxModeReg bits . . . . . . . . . . . . 35 Table 54. TxControlReg register (address 14h); reset value: 80h, 10000000b . . . . . . . . . . . . . . . . . . . . . . . . 36 Table 55. Description of TxControlReg bits . . . . . . . . . . . 36 Table 56. TxAutoReg register (address 15h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 37 Table 57. Description of TxAutoReg bits . . . . . . . . . . . . . 37 Table 58. TxSelReg register (address 16h); reset value: 10h, 00010000b . . . . . . . . . . . . . . . . . . . . . . . . 38 Table 59. Description of TxSelReg bits . . . . . . . . . . . . . . 38 Table 60. RxSelReg register (address 17h); reset value: 84h, 10000100b . . . . . . . . . . . . . . . . . . . . . . . . 40 Table 61. Description of RxSelReg bits . . . . . . . . . . . . . . 40 Table 62. RxThresholdReg register (address 18h); reset value: 84h, 10000100b . . . . . . . . . . . . . . . . . . 40 Table 63. Description of RxThresholdReg bits . . . . . . . . 40 Table 64. DemodReg register (address 19h); reset value: 4Dh, 01001101b. . . . . . . . . . . . . . . . . . . . . . . . 41 Table 65. Description of DemodReg bits . . . . . . . . . . . . . 41 Table 66. FelNFC1Reg register (address 1Ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 42 Table 67. Description of FelNFC1Reg bits . . . . . . . . . . . 42 Table 68. FelNFC2Reg register (address1Bh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 43 Table 69. Description of FelNFC2Reg bits . . . . . . . . . . . 43 Table 70. MifNFCReg register (address 1Ch); reset value: 62h, 01100010b . . . . . . . . . . . . . . . . . . . . . . . . 44 Table 71. Description of MifNFCReg bits. . . . . . . . . . . . . 44 Table 72. ManualRCVReg register (address 1Dh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 45 Table 73. Description of ManualRCVReg bits . . . . . . . . . 45 Table 74. TypeBReg register (address 1Eh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 46 Table 75. Description of TypeBReg bits. . . . . . . . . . . . . . 46 Table 76. SerialSpeedReg register (address 1Fh); reset value: EBh, 11101011b . . . . . . . . . . . . . . . . . . 46 Table 77. Description of SerialSpeedReg bits . . . . . . . . . 47 © NXP B.V. 2011. All rights reserved. All information provided in this document is subject to legal disclaimers. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 120 of 125 NXP Semiconductors PN512 Transmission module value: 80h, 10000000b . . . . . . . . . . . . . . . . . . 59 Table 117. Description of TestPinEnReg bits . . . . . . . . . . 59 Table 118. TestPinValueReg register (address 34h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 59 Table 119. Description of TestPinValueReg bits . . . . . . . . 59 Table 120. TestBusReg register (address 35h); reset value: XXh, XXXXXXXXb . . . . . . . . . . . . . . . . . . . . . . 60 Table 121. Description of TestBusReg bits . . . . . . . . . . . . 60 Table 122. AutoTestReg register (address 36h); reset value: 40h, 01000000b . . . . . . . . . . . . . . . . . . . . . . . . 60 Table 123. Description of bits . . . . . . . . . . . . . . . . . . . . . . 60 Table 124. VersionReg register (address 37h); reset value: XXh, XXXXXXXXb . . . . . . . . . . . . . . . . . . . . . . 61 Table 125. Description of VersionReg bits . . . . . . . . . . . . 61 Table 126. AnalogTestReg register (address 38h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . 62 Table 127. Description of AnalogTestReg bits . . . . . . . . . 62 Table 128. TestDAC1Reg register (address 39h); reset value: XXh, 00XXXXXXb . . . . . . . . . . . . . . . . . 63 Table 129. Description of TestDAC1Reg bits . . . . . . . . . . 63 Table 130. TestDAC2Reg register (address 3Ah); reset value: XXh, 00XXXXXXb . . . . . . . . . . . . . . . . . 63 Table 131. Description ofTestDAC2Reg bits . . . . . . . . . . . 63 Table 132. TestADCReg register (address 3Bh); reset value: XXh, XXXXXXXXb . . . . . . . . . . . . . . . . . . . . . . 63 Table 133. Description of TestADCReg bits . . . . . . . . . . . 63 Table 134. RFTReg register (address 3Ch); reset value: FFh, 11111111b . . . . . . . . . . . . . . . . . . . . . . . . 64 Table 135. Description of RFTReg bits . . . . . . . . . . . . . . . 64 Table 136. RFTReg register (address 3Dh, 3Fh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . 64 Table 137. Description of RFTReg bits . . . . . . . . . . . . . . . 64 Table 138. RFTReg register (address 3Eh); reset value: 03h, 00000011b . . . . . . . . . . . . . . . . . . . . . . . . 64 Table 139. Description of RFTReg bits . . . . . . . . . . . . . . . 64 Table 140. Connection protocol for detecting different interface types . . . . . . . . . . . . . . . . . . . . . . . . . 65 Table 141. Connection scheme for detecting the different interface types . . . . . . . . . . . . . . . . . . . . . . . . . 65 Table 142. MOSI and MISO byte order . . . . . . . . . . . . . . 66 Table 143. MOSI and MISO byte order . . . . . . . . . . . . . . 67 Table 144. Address byte 0 register; address MOSI . . . . . 67 Table 145. BR_T0 and BR_T1 settings . . . . . . . . . . . . . . 68 Table 146. Selectable UART transfer speeds . . . . . . . . . 68 Table 147. UART framing . . . . . . . . . . . . . . . . . . . . . . . . . 68 Table 148. Read data byte order . . . . . . . . . . . . . . . . . . . 69 Table 149. Write data byte order . . . . . . . . . . . . . . . . . . . 69 Table 150. Address byte 0 register; address MOSI . . . . . 71 Table 151. Supported interface types . . . . . . . . . . . . . . . . 78 Table 152. Register and bit settings controlling the signal on pin TX1 . . . . . . . . . . . . . . . . . . . . . . 80 Table 153. Register and bit settings controlling the signal on pin TX2 . . . . . . . . . . . . . . . . . . . . . . 81 Table 154. Setting of the bits RFlevel in register RFCfgReg (RFLevel amplifier deactivated) . . . . . . . . . . . . 82 Table 155. CRC coprocessor parameters . . . . . . . . . . . . 89 Table 156. Interrupt sources . . . . . . . . . . . . . . . . . . . . . . 91 Table 157. Command overview . . . . . . . . . . . . . . . . . . . . 97 © NXP B.V. 2011. All rights reserved. Table 78. PageReg register (address 20h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 Table 79. Description of PageReg bits . . . . . . . . . . . . . . .48 Table 80. CRCResultReg register (address 21h); reset value: FFh, 11111111b. . . . . . . . . . . . . . . . . . . .48 Table 81. Description of CRCResultReg bits . . . . . . . . . .48 Table 82. CRCResultReg register (address 22h); reset value: FFh, 11111111b. . . . . . . . . . . . . . . . . . . .48 Table 83. Description of CRCResultReg bits . . . . . . . . . .48 Table 84. GsNOffReg register (address 23h); reset value: 88h, 10001000b . . . . . . . . . . . . . . . . . . . . . . . .49 Table 85. Description of GsNOffReg bits . . . . . . . . . . . . .49 Table 86. ModWidthReg register (address 24h); reset value: 26h, 00100110b . . . . . . . . . . . . . . . . . . . . . . . .50 Table 87. Description of ModWidthReg bits . . . . . . . . . . .50 Table 88. TxBitPhaseReg register (address 25h); reset value: 87h, 10000111b . . . . . . . . . . . . . . . . . . .50 Table 89. Description of TxBitPhaseReg bits . . . . . . . . . .50 Table 90. RFCfgReg register (address 26h); reset value: 48h, 01001000b . . . . . . . . . . . . . . . . . . . . . . . .51 Table 91. Description of RFCfgReg bits . . . . . . . . . . . . .51 Table 92. GsNOnReg register (address 27h); reset value: 88h, 10001000b . . . . . . . . . . . . . . . . . . . . . . . .52 Table 93. Description of GsNOnReg bits . . . . . . . . . . . . .52 Table 94. CWGsPReg register (address 28h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . . . . . . .52 Table 95. Description of CWGsPReg bits. . . . . . . . . . . . .52 Table 96. ModGsPReg register (address 29h); reset value: 20h, 00100000b . . . . . . . . . . . . . . . . . . . . . . . .53 Table 97. Description of ModGsPReg bits . . . . . . . . . . . .53 Table 98. TModeReg register (address 2Ah); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .53 Table 99. Description of TModeReg bits . . . . . . . . . . . . .53 Table 100. TPrescalerReg register (address 2Bh); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . .54 Table 101. Description of TPrescalerReg bits . . . . . . . . . .54 Table 102. TReloadReg (Higher bits) register (address 2Ch); reset value: 00h, 00000000b . . . . . . . . . . . . . .55 Table 103. Description of the higher TReloadReg bits . . .55 Table 104. TReloadReg (Lower bits) register (address 2Dh); reset value: 00h, 00000000b . . . . . . . . . . . . . .55 Table 105. Description of lower TReloadReg bits . . . . . . .55 Table 106. TCounterValReg (Higher bits) register (address 2Eh); reset value: XXh, XXXXXXXXb . . . . . . .56 Table 107. Description of the higher TCounterValReg bits 56 Table 108. TCounterValReg (Lower bits) register (address 2Fh); reset value: XXh, XXXXXXXXb. . . . . . . .56 Table 109. Description of lower TCounterValReg bits . . . .56 Table 110. PageReg register (address 30h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .56 Table 111. Description of PageReg bits . . . . . . . . . . . . . . .57 Table 112. TestSel1Reg register (address 31h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .58 Table 113. Description of TestSel1Reg bits . . . . . . . . . . . .58 Table 114. TestSel2Reg register (address 32h); reset value: 00h, 00000000b . . . . . . . . . . . . . . . . . . . . . . . .58 Table 115. Description of TestSel2Reg bits . . . . . . . . . . . .58 Table 116. TestPinEnReg register (address 33h); reset PN512 All information provided in this document is subject to legal disclaimers. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 121 of 125 NXP Semiconductors PN512 Transmission module Table 158. Testsignal routing (TestSel2Reg = 07h) . . . . .100 Table 159. Description of Testsignals . . . . . . . . . . . . . . .100 Table 160. Testsignal routing (TestSel2Reg = 0Dh) . . . .100 Table 161. Description of Testsignals . . . . . . . . . . . . . . .101 Table 162. Testsignal routing (TestSel2Reg = 19h) . . . . .101 Table 163. Description of Testsignals . . . . . . . . . . . . . . .101 Table 164. Testsignals description. . . . . . . . . . . . . . . . . .101 Table 165. Limiting values . . . . . . . . . . . . . . . . . . . . . . .103 Table 166. Operating conditions . . . . . . . . . . . . . . . . . . .103 Table 167. Thermal characteristics . . . . . . . . . . . . . . . . .104 Table 168. Characteristics . . . . . . . . . . . . . . . . . . . . . . .104 Table 169. SPI timing characteristics . . . . . . . . . . . . . . .107 Table 170. I2C-bus timing in Fast mode . . . . . . . . . . . . .108 Table 171. AC symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Table 172. Timing specification for separated Read/Write strobe. . . . . . . . . . . . . . . . . . . . . . 110 Table 173. Timing specification for common Read/Write strobe. . . . . . . . . . . . . . . . . . . . . . 111 Table 174. Package information . . . . . . . . . . . . . . . . . . . 113 Table 175. Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . 116 Table 176. Revision history . . . . . . . . . . . . . . . . . . . . . . . 117 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 122 of 125 NXP Semiconductors PN512 Transmission module 35. Figures Fig 1. Fig 2. Fig 3. Fig 4. Fig 5. Fig 6. Fig 7. Fig 8. Fig 9. Fig 10. Fig 11. Fig 12. Fig 13. Fig 14. Fig 15. Fig 16. Fig 17. Fig 18. Fig 19. Fig 20. Fig 21. Fig 22. Fig 23. Fig 24. Fig 25. Fig 26. Fig 27. Fig 28. Fig 29. Fig 30. Fig 31. Fig 32. Fig 33. Fig 34. Fig 35. Fig 36. Fig 37. Fig 38. Fig 39. Fig 40. Fig 41. Fig 42. Fig 43. Simplified block diagram of the PN512 . . . . . . . . .5 Detailed block diagram of the PN512 . . . . . . . . . .6 Pinning configuration HVQFN32 (SOT617-1) . . . .7 Pinning configuration HVQFN40 (SOT618-1) . . . .7 PN512 Read/Write mode . . . . . . . . . . . . . . . . . . .10 ISO/IEC 14443 A/MIFARE Read/Write mode communication diagram. . . . . . . . . . . . . . . . . . . .10 Data coding and framing according to ISO/IEC 14443 A . . . . . . . . . . . . . . . . . . . . . . . . . 11 FeliCa reader/writer communication diagram . . .12 NFCIP-1 mode . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Active communication mode . . . . . . . . . . . . . . . .14 Passive communication mode . . . . . . . . . . . . . . .15 SPI connection to host . . . . . . . . . . . . . . . . . . . . .66 UART connection to microcontrollers . . . . . . . . .67 UART read data timing diagram . . . . . . . . . . . . .69 UART write data timing diagram . . . . . . . . . . . . .70 I2C-bus interface . . . . . . . . . . . . . . . . . . . . . . . . .71 Bit transfer on the I2C-bus . . . . . . . . . . . . . . . . . .72 START and STOP conditions . . . . . . . . . . . . . . .72 Acknowledge on the I2C-bus . . . . . . . . . . . . . . . .73 Data transfer on the I2C-bus . . . . . . . . . . . . . . . .73 First byte following the START procedure . . . . . .74 Register read and write access . . . . . . . . . . . . . .75 I2C-bus HS mode protocol switch . . . . . . . . . . . .76 I2C-bus HS mode protocol frame. . . . . . . . . . . . .77 Connection to host controller with separated Read/Write strobes . . . . . . . . . . . . . . . . . . . . . . .79 Connection to host controller with common Read/Write strobes . . . . . . . . . . . . . . . . . . . . . . .79 Data mode detector . . . . . . . . . . . . . . . . . . . . . . .83 Serial data switch for TX1 and TX2 . . . . . . . . . . .84 Communication flows using the S2C interface. . .85 Signal shape for SIGOUT in FeliCa card SAM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86 Signal shape for SIGIN in SAM mode . . . . . . . . .86 Signal shape for SIGOUT in MIFARE Card SAM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 Signal shape for SIGIN in MIFARE Card SAM mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 Quartz crystal connection . . . . . . . . . . . . . . . . . .95 Oscillator start-up time . . . . . . . . . . . . . . . . . . . . .96 Typical circuit diagram . . . . . . . . . . . . . . . . . . . .102 Pin RX input voltage range . . . . . . . . . . . . . . . .107 Timing diagram for SPI . . . . . . . . . . . . . . . . . . .109 Timing for Fast and Standard mode devices on the I2C-bus . . . . . . . . . . . . . . . . . . . . . . . . . .109 Timing diagram for separated Read/Write strobe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 Timing diagram for common Read/Write strobe 112 Package outline package version (HVQFN32) . 114 Package outline package version (HVQFN40) . 115 PN512 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 123 of 125 NXP Semiconductors PN512 Transmission module 36. Contents 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 General description . . . . . . . . . . . . . . . . . . . . . . 1 3 Features and benefits . . . . . . . . . . . . . . . . . . . . 3 4 Quick reference data . . . . . . . . . . . . . . . . . . . . . 4 5 Ordering information . . . . . . . . . . . . . . . . . . . . . 4 6 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 5 7 Pinning information . . . . . . . . . . . . . . . . . . . . . . 7 7.1 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7.2 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 8 8 Functional description . . . . . . . . . . . . . . . . . . 10 8.1 ISO/IEC 14443 A/MIFARE functionality . . . . . 10 8.2 ISO/IEC 14443 B functionality . . . . . . . . . . . . 11 8.3 FeliCa reader/writer functionality . . . . . . . . . . 12 8.3.1 FeliCa framing and coding . . . . . . . . . . . . . . . 12 8.4 NFCIP-1 mode . . . . . . . . . . . . . . . . . . . . . . . . 13 8.4.1 Active communication mode . . . . . . . . . . . . . 14 8.4.2 Passive communication mode . . . . . . . . . . . . 15 8.4.3 NFCIP-1 framing and coding . . . . . . . . . . . . . 16 8.4.4 NFCIP-1 protocol support . . . . . . . . . . . . . . . . 16 8.4.5 MIFARE Card operation mode . . . . . . . . . . . . 16 8.4.6 FeliCa Card operation mode . . . . . . . . . . . . . 17 9 PN512 register SET . . . . . . . . . . . . . . . . . . . . . 17 9.1 PN512 registers overview. . . . . . . . . . . . . . . . 17 9.1.1 Register bit behavior. . . . . . . . . . . . . . . . . . . . 19 9.2 Register description . . . . . . . . . . . . . . . . . . . . 20 9.2.1 Page 0: Command and status . . . . . . . . . . . . 20 9.2.1.1 PageReg. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 9.2.1.2 CommandReg . . . . . . . . . . . . . . . . . . . . . . . . 20 9.2.1.3 CommIEnReg . . . . . . . . . . . . . . . . . . . . . . . . . 21 9.2.1.4 DivIEnReg . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 9.2.1.5 CommIRqReg . . . . . . . . . . . . . . . . . . . . . . . . . 23 9.2.1.6 DivIRqReg . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 9.2.1.7 ErrorReg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 9.2.1.8 Status1Reg . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 9.2.1.9 Status2Reg . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 9.2.1.10 FIFODataReg . . . . . . . . . . . . . . . . . . . . . . . . . 28 9.2.1.11 FIFOLevelReg . . . . . . . . . . . . . . . . . . . . . . . . 28 9.2.1.12 WaterLevelReg . . . . . . . . . . . . . . . . . . . . . . . . 29 9.2.1.13 ControlReg . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.2.1.14 BitFramingReg . . . . . . . . . . . . . . . . . . . . . . . . 30 9.2.1.15 CollReg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 9.2.2 Page 1: Communication . . . . . . . . . . . . . . . . . 32 9.2.2.1 PageReg. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 9.2.2.2 ModeReg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 9.2.2.3 TxModeReg . . . . . . . . . . . . . . . . . . . . . . . . . . 34 9.2.2.4 RxModeReg . . . . . . . . . . . . . . . . . . . . . . . . . . 35 9.2.2.5 TxControlReg . . . . . . . . . . . . . . . . . . . . . . . . . 36 9.2.2.6 TxAutoReg . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 9.2.2.7 TxSelReg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 9.2.2.8 RxSelReg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 9.2.2.9 RxThresholdReg. . . . . . . . . . . . . . . . . . . . . . . 40 9.2.2.10 DemodReg . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 9.2.2.11 FelNFC1Reg. . . . . . . . . . . . . . . . . . . . . . . . . . 42 9.2.2.12 FelNFC2Reg. . . . . . . . . . . . . . . . . . . . . . . . . . 43 PN512 9.2.2.13 MifNFCReg . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.2.14 ManualRCVReg . . . . . . . . . . . . . . . . . . . . . . . 9.2.2.15 TypeBReg . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.2.16 SerialSpeedReg . . . . . . . . . . . . . . . . . . . . . . . 9.2.3 Page 2: Configuration . . . . . . . . . . . . . . . . . . 9.2.3.1 PageReg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.2 CRCResultReg . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.3 GsNOffReg . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.4 ModWidthReg . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.5 TxBitPhaseReg . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.6 RFCfgReg . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.7 GsNOnReg . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.8 CWGsPReg . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.9 ModGsPReg . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.10 TMode Register, TPrescaler Register . . . . . . 9.2.3.11 TReloadReg. . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.3.12 TCounterValReg . . . . . . . . . . . . . . . . . . . . . . 9.2.4 Page 3: Test . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.1 PageReg . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.2 TestSel1Reg. . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.3 TestSel2Reg. . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.4 TestPinEnReg . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.5 TestPinValueReg . . . . . . . . . . . . . . . . . . . . . . 9.2.4.6 TestBusReg . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.7 AutoTestReg . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.8 VersionReg . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.9 AnalogTestReg. . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.10 TestDAC1Reg . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.11 TestDAC2Reg . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.12 TestADCReg . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4.13 RFTReg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Digital interfaces . . . . . . . . . . . . . . . . . . . . . . . 10.1 Automatic microcontroller interface detection 10.2 Serial Peripheral Interface . . . . . . . . . . . . . . . 10.2.1 SPI read data . . . . . . . . . . . . . . . . . . . . . . . . . 10.2.2 SPI write data. . . . . . . . . . . . . . . . . . . . . . . . . 10.2.3 SPI address byte . . . . . . . . . . . . . . . . . . . . . . 10.3 UART interface . . . . . . . . . . . . . . . . . . . . . . . 10.3.1 Connection to a host . . . . . . . . . . . . . . . . . . . 10.3.2 Selectable UART transfer speeds . . . . . . . . . 10.3.3 UART framing . . . . . . . . . . . . . . . . . . . . . . . . 10.4 I2C Bus Interface . . . . . . . . . . . . . . . . . . . . . . 10.4.1 Data validity . . . . . . . . . . . . . . . . . . . . . . . . . . 10.4.2 START and STOP conditions. . . . . . . . . . . . . 10.4.3 Byte format. . . . . . . . . . . . . . . . . . . . . . . . . . . 10.4.4 Acknowledge . . . . . . . . . . . . . . . . . . . . . . . . . 10.4.5 7-Bit addressing . . . . . . . . . . . . . . . . . . . . . . . 10.4.6 Register write access. . . . . . . . . . . . . . . . . . . 10.4.7 Register read access . . . . . . . . . . . . . . . . . . . 10.4.8 High-speed mode. . . . . . . . . . . . . . . . . . . . . . 10.4.9 High-speed transfer . . . . . . . . . . . . . . . . . . . . 10.4.10 Serial data transfer format in HS mode . . . . . 10.4.11 Switching between F/S mode and HS mode . 10.4.12 PN512 at lower speed modes . . . . . . . . . . . . 11 8-bit parallel interface . . . . . . . . . . . . . . . . . . . 44 45 46 46 48 48 48 49 50 50 51 52 52 53 53 55 56 56 56 58 58 59 59 60 60 60 62 63 63 63 64 64 64 66 66 66 67 67 67 67 68 71 72 72 72 73 74 74 75 76 76 76 78 78 78 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2011. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.7 — 18 May 2011 111337 124 of 125 NXP Semiconductors PN512 Transmission module 19.3.1.9 MFAuthent . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 19.3.1.10 SoftReset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 20 Testsignals. . . . . . . . . . . . . . . . . . . . . . . . . . . 100 20.1 Selftest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 20.2 Testbus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100 20.3 Testsignals at pin AUX . . . . . . . . . . . . . . . . . 101 20.4 PRBS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 21 Application design-in information. . . . . . . . 102 22 Limiting values . . . . . . . . . . . . . . . . . . . . . . . 103 23 Recommended operating conditions . . . . . 103 24 Thermal characteristics . . . . . . . . . . . . . . . . 104 25 Characteristics . . . . . . . . . . . . . . . . . . . . . . . 104 25.1 Timing characteristics . . . . . . . . . . . . . . . . . 107 25.2 8-bit parallel interface timing . . . . . . . . . . . . . 110 25.2.1 AC symbols . . . . . . . . . . . . . . . . . . . . . . . . . . 110 25.2.2 AC operating specification . . . . . . . . . . . . . . . 110 25.2.2.1 Bus timing for separated Read/Write strobe . 110 25.2.2.2 Bus timing for common Read/Write strobe . . 111 26 Package information. . . . . . . . . . . . . . . . . . . . 113 27 Package outline. . . . . . . . . . . . . . . . . . . . . . . . 114 28 Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 116 29 Glossary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 30 References. . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 31 Revision history . . . . . . . . . . . . . . . . . . . . . . . 117 32 Legal information . . . . . . . . . . . . . . . . . . . . . . 118 32.1 Data sheet status . . . . . . . . . . . . . . . . . . . . . . 118 32.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 118 32.3 Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . 118 32.4 Licenses. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 32.5 Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 119 33 Contact information . . . . . . . . . . . . . . . . . . . . 119 34 Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 35 Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 36 Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 Overview of supported host controller interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2 Separated Read/Write strobe . . . . . . . . . . . . . 11.3 Common Read/Write strobe . . . . . . . . . . . . . . 12 Analog interface and contactless UART . . . . 12.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.2 TX driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.3 RF level detector . . . . . . . . . . . . . . . . . . . . . . 12.4 Data mode detector . . . . . . . . . . . . . . . . . . . . 12.5 Serial data switch . . . . . . . . . . . . . . . . . . . . . . 12.6 S2C interface support . . . . . . . . . . . . . . . . . . . 12.6.1 Signal shape for Felica S2C interface support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.6.2 Waveform shape for ISO/IEC 14443A and MIFARE S2C support. . . . . . . . . . . . . . . . 12.7 Hardware support for FeliCa and NFC polling 12.7.1 Polling sequence functionality for initiator. . . . 12.7.2 Polling sequence functionality for target . . . . . 12.7.3 Additional hardware support for FeliCa and NFC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12.7.4 CRC coprocessor . . . . . . . . . . . . . . . . . . . . . . 13 FIFO buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13.1 Accessing the FIFO buffer . . . . . . . . . . . . . . . 13.2 Controlling the FIFO buffer . . . . . . . . . . . . . . . 13.3 FIFO buffer status information . . . . . . . . . . . . 14 Interrupt request system. . . . . . . . . . . . . . . . . 14.1 Interrupt sources overview . . . . . . . . . . . . . . . 15 Timer unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Power reduction modes . . . . . . . . . . . . . . . . . 16.1 Hard power-down . . . . . . . . . . . . . . . . . . . . . . 16.2 Soft power-down mode. . . . . . . . . . . . . . . . . . 16.3 Transmitter power-down mode . . . . . . . . . . . . 17 Oscillator circuitry . . . . . . . . . . . . . . . . . . . . . . 18 Reset and oscillator start-up time . . . . . . . . . 18.1 Reset timing requirements . . . . . . . . . . . . . . . 18.2 Oscillator start-up time . . . . . . . . . . . . . . . . . . 19 PN512 command set . . . . . . . . . . . . . . . . . . . . 19.1 General description . . . . . . . . . . . . . . . . . . . . 19.2 General behavior . . . . . . . . . . . . . . . . . . . . . . 19.3 PN512 command overview. . . . . . . . . . . . . . . 19.3.1 PN512 command descriptions . . . . . . . . . . . . 19.3.1.1 Idle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.3.1.2 Mem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.3.1.3 Generate RandomID . . . . . . . . . . . . . . . . . . . 19.3.1.4 CalcCRC. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.3.1.5 Transmit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.3.1.6 NoCmdChange . . . . . . . . . . . . . . . . . . . . . . . . 19.3.1.7 Receive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19.3.1.8 Transceive . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.1 78 79 79 80 80 80 81 82 84 84 86 87 88 88 88 89 89 90 90 90 90 91 91 92 94 94 94 94 95 95 95 95 96 96 96 97 97 97 97 97 97 98 98 98 98 Please be aware that important notices concerning this document and the product(s) described herein, have been included in section ‘Legal information’. © NXP B.V. 2011. All rights reserved. For more information, please visit: http://www.nxp.com For sales office addresses, please send an email to: salesaddresses@nxp.com Date of release: 18 May 2011 111337
PN512 价格&库存

很抱歉,暂时无法提供与“PN512”相匹配的价格&库存,您可以联系我们找货

免费人工找货