Home
Neo900 NFC Subsystem Draft
Contents
1. Vio according to table 4 1 in section 4 2 of 35 section 6 1 3 for current with field detection section 5 2 for Vin and section 5 3 for all other parameters 70 Tmpedances in figure 9 on page 8 of 29 example circuit without component values in figure 10 on page 10 T1 Tmpedances in figure 9 on page 11 of 30 example circuit without component values in figure 10 on 31 The component counts omit items that have no effect DNP 0 Q etc All designs based on the TRF7970A and its predecessor the TRF7960 the author could find included a 50 Q port in the path towards the antenna with the corresponding impedance matching It may therefore be possible to achieve some simplification by omitting this port The designs by AMS and NXP do not include such ports 7 2 AMS AS3909 3910 The AS39097 is a very basic NFC chip mainly designed for readers The AS39108 is very similar except that it contains advanced antenna tuning capabilities The limited radio capabilities the 3 3 V host interface and the apparent lack of support in the developer community make these chips unattractive for our purposes 7 3 AMS AS3911B The AS3911B is a chip that is designed mainly for a reader role but it can also support some modes commonly found in smartphones As the only chip in this comparison it expressly supports EMV 44 At least at the lower protocol layers EMV seems to be merely another rehash of ISO 14443 Type A and B All things
2. g N N 5 2 2 glop Bb gt l A n zZ Z Z 4 la Protocol Variant kbps lt lt a a A O H 106 e e e e e e e e e e e e e 212 e e e x e x e e e e Type A 424 e e e x e x e e e o 848 e e e o e e Pee 106 e e e eje e e e 212 e e e e e e e e Roe Da ef s els 0 a o er a G 848 e e e o e e 212 0 e e e e e e e e e o e FeliCa 424 0 e e e e e o o e e e e 6 62 o e e Single 26 48 o e e e e ISO 15693 52 96 i o 6 67 o e Downs 26 69 o 2 _ e e e NFC IP 1 is not explicitly mentioned here At 106 kbps it equals ISO 14443 Type A and at higher rates it equals FeliCa The CLRC663 also supports ISO 18000 3 mode 3 see section 3 4 8 and EPC UID UID OTP According to Wikipedia 37 the latter may be an air interface called ISO 18000 6C 47 A short overview of features is on page 1 29 More details can be found on pages 54 59 Figure 2 on page 2 claims that ISO 15693 and FeliCa can be implemented using transparent raw mode 48 A short overview of features is on page 1 of 30 More details can be found on pages 121 135 There is one somewhat enigmatic mention of ISO 15693 on page 136 suggesting that support may be possible in transparent mode The data sheet never suggests the possibility of th
3. Texas Instruments Incorporated AM DM387z Multimedia Device Technical Reference Man ual SPRUGNAR Silicon Revision 1 x Version R September 2012 Freescale Semiconductor Inc Kinetis KL26 Sub Family 48 MHz Corter M0 Based Mi crocontroller Data Sheet Technical Data KL26P64M48SF5 Rev 5 August 2014 http cache freescale com files microcontrollers doc data_sheet KL26P64M48SF5 pdf Freescale Semiconductor Inc KL26 Sub Family Reference Manual KL26P121M48SF4RM Rev 3 2 October 2013 http cache freescale com files microcontrollers doc ref_ manual KL26P121M48SF4RM pdf 52 49 Galda Michael Emulating the I2S Bus Master with the FlexIO Module Freescale Semiconductor Inc AN4955 Rev 0 July 2014 http cache freescale com files microcontrollers doc app_note AN4955 pdf 50 Kozitsky Alexander Minimizing TRF79xx Current Use During PowerDown Mode Texas In struments Incorporated SLOA205 August 2014 http www ti com lit pdf sloa205 51 Freescale Semiconductor Inc Kinetis KL16 Sub Family 48 MHz Cortez M0 Based Mi crocontroller Data Sheet Technical Data KL1I6P64M48SF5 Rev 5 August 2014 http cache freescale com files microcontrollers doc data_sheet KL16P64M48SF5 pdf 53
4. 3 0 5 5 3 0 5 5 3 6 0 45 0 5 20 TRF7970A 2 5 5 5 1 8 Vin 0 5 50 35 19 3 5 150 Of these chips only the PN532 and PN544 support field powered operation 7 1 6 Antenna interface The various chips all have low impedance outputs and require external components for antenna matching and for mixing the TX and RX signals The following table shows characteristics of the antenna interfaces and the components count of the reference design of the respective matching circuit Chip Impedance Example circuit 50 Q port TX RX IL C R AS3910 152 10kAN 4 1 No AS3911B 7 069 10kQ0 1 5 1 No PN512 7 39 3509 2 8 4 No PN532 73 2 8 4 No PN544 74 2 6 1 6 No CLRC663 1 50 2 9 A No TRE7970A 4Q 10kQ 2 13 1 Yes 63 Single supply voltage from figure 7 on page 7 of 29 all other parameters from figure 9 on page 8 64 Vin and Vro from figure 6 on page 8 of 30 maximum transmit power from figure 5 on page 6 all other parameters from figure 9 on pages 9 and 10 65 Win and Vio from table 1 in section 4 of 31 all other parameters from table 169 in section 26 Idle and transmit current are sums across several supply inputs 66 All parameters are from table 1 in section 4 of 32 Maximum transmit current is the sum of several supply inputs 67 All parameters are from table 1 in section 4 of 33 68 Win and Vio from table 245 in section 11 of 34 all other parameters from table 247 in section 13
5. Pwr Pwr Pwr TRF7970A TX_EN IRQ Enable OOK 10 1 NFC_CLK MISO RXD TRX CLK m TXD MOD SWP_S1 O N SxM SPIx_MOSI SPIx_MISO SxC SPIx_SCK SxS SPIx_PCS0 IxD 12Cx_SDA IxC 12Cx_SCL Bae SELF SSO E20 DDNDDDDOD 11D S1MISO I1D 11C NFC_INT Kinetis KL26 10D SDA 10C SCL 2 nRESET NFC_nRESET Zz A SWD_CLK EXTALO Q a a R So CMPO_IN4 Rshunt 150 SWP_S2 SWIO 45 The pin descriptions only list functions pertinent to a possible use in Neo900 The KL26 makes extensive use of multiplexing and most pins have between four and six different functions SWP_S1 connects to pin 31 PTD6 which is a high drive pad as suggested in section 8 5 High drive pads are marked with a grey bar 8 6 2 KL16 The KL16 has no voltage regulator and no USB interface This frees a number of pins for use as GPIOs In particular this enables us to support two SWP interfaces for dual SIM operation Since both SWP interfaces share a single comparator only one can transfer data at a time while the other has to be held in SUSPENDED or DEACTIVATED state See section 8 3 of 23 46 2x Rshunt 150 SxM SPIx_MOSI SPIx_MISO NIN si a SxC SPIx_SCK ola SxS SPIx_PCSO TRX CLK DD IxD 12Cx_SDA IxC 12Cx_SCL TXD MOD nSS SOS _s amp BS_TD SCLK Soc KinetisKL16 10D _________ SDA Q MOSI SOM loc eosL 8 ir MISO RXD
6. tape and tray and if there is no stock A price of means that the part is not listed in the catalog Note that an older version of the AS3911B exists which is called AS3911 BQFT Despite the B almost at the right place this is not the AS3911B The AS3911 is widely available but the AS3911B seems to be too new to have reached distributors yet 7 1 2 Protocol support The table below compares support for the various NFC protocols at the level of modulation en coding and framing This information is compiled from vendor documentation and not based on actual tests Furthermore some functionality a vendor claims not to support may be available through raw mode Capabilities are indicated with the following symbols Symbol Meaning Supported according to documentation o Support possible via raw mode Not supported Supported MIFARE extension Documentation ambiguous or insufficient 46 The part number listed by Mouser and Newark does not seem to fit NXP s regular naming scheme How ever the part number could not be verified since 33 does not include it with the ordering information Note that the PN544 is marked as EOL at Mouser 26 For each protocol variant and bit rate the capabilities are shown for the initiator role and the target role initiator target If a capability is completely absent we use instead of a m e 8 38 GE
7. or if measuring the S2 signal is slow A fast rate may be preferable for more rapid communication and if there are large positive delay variations on CPU operations e g caused by background activity such as cache or DMA operations 6 4 S2 current detection Devices what would allow direct detection of currents that result in only small voltage changes are not commonly available in SoCs or MCUs A simple circuit to measure the 2 current would involve a series resistor on SWIO that acts as shunt and an analog comparator or similar that compares the resulting voltage drop against a threshold voltage The following diagram shows a common configuration of such a circuit CPU CLF Card UICC SWIO C6 SWP_OUT 20 In this circuit the comparator would output a 1 if Vcard lt Vru Vu Voff and 0 if Vcard gt Vru Vu VofFF with Vcard Vio Ron Rsnunr Icard Icmp and the following parameters Parameter Description Vio Supply voltage for SWP_OUT driver Vu Hysteresis may be zero VOFF Comparator offset voltage Ron On state resistance of SWP_OUT driver RSHUNT Resistance of external shunt resistor ICARD Current drawn by the card s SWIO pin Iowp Input leakage current of the comparator To permit reliable detection of S2 states we therefore need Ron Rsunr 580 uA gt 2 Vy Voff where 580 uA is the difference between the minimum current at S2 1 and the maximum curren
8. slotted terminating adaptive round multiple tag reading 10 Section C 3 of 7 and also shown in figure C 1 in section C 5 Figure 9 in section 8 2 of 10 Sections 9 2 1 9 3 7 9 2 2 and 9 3 6 of 10 respectively Section 7 2 3 of 10 Section 6 1 2 of 5 ISO 15693 is included in ISO 18000 3 as annex G 10 Sections 6 1 10 2 and 6 1 10 4 of 5 oO ON DD HW 12 Non slotted extension The non slotted extension is refreshingly simple and consists of a Wake up command from the reader which then causes tags to send their default replies randomly and repeatedly as long as they remain in the field While timing is not specified it is recommended that Time between replies DER E z 10 The reader simply listens for any responses and uses those that are not garbled Slotted extension The slotted extension is somewhat similar to ISO 14443 3 type B section 3 4 2 in that cards respond in randomly selected slots and that slots are explicitly announced by the reader Like in ISO 15693 3 cards keep a local slot count that advances at the end of the slot It differs in that slot counters of tags wrap around with the drawing of a new random number at the highest slot number Different tags may use different highest slot numbers but the reader can also command a common slot number range A reader responding in a slot sends a two part response consisting of a so called precursor used for collision detectio
9. with a new codepoint indicating NFC in the SAK message sent by the NFC target In passive mode at fc 4 and fc 32 NFC uses FeliCa 3 4 10 Summary The following table summarizes the key characteristics of the various anti collision mechanisms Protocol Variant Separation Time based ISO 14443 3 Type A Prefix Bit collision Type B Random slot Annex C Random slot Slot FeliCa Random slot Slot ISO 15693 3 Prefix deterministic slot ISO 18000 3 Mode 1 see ISO 15693 3 non slot extension Random delay slot extension Random slot Phase in slot Mode 2 Random channel mute NFC IP 1 fc A28 see ISO 14443 3 Type A other see FeliCal 22 Section 6 2 7 3 2 2 example in section 6 2 7 9 23 Fully muted in section 6 2 7 3 2 temporarily muted in the example in section 6 2 7 8 The mechanism for putting a tag in fully muted state is described in section 6 2 5 16 7 the corresponding code point is in table 20 of 6 2 5 16 3 2 24 Section 11 1 1 of 3 5 Section 11 3 of 3 6 Section 11 2 1 of 3 27 Section 11 2 2 of 3 14 Separation is what prevents multiple cards from always replying at the same time Time based describes the element of the anti collision protocol that has the tightest timing requirements 3 5 Framing Framing of messages in the various NFC protocols is not covered in this document The chips we discuss later implement some types of framing in hardware and usually
10. 6 2 3 of 7 86 According to 45 MIFARE Classic complies with ISO14443 1 through ISO14443 3 but violates ISO14443 4 while 36 suggests that already the framing does not correspond to ISO14443 3 34 Standard frames SDM Data bits and clock DMO DM1 Modulation TX RX Further details on DMO and DM1 can be found in sectio 8 of 36 7 8 2 Modulation clock Packetization Modulation Standard frames SDM Unchecked packets DM1 Data bits and clock DMO Digitized envelope n 6 10 6 of 35 SDM is discussed in section In DMO and DM1 the host has to provide modulation input that is synchronized precisely with the carrier frequency The carrier frequency of ISO 14443 2 is 13 56 MHz 4 t 7 kHz and all other timings are derived from this frequency At the lowest specified nominal rate of 106 kHz fc 128 the bit clock would therefore be between 105 88 kHz and 105 99 kHz Modulation inside bits uses a multiple of the bit rate but also allows for considerably larger tolerances To help the host to meet clocking requirements of the RF side the transceiver can output a clock directly derived from the carrier clock The SPI modules in the DM3730 operate at an integer fraction of a 48 MHz clock and cannot be clocked from Type A modulation at fc 28 requires a pulse t of 2 f zero or half the bit period ts 64 fc after the nomin any other source in master mode to 40 5 f that star
11. 6 Impedance in section 7 4 of 35 example circuit in figure 7 1 in section 7 1 2 antenna matching in 43 TT nttps www ams com eng Products NFC HF RFID NFC HF RFID Reader ICs AS3909 T8 nttps www ams com eng Products NFC HF RFID NFC HF RFID Reader ICs AS3910 9 nttps www ams com eng Products NFC HF RFID NFC HF RF ID Reader ICs AS3911B 80 http www nxp com products identification_and_security nfc_and_reader_ics nfc_contactless_ reader_ics PN512AA0HN1 html 32 Drawbacks of this chip include the apparent lack of community interest the lack of support for ISO 15693 and also the limitation to lower bit rates 7 5 NXP PN532 The PN532 enjoys great popularity in the DIY hardware scene A driver for the PN533 which should be identical except for the interface is included in the mainline Linux kernel drivers nfc pn533 c Documentation may be a problem though At least the publicly available documentation is insuf ficient for considering this chip It also seems to share the low level protocol support weaknesses of the PN512 7 6 NXP PN544 The PN544 is very popular in the industry and can be found in many smartphones Low level protocol support is quite comprehensive and among the chips we considered this is the only one with a built in SWP interface Unfortunately almost no public documentation is available for the chip There are a 3rd gener ation successor chip the PN547 announced in 2012 and the 4th ge
12. 7 NFC chip choices We considered the following NFC chips AMS AS3909 3910 29 and AS3911B 30 NXP PN512 31 PN532 32 PN544 33 and CLRC663 34 and TI TRF7970A 35 There are many more NFC chips on the market but they are less known in the developer community and what little doc umentation for them is publicly accessible would be inadequate for an evaluation even as superficial as this one The chips we consider fall into two categories dumb chips that implement the radio interface and the protocol processing up to the level of frames and smart chips that contain a microcontroller core and that can also perform functions of higher protocol layers The following table summarizes the roles the chips play in the developer community Chip Smart Documentation Community AMS AS3910 No good unknown AMS AS3911B No good unknown NXP PN512 No good unknown NXP PN532 Yes limited popular NXP PN544 Yes insufficient mixed NXP CLRC663 No good unknown TI TRF7970A No good very popular One can see that the availability of documentation is inversely proportional to the intelligence of a chip The PN544 enjoys some popularity among software developers which is probably mainly due to the fact that is a often used in NFC capable smartphones Unfortunately it is nearly impossible to find any usable information on the hardware The situation is similar but not quite as grim with the PN532 which has become a fairly popul
13. SOM nRESET ____________ NFC_nRESET EXTALO DAC_OUT SWD_CLK TX_EN IRQ Enable OOK 10 1 NFC_CLK Li SWD The dotted lines indicate connections for using I S instead of SPI for raw modes If the pins are not used for anything else the circuit can connect to both sets of pins thus leaving the choice of communication mechanism to the firmware 47 To allow using the 12 bit DAC as voltage reference instead of the 6 bit DAC DAC_OUT should either be left open or connect to a small capacitor 0 8 7 In circuit programming The KL16 KL26 s internal Flash memory can be in circuit programmed through the SWD interface To avoid conflicts with other parts of the system the SWD signals should either be used exclusively for SWD or if sharing is desired should connect to high impedance inputs that do not normally trigger major transitions in system state Like apparently all microcontrollers of this category the KL16 KL26 can be programmed to dis allow any direct outside access to its Flash content Firmware present in Flash may allow indirect read or write access to the Flash This effectively means that the chip can be irreversibly bricked by flashing an incorrect firmware image In the context of Neo900 this ability would be highly undesirable The SWD programming software could be equipped with safeguards that prevent the flashing of content that would lead to such bricking However a bug a communic
14. SWP support A vendor supported driver for the TRF7970A is included in the mainline Linux kernel drivers nfc trf7970a c 7 8 1 Non standard protocols For transceiver configuration and when using protocols whose framing complies with the ISO 14443 standard communication with the host CPU uses an SPI interface plus one signal each for enabling the chip and for signaling interrupts to the host If using protocols that do not comply with ISO 14443 3 framing but use a similar structure a so called Special Direct Mode SDM sometimes also called DM2 has to be used For receiving this mode uses the same interface as for standard compliant communication When sending the CPU enables the transmitter with the special enable signal TX_EN the transceiver provides the bit clock and the host sends the bit stream to transmit Last but not least if the protocol diverges even further from the standard one of two additional Direct Modes DM have to be used For transmission the host provides the modulation signal i e below the bit level Both direct modes differ for reception DM1 performs demodulation and decoding of received bits and provides bit clock and bitstream to the host In DMO the transceiver outputs the digitized envelope signal The following diagram illustrates where the various direct modes tap into the data flow between the protocol processing layers 84 nttp www ti com product trf 7970A 35 Section
15. Vicinity Integrated Circuit Card 49 10 1 2 3 10 11 14 15 16 17 References NFC Forum Type 2 Tag Operation Specification T2TOP 1 1 May 2011 OpenPCD project SO014448 http www openpcd org 1S014443 ECMA 340 Near Field Communication Interface and Protocol NFCIP 1 3rd edi tion June 2013 http www ecma international org publications files ECMA ST Ecma 340 pdf Japanese Standards Association Specification of implementation for integrated circuit s cards Part 4 High Speed proximity cards JIS X 6319 4 July 2005 ISO IEC 18000 3 Information technology Radio frequency identification for item manage ment Part 3 Parameters for air interface communications at 13 56 MHz ISO IEC 18000 3 2004 E First edition September 2004 ISO IEC JTC 1 SC 17 WG 8 Identification cards Contactless integrated circuit s cards Proximity cards Part 2 Radio frequency power and signal interface ISO IEC FDIS 14443 2 2009 E July 2009 ISO IEC JTC 1 SC 17 WG 8 Identification cards Contactless integrated circuit s cards Proximity cards Part 3 Initialization and anticollision November 2008 ISO IEC JTC 1 SC 17 WG 8 Identification cards Contactless integrated circuit s cards Proximity cards Part 4 Transmission protocol March 2007 ISO IEC Identification cards Contactless integrated circuit s cards Vicinity cards Part 2 Radio
16. appears to be considerably more advanced 58 with the same basic functionality as the AS3910 but also a stream mode where encoding and decoding are performed by the AS3911B and data passes through the FIFO The documentation explicitly mentions the use of raw mode for future extensions of NFC IP 1 non standard framing of ISO 14443 and MIFARE The PN512 can be configured to let an external source directly control modulation it gives access to the envelope on the receive side and can output the RF clock as well It may also be possible to obtain a decoded and clocked bit stream but we did not examine this option in detail 4 Step 3 in the example in section 6 10 6 of 35 NFC RFID Forum Does TRF7970A support ISO 15693 card emulation http e2e ti com support wireless_connectivity f 667 t 342797 56 NFC RFID Forum NFC Sniffer http e2e ti com support wireless_connectivity f 667 t 330333 57 Page 66 of 29 58 Pages 140 to 144 of 30 59 Fields DriverSel and SigOutSel in register RxModeReg in section 9 2 2 7 of 31 6 Field SAMCIKD1 in register TestSellReg in section 9 2 4 2 of 31 5 5 28 As far as direct access to envelope and RF clock is concerned the CLRC663 appears to offer the same functionality as the PN512 See section 8 6 4 of 34 The PN532 may offer the same functionality in PN512 emulation mode section 2 2 of 38 but it is not clear whether the compatibility really goes
17. input supply Since we need neither when in a standby state it is not necessary to use EN2 and we can connect it permanently to ground According to sections 6 1 3 and 6 12 1 of 35 field detection is supplied by VEXT and is therefore possible also during complete power down Unfortunately there is no power supply with this name The description of table 6 15 in section 6 12 1 suggests that the mysterious VEXT may be identical to Vin 40 8 Auxiliary microcontroller In this section we describe a possible scenario where an auxiliary microcontroller is used to imple ment SWP and to overcome the incompatibility between the capabilities the TRF7970A requires from a host CPU in order to support non standard protocols and what the DM3730 provides In this example we use the Freescale Kinetis L series KL26 in a 32 QFN package The KL26 was chosen in part because of the author s familiarity with this chip The Kinetis L series contains many other chips with similar characteristics that pending further evaluation could be used in its stead For example if we have no use for the USB functionality the otherwise similar KL16 has more available IO pins and a slightly lower unit cost 8 1 Host interface This section describes the signals between the MCU KL16 or KL26 and the host CPU DM3730 The KL16 KL26 contains two I C modules which are both capable of operating at 1 8 V and at 400 kbps provided that t
18. interface directly or be able to coordinate SIM power up and capabilities with the entity that controls this interface i e the modem However SWP use by field powered NFC chips e g the PN544 8 suggests that the SWP part of a SIM is also expected to be operational without prior activation of the SIM This is also consistent with what is shown in section 6 2 3 of 23 6 5 2 Role of modem Unfortunately we found no indication in 27 that the modem would allow the host to control SIM activation or that the modem would give access to the ATR information including SWP support obtained from the card during activation There is also no separate hardware interface that would allow a 3rd party to request SIM activation 9 Also after activation the fate of the SIM card is uncertain while it seems unlikely that the modem would decide on its own to power down the card completely it can enter clock stop mode with a reduced current consumption of 100 wA 7 36 Section 6 2 2 of 23 referring to section 4 5 2 1 22 which in turn invokes the procedure defined in section 6 2 of 25 3 According to section 5 3 of 23 UICC side support is indicated in the Global Interface bytes in the ATR Answer to reset defined in section 7 of 25 using the encoding from table 6 7 in section 6 3 3 of 22 Terminal side SWP capability is communicated at a later point 38 Section 10 6 4 of 26 39 Table 22 in section 6 5 of 28 4 Cloc
19. target wait for an initiator to begin communicating Field data Initiator Target amm i C Amplitude modulation Communication between initiator and target can be as if they were reader and card respectively with the initiator providing the field and the target modulating it The main difference is that the target has its own power supply and thus does not depend on the presence of an initiator to operate Field Initiator Target a gt Data Load modulation The above is called passive mode Since both devices are capable of producing an electromagnetic field there is also an active mode depicted below Amplitude modulation Initiator Target _ Ge Field data In this mode the initiator deactivates its field when it is done sending and the target generates its own field to send a response I e this is how radio communication normally works with each party providing the electromagnetic field needed for its transmissions 3 Protocol architecture There are four major protocol families in NFC RFID for dumb tags defined in ISO 18000 5 Proximity cards with a range of up to about 10 cm
20. world of NFC and RFID and any given solution is likely to miss some that may be relevant in certain use cases We therefore aim to be flexible and give advanced users the option of adapting the NFC functionality of Neo900 to their needs System environment The NFC solution must be suitable for the constrained environment found on a mobile phone This includes the use of system internal communication interfaces such as I C operating at 1 8 V low power standby and also low power consumption when waiting for the device to enter the field of an NFC or RFID reader Linux driver The hardware must have good driver and protocol stack support in Linux without adding a major development burden to the Neo900 project Hardware documentation Hardware documentation sufficiently in depth to enable the Neo900 project to correctly implement the NFC circuit must be available preferably without NDAs or similar obstacles Privacy In line with our general emphasis on privacy and user empowerment we aim to ensure that the NFC subsystem will not communicate without the user s express consent In particular it must either lack the ability of field powered operation or there must be a mechanism that allows users to suppress this mode of operation Tweakable Wherever practical advanced users should be given access to low protocol layers not only in order to allow the addition of support for new protocols as mentioned above but also for experiments with the
21. HIFT_CLK lo 4 SPI_nSS 10 3 SHIFT_OUT 10 2 GPIO_TX_EN 101 10 0 CPU Furthermore the interface must remain selected If the SPI bus is shared with other devices it must therefore be held until the send or receive operation or sequence of operations is complete It is not clear whether the SPI interface can be used during SDM transmission or whether DATA_CLK has to remain idle In DM1 the receiver uses the signals of the SPI interface for demodulated bits and the bit clock 37 EN SYS_CLK 10_7 10_6 10_5 10_4 10_3 10 2 10_1 10_0 RX_DATA DATA_CLK SHIFT_IN SHIFT_CLK TRF7970A OOK MOD IRQ CPU As in SDM nSS has to be held low while using either DMO or DM1 The documentation is inconsistent as to whether interrupts may be generated in DM1 In DMO the receiver delivers only the raw envelope without clock DMO Transmission in DMO and DM1 uses yet another data path for the modulation signal Since DMO reception and DM0 DM1 transmission need to be tightly synchronized with the RF carrier frequency we use the transceiver s clock output to clock the SPI bus as discussed in section 7 8 2 NFC_CLK DATA_CLK 10_6 SHIFT_IN SHIFT_CLK SYS_CLK TRF7970A MOD_OUT ee als VO gS Se ee ee GPIO_OOK CPU The OOK control signal allows the host to change on the fly between OOK or Amplitude Shift Keying ASK It is presently not clear under what circumstances such f
22. Neo900 NFC Subsystem Draft Werner Almesberger September 9 2015 This document specifies the Near Field Communication NFC and Radio Frequency IDentification RFID functionality of Neo900 TO DO The focus is currently more on the evaluation and selection of suitable technology We should change this later when we ve decided on a specific design Please note that all this is based on reading the relevant standards or drafts of them data sheets etc None of the things described here have actually been tested by the author in an implementation The document contains a large number of footnotes acronyms and citations All these references have hyperlinks in the PDF version which should make it easier to follow them when using the document for reference purposes It is recommended to first read this document in its entirety in order to obtain an overview of the various topics discussed and how they are related 1 High level objectives We have the following expectations on the NFC solution for Neo900 Standards Although we currently have no specific must have use cases we aim to be able to interoperate with equipment users will encounter labeled as NFC In practical terms this will most likely include NFC Type 2 tags 1 using ISO 14443 Type A 2 peer to peer communication according to NFC IP 1 3 using FeliCa 4 at high speed and ISO 14443 card emulation Flexibility There are many protocol in the
23. O voltage of 1 8 V Note that the main supply voltage is always higher as shown in section 7 1 5 The FIFO size determines either a the maximum latency for FIFO reads during reception if the received frame is larger than the FIFO or b the maximum size a frame can have to be sent or received without having to access the FIFO during transmission 51 Page 141 of 30 29 SPI sharing AMS and TI use the select signal of the SPI interface to signal the end of raw mode They therefore expect that the SPI bus can be assigned to NFC use for long periods of time which may be undesirable if sharing the bus with other users The PN512 and CLRC663 separate the command interface clearly from other uses and could therefore share the SPI bus There is insufficient information about PN523 and PN544 to determine whether they have similar characteristics I C sharing Since the PN512 like all the other NXP NFC chips has an I C interface one could connect it directly to one of the I C buses of Neo900 In the likely event that an MCU is needed for operations with tight timing requirements raw mode SWP etc this would result in the two following possible topologies 12C SPI 12C 2 gt gt a a MCU Other devices Other devices Sharing the same bus for communication between all three parties would allow operating the NFC chip from the CPU without involving the MCU at all As a drawback the MCU would have to switch between master and
24. and to determine at a qualitative level what kind of timing requirements would exist for software implementations of the respective protocols We pay special attention to anti collision since this is the part of the various NFC and RFID protocols that is most likely to involve delicate timing e g precise detection of collisions at the bit level see section 3 4 1 and complex modulation schemes e g On Off Keying OOK and Phase Shift Keying PSK in the same message see section 3 4 6 This in turn determines what hardware capabilities we require from NFC chips in order to handle a given protocol and what software based solutions have to do if trying to support a protocol that is not fully supported by hardware 3 4 1 ISO 14443 3 type A ISO 14443 3 type A uses an anti collision algorithm where cards whose addresses match a prefix provided by the reader respond by sending their unique addresses bit synchronously The reader detects collisions at the bit level grows the prefix accordingly and repeats this process until one card has been fully identified For example a reader would first initiate the anti collision sequence by sending an REQA or WUPA command to which all suitable type A cards respond with an ATAQ message The reader would then send an ANTICOLLISION AC command with a prefix of length zero All cards simultaneously respond with their addresses producing collisions on some bit positions The reader adds the collis
25. ar choice in the maker scene All the dumb chips come with good documentation and particularly the TRF7970A excels in this regard with hardware design guides and also detailed programming examples for various use cases While the AMS chips and the NXP PN512 and CLRC663 seem to be ignored by the Open hardware and software scene the TRF7970A has gathered a certain following At the time of writing the Linux kernel contains drivers for PN532 PN544 and TRF7970A 7 1 Feature summaries The following sections contain summaries of key features that are similar in all chips They are later supplemented with more in depth discussions of the respective chips and their properties 25 7 1 1 Cost and availability We consulted availability of the chips at major distributors as of 2015 09 08 Unit prices are in USD for an order of 1000 units If multiple variants of the same chip were available the price of the least expensive was chosen Chip Digi Key Mouser Newark Stock Price Stock Price Stock Price AS3909 BQTM 2 55 2 62 3 00 AS3911B 4 04 PN5120A0HN1 C2 151 o 2 90 o 3 22 3 96 PN5321A3HN C106 55 5 03 o 5 59 5 23 PN5441A2ET C205014 4 05 5 91 CLRC66301HN 551 e 4 73 o 6 14 o 7 13 TRF7970ARHBR 4 18 4 18 4 19 Stock is indicated as e if there were 1000 or more units stocked o if there less than 1000 but more than zero units possibly combining different forms of presentation e g
26. ard by activating it with ATTRIB or by silencing further responses to REQB with the command HLTB The reader performs the anti collision sequence whenever it is looking for new cards or when trying to enumerate a set of cards that has entered its RF field The protocol is described in detail in sections 7 3 through 7 10 of 7 and more accessibly in Atmel s excellent summary 18 Atmel also expands that this mechanism exists in two flavours probabilis tict and slotted which differ in whether the reader sends slot markers to probe cards with R gt 1 or whether it just uses successive random number draws until every card has chosen R 1 and thus responded in the first slot 4 As shown in the example in annex D of 7 11 3 4 3 ISO 14443 3 type A annex C Not to be outdone by type B type A also has an optional slotted anti collision protocol described in annex C of 7 Like in type B cards respond in randomly selected time slots but with the difference that time slots are not explicitly signaled by the reader but instead determined by the time that has passed since the REQ ID command that starts the whole time slot sequence While there is no direct command to silence a card a card that has been identified and activated will remain silent after concluding operation according to ISO 14443 4 3 4 4 FeliCa FeliCa 4 has basically the same anti collision protocol as ISO 14443 3 type A annex C section 3 4 3 but with a diffe
27. ation error or also malicious software could still defeat such a mechanism A safe choice would be to program an I C based boot loader into the MCU This boot loader would run after reset accept possible changes to the rest of the firmware and only proceed to normal operation when requested by the main CPU That boot loader itself would be protected against alteration Modification of the boot loader in the field could be permitted either through the boot loader s I C protocol via SWD or both In either case a suitable safeguard against unintended programming should be provided e g by requiring the placement of a jumper 102Section 3 6 3 1 of 51 recommends a load capacitance of 47 pF but the promised bandwidth performance improvement may not be relevant in our use case where the DAC acts as a DC source 48 9 Acronyms and abbreviations AM ASK BPSK CLF FSK MFM NFC NRZ OOK PCD PICC PJM PPM PSK RFID SE SIM SWP UICC VCD VICC Amplitude Modulation Amplitude Shift Keying Binary PSK ContactLess Frontend Frequency Shift Keying Modified Frequency Modulation Near Field Communication Non Return to Zero On Off Keying Proximity Coupling Device Proximity Integrated Circuit Card Phase Jitter Modulation Pulse Position Modulation Phase Shift Keying Radio Frequency Dentification Secure Element Subscriber Identity Module Single Wire Protocol Universal Integrated Circuit Card Vicinity Coupling Device
28. b carrier for the leader in section 6 1 10 18 2 and OOK for the collision detection sequence in sections 6 1 10 18 3 and 6 1 10 18 4 15 Sections 6 1 10 10 and 6 1 10 11 for the message sequence 6 1 10 16 and 6 1 10 17 for the main reply format PSK in section 6 1 10 19 16 Explained in section 6 1 10 5 the ultimate error command is described in section 6 1 11 2 7 17 Figure 4 and table 2 in section 6 1 10 5 of 5 18 Table 26 in section 6 2 6 of 5 mentions a tag inventory of more than 32000 tags 1 Phase Jitter Modulation PJM see annex A of 5 20 Section 6 2 3 3 1 of 5 21 Section 6 2 7 3 1 example in section 6 2 7 8 Single channel selection is described in table 20 in section 6 2 5 16 3 2 13 randomly muted or they can be individually ordered to remain silent There are only two command types read and write There is no slotting 3 4 8 ISO 18000 3 mode 3 A third mode was added to ISO 18000 3 for which no freely available information could be found 3 4 9 NFC IP 1 An NFC initiator performs CSMA CA i e it can activate its RF field only if it does not detect the presence of another field 4 This is called RF collision avoidance In passive mode this only affects access to the ether but in active mode RF collision avoidance is also used for selecting a target i e the one with the shortest random delay In passive mode at fc A28 NFC uses ISO 14443 3 type A anti collision section 3 4 1
29. considered this is still a very limited chip it seems to be unknown in the developer community and the lack of availability of the B version may be an issue 7 4 NXP PN512 The PN512 looks somewhat promising It supports ISO 14443 and NFC IP 1 in both initiator and target roles fairly detailed documentation is available and interfacing should be reasonably simple for raw modes using a microcontroller synchronized to the carrier frequency page 12 A more complex example circuit with component values similar to the one in figure 11 can be found on page 7 of 39 72 Tmpedance in table 169 in section 25 of 31 example circuit without component values in figure 38 section 22 Antenna matching is described in much more depth in excellent 40 73 Impedance is not specified in available documentation but we may assume it to be equivalent to the PN512 Example circuit in figure 13 section 9 of 32 Note that load modulation can be achieved without the additional circuit on pin LOADMOD 40 also applies to the PN532 4 Impedance is not specified in available documentation Example circuit in figures 13 and 14 section 12 of 33 The component count is for the design variant not supporting field powered operation 75 Output impedance in table 247 in section 13 of 34 example circuit without component values in figure 36 section 14 Antenna matching principles are described 41 and component values can be found in 42
30. defined in ISO 14443 6 7 8 Vicinity cards with a range of up to about 1 m defined in ISO 15693 9 10 NFC for tags 11 but also for devices that can act as equals defined in 3 NFC also covers interoperation with the above standards in 12 All four stacks are based on the 13 56 MHz ISM band Each then defines a modulation and encoding scheme We briefly discuss these in section 3 3 At the next layer are framing and anti collision which we cover extensively in section 3 4 On top of everything is the actual user of the stack which may in turn be another stack of more protocols The following diagram shows the overall structure of the NFC protocol stack with protocol variants within the same family and relations between families RFID 1S018000 NFC Device NFC IP 1 Proximity 18014443 Vicinity IS015693 8 D E fel64 to 128 1S014443 3 1S015693 3 ae E Extensions ba a Folica non slot c S felt fone 1 014443 2 1 015693 2 E Subcarrier 2 FeliCa 2567c are x single dual GS F 13 56 MHz HF Where protocols are shared across families the origin of the protocol is shown with a grey back ground For example ISO 18000 3 Mode 1 without extensions uses the anti collision protocol defined in ISO 15693 3 Proprietary protocol variants like MIFARE or FeliCa are not shown 3 1 Names and aliases of standards The ISO standards often have names of the form standard_family pa
31. design and implementations of the protocols themselves 2 Communication modes This section gives a very brief introduction to the communication modes used in the context of NFC RFID with the following drawings illustrating the various scenarios The reader is also called reader writer and in the various ISO standards Proximity Coupling Device PCD Vicinity Coupling Device VCD or interrogator The card is often called a tag and ISO also uses Proximity Integrated Circuit Card PICC and Vicinity Integrated Circuit Card VICC We will use mainly the terms reader and card or tag 2 1 Reader and card The basic model is to have a reader and a card or tag The reader is connected to a power source is often part of a fixed installation and generates a strong electromagnetic field whenever it is looking for cards which it may be expected to do most of the time The card is mobile and has no power source of its own Instead it is powered by the field the reader generates A the card that is not near a reader receives no power and is therefore not operational Power data Power Reader carats Reader Card s gt ahs i Data Amplitude modulation Load modulation The reader sends data to the card drawing on the left by modulating the field it emits It typically uses some form of Amplitude Modulation AM though other modulation schemes are possible The card sends data to the
32. e chip operating as FeliCa card or NFC IP 1 passive communication target Capabilities are summarized in sections 2 and 3 of 31 Details can be found in sections 8 1 to 8 4 6 Capabilities are summarized in section 1 of 32 Details can be found in sections 7 1 3 to 7 1 5 Figure 1 on the front page of 33 gives a nice overview Details can be found in section 8 Capabilities are summarized in section 2 of 34 Details can be found in sections 8 3 Most capabilities are described in table 3 1 in section 3 of 35 This table also confusingly mentions that ISO 14443 Type A B at 848 kbps only applies to reader writer mode ISO 15693 subcarrier details are in section 6 5 table 6 7 Support for ISO 18000 is also claimed which probably means Mode 1 equivalent to ISO 15693 Supporting MIFARE Classic and MIFARE Ultralight at 106 kbps via direct mode is discussed in section 8 of 36 It may be possible to perform Card Emulation also for ISO 15693 using direct mode see section 7 1 3 oo ot ot n N 27 7 1 3 Raw mode For a maximum of flexibility it is desirable to be able to bypass the framing mechanisms included in the respective NFC chips and to control the radio interface directly from a CPU In the transmit direction the CPU either sends a bit stream that is then encoded by the NFC chip and used to modulate the RF field or there can be a pin that leads directly to the transmitter giving the CPU immediate control over m
33. e reader also provides power to cards the communication protocols used in the reader to card direction try to keep the field reasonably constant Protocol Variant Modulation Coding ISO 14443 2 Type A ASK 100 modified Miller Type B ASK 10 NRZ ISO 15693 2 256 f ASK 10 or 100 PPM 6 Vio ditto PPM ISO 18000 3 Mode 1 see ISO 15693 2 Mode 2 PJM MFM FeliCa ASK 10 Manchester NFC IP 1 fc A28 see ISO 14443 2 Type A other see FeliCa In the opposite direction the card uses load modulation and the protocols typically aim to produce a stable regular pattern throughout each bit duration 2 Sections 5 2 1 and 5 3 1 of 4 3 Section 9 2 2 1 of 3 Protocol Variant Modulation Coding ISO 14443 2 Type A fc 28 OOK Manchester other BPSK NRZ ISO 15693 2 single subcarrier OOK dual subcarrier FSK ISO 18000 3 Mode 1 see ISO 15693 3 extensions BPSK OOK Mode 2 BPSK MFM FeliCa OOK Manchester NFC IP 1 fc28 see ISO 14443 2 Type A other see FeliCa 3 4 Anti collision Anti collision is the process of identifying individual cards or tags PICC or VICC in a set of cards or tags that have been brought into the RF field of a reader PCD or VCD and then activating one or more specific cards for further communication This section summarizes the anti collision mechanisms used by the protocols specified for RFID and NFC The main objectives are to provide a rough overview of the variety of protocols
34. eresis of Vy 5 mV and Vio 1 8 V we obtain the following constraints for Rsyunr using the formulas from section 6 4 36 2 Q lt Rsyunt lt 220 Q If we choose Rgyyunr 150 2 Vcarp and Vry for the S2 states then are S2 ICARD VCARD VTH 1 600 uA min 1 680 V 1 705 V min 0 20 uA max 1 796 V 1 771 V max The analog comparator in KL16 KL26 has a 6 bit DAC that can be used as power efficient voltage reference Considering DAC non linearity the following DAC setting would produce a voltage in the above range x Vio Voltage V Min Nom Max 62a 1721 1 744 1 766 Table 27 in section 3 6 2 of 47 100 0 8 LSB with 1 LSB 64 Vio table 27 in section 3 6 2 of 47 101Section 29 2 5 of 48 Note that the divider is indeed 64 and not 63 because the DAC range is from 1 64 Vio to say 64 Vio and thus does not include GND 44 Please note that we may choose less rigid requirements for Vcarp as discussed in section 6 4 This would allow the use of a larger shunt resistance allowing for a larger hysteresis and or a wider threshold voltage range 8 6 Pin assignment The following sections first show a basic pin assignment using the KL26 and then present a more elaborate example for the KL16 8 6 1 KL26 The following drawing shows a possible pin assignment for the KL26 operating at 1 8 V with a simple I C based interface to the main CPU nss SCLK MOSI Pwr USB USB Pwr
35. frequency power and signal interface ISO IEC FCD 15693 2 March 1999 ISO IEC JTC 1 SC 17 WG 8 Identification cards Contactless integrated circuit s cards Vicinity cards Part 3 Anti collision and transmission protocol ISO IEC FCD 15693 3 March 2000 NXP Semiconductors NFC Forum Type Tags White Paper V1 0 April 2009 http members nfc forum org resources white_papers NXP_BV_Type_Tags_White_ Paper Apr_09 pdf ECMA 352 Near Field Communication Interface and Protocol 2 NFCIP 2 1st edition December 2003 http www ecma international org publications files ECMA ST Ecma 352 pdf Texas Instruments ISO IEC 14448 Overview http e2e ti com cfs file __ key telligent evolution components attachments 00 667 01 00 00 30 14 15 IS014443 Overview_2D00_v5 ppt NFC Forum NFC Digital Protocol DIGITAL 1 0 November 2010 NFC Forum Type 1 Tag Operation Specification T1TOP 1 1 April 2011 NFC Forum Type 3 Tag Operation Specification T3TOP 1 1 June 2011 NFC Forum Type 4 Tag Operation Specification TATOP 2 0 June 2011 50 18 Atmel Corporation Requirements of ISO IEC 14448 Type B Proximity Contactless Identifi 19 20 21 22 24 25 26 27 28 29 30 31 32 cation Cards Rev 2056B RFID 11 05 http www atmel com images doc2056 pdf Macias Erick Wyatt Josh NFC Active and Passive Peer to Peer Communication Using the TRF7970A Texas Instrument
36. he I C bus is connected to one of the chip s high drive pads An C address match can wake the chip from various low power modes 4 Of these modes VLPS it the one with the lowest power consumption with a typical 2 69 pA at 25 Additional signals to the host are a reset signal to unconditionally reset the MCU and an interrupt signal to alert the host to NFC activity Furthermore the SWD signal used for in circuit programming may or may not be routed to the host CPU See section 8 7 for details 8 2 Clock configuration In order to perform all the clock selection inside the chip without requiring any external com ponents we clock the KL16 KL26 from the transceiver In this scenario the following clock configuration could be used 9 3 Footnote 1 below table 35 in section 3 8 4 of 47 See also table 7 in section 2 2 3 for high drive pads and section 5 1 for pin assignment Note that only I2C0 is actually routed to high drive pads Table 7 2 in section 7 5 of 48 5 Table 9 in section 2 2 5 of 47 6 The KL26 contains an USB OTG interface that requires a 48 MHz clock that could not be derived with sufficient accuracy from the NFC clock However if use of USB is required while processing non standard NFC protocols it may still be possible to use the internal FLL clock for this purpose Given the complexity of the MCU s clocking system the viability of this configuration should not be taken for granted wit
37. hout verification by experiment 97 In this example we assume that the transceiver outputs fo The TRF7970A could also output a fractional clock or if using a 27 12 MHz crystal which may be more easily available than 13 56 MHz it could output twice fc The input divider of the PLL can be adjusted to any of these frequencies 41 Clock Input clock Divider Frequency MHz EXTALO 13 56 MHz 4 3 39 PLL input EXTALO 1 3 39 PLL output PLL input x 24 81 36 System PLLoutput 2 40 68 Bus System 2 20 34 The PLL output is limited to 100 MHz the system clock to 48 MHz and the bus clock to 24 MHz The above settings therefore run the KL16 KL26 at 84 75 of its maximum speed 8 3 SPI configuration The KL16 KL26 has two SPI interfaces that are both capable of operating in master and slave mode The maximum speed of each SPI interface depends on the hard wired clock source and in which mode it operates With the above clock configuration we would obtain the following maximum bit rates SPI device Mode Highest rate MHz SPIO Master fpus 2 10 17 Slave feus 4 5 08 SPIL Master fsys 2 20 34 Slave fsys 4 10 17 We should therefore use SPIO as SPI master for transceiver configuration and the transfer of standard compliant frames and SPI1 for all the direct modes either as master with a maximum SPI bit clock of 20 34 MHz 3 6 78 MHz fc 2 or as slave Note that there is probably a complication in the form
38. implicity in the remainder of this document we will assume that only one SIM card is present in the system The card or tag is commonly known as SIM but is also called Universal Integrated Circuit Card UICC in ISO parlance and when the context is unambiguous we may simply refer to it as card or tag The system s main CPU the TI DM3730 is sometimes also called host The NFC subsystem is called ContactLess Frontend CLF in 23 We will use the terms UICC and CLF only rarely in this document but the reader will encounter them when following some of the references The entire phone is from the SIM card s point of view a terminal P 17 6 SWP As its name suggests the Single Wire Protocol consists of a single wire called SWIO connecting the NFC subsystem and the SIM vcc Secure Element The lower layers of SWP are defined in 23 It is intended to convey configuration data and radio messages related to ISO 14443 3 type A 7 and NFC IP 1 3 between NFC and the Secure Element in the SIM Bidirectional communication is made possible over this single wire by using voltage signaling signal S1 from NFC to SIM and current signaling signal S2 from SIM to NFC Section 6 3 contains a detailed illustration of this process 6 1 Voltages The supply voltage of the SIM card for SWP use has to be either class B or C which are defined as 2 7 3 3 V and 1 62 1 98 V respectively 2 The vo
39. ion free bits to the prefix picks 0 or 1 for the next bit and sends a new AC command 10 for the new prefix This is illustrated in the following diagram where cards A and B match the prefix but then collide in the last two bits Prefix length AC t 9 Ac 4 o o 1 o Match A olol 1 olololo 1 Card response B ojoj1jojojoj1ijo c ololi iloli o 1 AC t 1 Card addresses Ac 7 olo ijolojolo ke T Old prefix Pick 0 or 1 Received Collision Learn From a card s point of view the sequence ends when the prefix matches the entire address of the card in which case the AC command is called SELECT and the card then acknowledges this with a SAK select acknowledge response The protocol is described in detail in sections 6 3 through 6 5 of 7 3 4 2 ISO 14443 3 type B ISO 14443 3 type B uses a slotted anti collision mechanism where the effect of collisions can be observed at the frame level The reader begins each anti collision sequence by sending a WUPB N or REQB N command with parameter 1 lt N lt 16 Each card then picks an individual random number 1 lt R lt N If R 1 it immediately sends an ATRB response possibly colliding with responses from other cards The reader can then send slot markers SM s for 2 lt s lt N to which cards respond if R s using the random number generated upon reception of WUPB REQB The reader can suppress further anti collision responses from a c
40. k stop is defined in section 6 3 2 of 25 and the corresponding power consumption is defined in sections 5 2 1 class B and 5 3 1 class C of 22 22 However this reduced power consumption is only applicable if no other interfaces such as SWP are active Since the modem has no way of knowing whether this is the case we may have to assume that it expects the SIM card to adhere to the 100 yA limit when in clock stop mode 6 5 3 Activation process The following drawing summarizes the activation process SIM UICC Terminal Modem etc ACT The terminal modem etc first applies the lowest available voltage to the SIM card The card may then send an ATR message on the serial interface using CLK and I O If the terminal receives no message it switches to the next higher voltage waits again for an ATR message and so on Once ATR has been received card and terminal can communicate some more over the same inter face Once this initial dialog has concluded the SIM card is fully operational and the terminal can proceed with activating the SWP interface To do this it raises the SWIO pin and then waits for a response using ACT ACTivation protocol If no ACT response arrives the terminal can try to raise the SIM card by sending an ACT frame on its own but 23 has no provision for negotiating a voltage We can conclude from this that the standard clearly expects that any user of SWP will be able to cooperate c
41. losely with the modem when it comes to card activation 6 5 4 Avoiding deactivation Section 10 6 4 of 26 describes that the chip is able to supply the card with 1 8 V when the phone is deactivated From the available description it is not clear whether this is expected to work also in cases where the card has not been previously activated through the modem Since deactivation by the modem requires the removal of power it should be possible to retain access to the SWP interface of an activated card indefinitely by ensuring that the card s VCC is never allowed to drop 41 Section 6 2 3 1 of 23 42 Section 6 4 of 25 23 Note the standard explicitly states that a warm reset using the RST signal must not affect the state of the SWP interface 4 6 5 5 Power consumption The SIM card can draw the following maximum current depending on the selected voltage class and power mode Voltage class Power mode Maximum current Unit B 50 mA C Full 30 mA Low 5 mA The above applies to current consumption negotiated between card and terminal Table 6 4 in section 6 2 3 of 22 also defines a minimum current of 10 mA the terminal must be able to supply which seems to be intended to apply irrespective of what current has been negotiated 43 Section 6 2 3 of 25 44 Section 5 4 of 23 45 Table 6 3 of section 6 2 3 of in 22 for full power mode table 7 1 of section 7 1 2 in 23 for low power mode 24
42. ltage on SWIO is confusingly defined as either absolute class B and sometimes class C or relative to Voc class C 3 The following table summarizes the voltage levels at the card interface for simplicity assuming Vcc in class C to be exactly 1 8 V Voltage Class Absolute V x 1 8 V Min Max Min Max VoH B 1 40 1 98 0 78 1 1 C 1 53 1 8 0 85 1 VoL B 0 0 3 0 0 17 C 0 0 27 0 0 15 Vin B 1 138 2 28 0 63 1 27 C 1 26 2 1 0 7 1 17 Vin B 0 3 0 48 0 17 0 27 C 0 3 0 45 0 17 0 25 30 Section 7 1 1 of 23 31 Sections 5 2 1 and 5 3 1 of 22 32 Tables 7 3 and 7 4 in section 7 1 3 of 23 18 Values defined by the standard are shown in boldface the other values are calculated Note that Vin must be guaranteed for currents up to 1000 uA into the card and Vy for currents up to 20 uA It is confusing that the standard would specify output and input voltages given that SWIO is voltage operated in one direction and current operated in the other and one would therefore expect input and output to be identical as far as voltages at this interface are concerned 6 2 SWIO states We can combine the worst case voltage requirements from above with the possible states of S1 and S2 and the corresponding currents that may flow S1 2 Voltage V Current uA L lt 0 27 lt 20 H 0 gt 1 53 lt 20 H 1 gt 1 53 600 1000 For example the interpretation of S1 H S2 1 is that the host must be able t
43. mple for this approach is shown in section 8 Support of type B modulation and the optional bit rates above 106 kHz was not studied for this document 7 8 3 Host interface In this section we describe connections between the transceiver and the host CPU for the various transmission modes The simplest case is standard compliant operation using framing and FIFO 8 Section 20 5 3 in 46 Since very narrow timing is required such a program would have to disable interrupts suppress or compensate for conflicting bus activity e g DMA transfers ensure a known and stable cache state and may have to take additional precautions to keep jitter to a minimum In practice the CPU would be dedicated to executing only the code in question during communication preparation and the actual communication This is likely to result in user visible effects and the impact large interrupt handling delays have on drivers would have to be analyzed Table 1 in section 6 1 of 7 36 TRF7970A GPIO_EN SPI_SCLK ie SPI_MOSI 10_6 SPI_MISO SPI_nSS 2S TE S o GPIO_INT CPU The transceiver operates as a SPI slave and the SPI bus can be shared with other devices For Special Direct Mode reception still uses the transceiver s internal FIFO and SPI but transmit enable data and clock use dedicated signals TRF7970A EN SYS_CLK OOK MOD IRQ DATA CLK 10 7 10 6 10 5 TX_CLK S
44. n 4 followed by the actual response If a collision is detected the reader can either end the slot after the precursor the cards have to turn around and listen between precursor and main reply or by indicating an error at the end of the regular slot duration While the timing of whole slots is provided by messages sent by the reader the phases inside a slot i e precursor possible early termination main reply are determined by the time since the beginning of the slot 7 3 4 7 ISO 18000 3 mode 2 ISO 18000 3 mode 2 is designed to work with very large tag populations in the same field and differs substantially from all the above protocols It uses a novel modulation scheme for a single communication channel from the reader to cards and eight reply channels distinguished by their subcarrier frequencies for card responses 2 Readers may receive on all eight channels simultane ously but can also support only operation on a single channel Last but not least tags can be 11 Section 6 1 11 2 13 of 5 12 Sections 6 1 10 16 and 6 1 10 17 of 5 13 The general sequence is defined in sections 6 1 10 4 and 6 1 10 7 of 5 The commands are defined in the following sections Wake up begins a round 6 1 11 2 12 Next slot 6 1 11 2 1 through 6 1 11 2 3 New round size sets new highest slot number and resets the slot counters in tags 6 1 11 2 16 14 Message sequence in section 6 1 10 10 precursor format in 6 1 10 12 PSK of su
45. n 02 003 July 2012 Cinterion PHS8 E Hardware Interface Description PHS8 E_v03 001 Version 03 001 Decem ber 2012 ams AG AS3909 AS3910 13 56 MHz RFID Reader IC ISO 14443 A B Version 3 02 October 2013 http www ams com eng content download 371303 1221017 file AS3909 10_Datasheet_v6 pdf ams AG AS3911B NFC Initiator HF Reader IC Version 1 08 June 2014 http www ams com eng content download 618303 1666697 file AS3911B_Datasheet_EN_v1 pdf NXP Semiconductors PN512 Full NFC Forum compliant solution Product data sheet Rev 4 6 December 2014 http www nxp com documents data_sheet PN512 pdf NXP Semiconductors PN532 C1 Near Field Communication NFC controller Product short data sheet Rev 3 2 September 2012 http www nxp com documents short_data_sheet PN532_C1_SDS pdf 5l 33 34 35 36 37 38 39 40 41 42 43 44 T SOL NXP Semiconductors PN544 Near field communication NFC controller Objective short data sheet Rev 1 2 September 2007 NXP Semiconductors CLRC668 High performance NFC reader solution Product data sheet Rev 3 9 July 2015 http www nxp com documents data_sheet CLRC663 pdf Texas Instruments Incorporated TRF7970A Multiprotocol Fully Integrated 13 56 MHz RFID and Near Field Communication NFC Transceiver IC SLOS743K April 2014 http www ti com lit pdf slos743 Wyatt Josh Aslanidis Kostas Mayer Zi
46. neration PN548 that are even more elusive A driver for the PN544 is included in the mainline Linux kernel drivers nfc pn544 Given the extremely poor documentation situation we should not consider this chip suitable for use in the Neo900 project 7 7 NXP CLRC663 The CLRC663 looks like a modernized version of the PN512 with a broader range of supported protocols Both share the lack of community interest and the CLRC663 has the further disadvantage of not supporting a 1 8 V host interface voltage 8 nttp www nxp com products identification_and_security nfc_and_reader_ics nfc_contactless_ reader_ics PN5321A3HN htm1 82 http www nxp com products identification_and_security nfc_and_reader_ics nfc_contactless_ reader_ics series PN547 html 83 http www nxp com products identification_and_security nfc_and_reader_ics nfc_frontend_ solutions CLRC66302HN htm1 33 7 8 TI TRF7970A The TRF7970A is readily available comes with comprehensive documentation and considerable design experience exists in the community It is much simpler than the NXP PN544 covering only the lower layers of the NFC RFID protocol stack This puts a larger burden on the host but also ensures a maximum of flexibility and allows to omit functionality that would create intellectual property liabilities Possible issues include that the chip has a comparably complex host interface that is based on SPI not I C and that it does not include
47. ntel Juergen TRF7970A Firmware Design Hints Texas Instruments Incorporated SLOA159 August 2011 http www ti com lit pdf sloa159 Wikipedia Electronic Product Code https en wikipedia org wiki Electronic_ Product_Code NXP Semiconductors UM0701 02 PN532 User Manual Rev 02 November 2007 http www nxp com documents user_manual 141520 pdf Luecker Thomas Dickson Mark AS39911 door handle Hardware description ams AG Ap plication note Rev 1V00 December 2011 http www ams com eng content download 548423 1536317 NXP Semiconductors Antenna design guide for MFRC52x PN51x and PN538x AN1445 Rev 1 2 October 2010 http www nxp com documents application_note AN1445_An1444 zip Philips Semiconductors mifare 144434 13 56 MHz RFID Proximity Antennas Revision 1 0 November 2002 http www nxp com documents application_note AN78010 pdf Micore Reader IC Family Directly Matched Antenna Design Rev 2 05 May 2006 http woww nxp com documents application_note ANO77925 pdf Schillinger John Antenna Matching for the TRF7960 RFID Reader Texas Instruments In corporated SLOA135A September 2013 http www ti com lit pdf sloa135a EMVCo EMV Contactless Specifications for Payment Systems Book D EMV Contactless Communication Protocol Specification Version 2 4 February 2014 http www emvco com download_agreement aspx id 954 OpenPCD project Mifare Classic http www openpcd org Mifare_Classic
48. o detect an S2 0 condition if the card draws at least 600 uA and that the voltage at the card s SWIO pin must be at least 1 53 V if the card draws up to 1 mA Note that these worst case requirements are probably too strict and lead to an operating point very close to the supply voltage If we decide to use more relaxed bounds the circuit will be able to have larger tolerances margins 6 3 SWP bit encoding The default bit duration is 1 5 ps 4 Each bit period begins with a rising edge on SWIO and a high level of 1 4 to send a 0 on S1 or 3 4 to send a 1 followed by the falling edge and a low level until the end of the bit period The following diagram illustrates transmission on 1 and 2 For simplicity we use a nominal bit time of 4 us a nominal voltage of 1 8 V and a nominal high current of 800 uA 800 200 uA 33 Table 7 5 in section 7 1 4 1 of 23 34 Table 8 1 in section 8 1 of 23 19 4us 1 8 V 0V 1 4T 3 4 T 3 4 T 1 4 T 3 4 T 1 4 T kee Tus 3 Us s1 eo ee ee eee eee 800 uA 0 mA es ae a tt gt E hUdD switch load The card switches its load characteristics while SWIO is low and the state of S2 is only defined while SWIO is high Further details can be found in section 8 of 23 Depending on implementation constraints one may prefer a faster or a slower bit rate than indicated in the example above A low rate may be preferable if the CPU is unable to toggle IO pins quickly
49. odulation In the receive direction the NFC chip can either perform demodulation bit decoding and clock recovery and present a clocked bit stream to the CPU or it can just output the demodulated radio signal without clock and leave all the rest to the CPU We call any such mode a raw mode AMS call it transparent mode TI call it direct mode and NXP describe it in terms of bypassing elements instead of considering it a proper mode of operation Some chips may also implement modes in which basic framing is performed but with relaxed parity or CRC checking or similar simplifications Capabilities Chip documentation tends to be somewhat vague on the exact capabilities and limitations of raw modes For example for the TRF7970A only modes corresponding to a reader or initiator role are described i e suggesting that load modulation may not be possible in raw mode but discussion on the TI support forum suggests that it may be possible to perform Card Emulation for ISO 15693 using raw mode which in turn would imply that load modulation is supported in raw mode Furthermore the TRF7970A is reportedly capable of acting as a sniffer for both initiator and target without configuration changes between transmission and reception The TRF7970A also supports a number of high level raw modes They are described in more detail in section 7 8 1 The AS3910 appears to only support raw mode in a reader role The AS3911B
50. of a delay of half a bit time between bytes when operating as SPI master Possible alternatives to SPI would include I S which has a continuous clock is also available in the chips discussed here and should be able to operate at data rates up to 12 5 MHz or a fairly generic serial protocol engine called FlexIO 49 that has recently been introduced in some Freescale microcontrollers 8 4 Connection example The following drawing shows a possible wiring of the interface between TRF7970A and KL16 KL26 98 KL15 DMA with SPI Interbyte delay https community freescale com thread 308798 However experiments conducted by the author on KL25 and KL26 chips have not produced any evidence for the existence of a significant inter byte delay 42 Enable NFC_CLK GPIO_EN EXTALO SPIi_PCSO GPIO_SELF SPI0O_SCK SPI1_MISO S444 107 SPIO_MOSI lu O O Pa 10 6 SPIO_MISO a ak 105 SPI1_SCK S A 104 SPI0_PCS0 10 3 SPI1_MOSI I0 2 GPIO_TX_EN Hold high when 1 GPIO 1O01 raising EN 0 GPIO_OOK KL16 KL26 Note that no external switches or multiplexers are required As explained in section 3 1 of 50 inputs that are driven high while the chip is not enabled draw a significant idle current To avoid this IO_1 should be connected to a GPIO and only be driven high when needed for interface selection and the SPI bus should not be shared with other devices Since the KL16 KL26 tri states most
51. pins after reset we add a pull down to EN so that the transceiver is deactivated and thus in a defined state until the MCU is ready to turn it on The following table shows which of the connections would be used to carry data and clock in each transceiver mode and which signal activates the SPI slave Mode Direction Data Clock Select NFC MCU NFC amp MCU NFC MCU Standard TX MOSI SCLK lt nsSs RX MISO lt SCLK lt nss SDM TX lt TXD TRX_CLK gt RX MISO gt lt SCLK lt nss DM1 RX RXD gt TRX_CLK gt SELF DMO DM1 TX MOD NFC_CLK gt DMO RX RXD gt NFC_CLK gt SELF 43 8 5 SWP interface example The Kinetis KL16 KL26 families include a fast analog comparator with built in programmable voltage references This can be used to implement an SWP interface as described in section 6 4 Since we need to be able to sample the S2 state within an interval of 1 25 us or shorter we assume that the comparator is operated in high speed mode with a maximum propagation delay of 200 99 ns We can obtain the following parameters from the data sheet 47 Parameter Reference section Value Unit Comment Vu Figure 10 3 6 2 5 160 mV Typical configurable near rail VOFF Table 27 3 6 2 20 mV Maximum Tomp Table 7 2 2 3 1 uA Maximum Ron Table 7 2 2 3 200 Q Normal drive pad maximum 50 Q High drive pad maximum Assuming the use of a high drive pad to minimize the effect of Ron variations the minimum hyst
52. provide some form of raw access to the radio interface to allow external digital hardware to implement codings and framings the respective NFC chip does not support natively 3 6 Higher layers There can be many additional protocol layers on top of anti collision and framing particularly in the case of NFC peer to peer operation See for example figure 1 in section 1 of 19 with additional details in figure 14 in section 6 22 Smart NFC chips may implement some elements from these protocols while dumb chips will just pass frames to the host and let it take care of the rest 28 The same document also serves as a warning against overly optimistic expectations regarding interoperability the experimental results in section 9 show that the chances for successful peer to peer communication with con temporary smartphones were rather low when using anything other than NFC F and the smartphone acting as initiator 15 4 Available protocol stacks A surprisingly large number of NFC stacks is available for Linux They can be characterized as follows 20 libnfc nxp NXP centric vendor stack for Android https android googlesource com platform external libnfc nxp Open NFC Another vendor stack this time from Inside Secure http open nfc org librfid The user space stack of the OpenPCD project Now defunct and replaced by libNFC http www openpcd org Host_Software librfid libNFC Community project developing a user
53. reader drawing on the right by changing the characteristics of its receiver and thus modulating the field created by the reader This is called load modulation If there are multiple cards in the vicinity of a reader their transmissions may overlap collide and the reader therefore has to select a single one for communication This process is called anti collision and is described in more detail in section 3 4 2 2 Card structure In addition to the radio interface and associated protocol processing an NFC RFID card contains also additional elements as shows in the following drawing NFC RFID card fos Reader se In a very simple application a card will just have a unique ID UID and a reader merely queries this ID A more sophisticated application would use a challenge response scheme to prevent others from impersonating the card A card can have additional memory that can be read and possibly also written by the reader or reader writer Such memory can for instance contain publicly accessible information such as a product code a URL an image etc Last but not least a card may contain a Secure Element SE This is provides an isolated execu tion environment for security sensitive applications such as authentication protocols for electronic payment 2 3 Card emulation Card emulation is similar to the previous scenario except that we have a smartphone in the role of a card The smartphone may use its o
54. rent message structure and a reduced set of message types 3 4 5 ISO 15693 3 The anti collision mechanism defined in section 8 of ISO 15693 3 10 combines a prefix mechanism with slots Like in ISO 14443 3 type A section 3 4 1 the reader sends an inventory request containing a prefix for the card ID The cards with matching addresses then respond with their full ID in the respective slot corresponding to the four bits of their ID that follow the prefix This is similar to ISO 14443 3 type A annex C section 3 4 3 except that the slot number is not random Collisions are detected at the frame level in each slot Slot numbers are not explicitly signaled by the reader but instead each card keeps a local slot counter and increments it when the end of a slot is indicated If a card sees more slots being signaled than expected in a round it simply ignores the extra slots Besides the Inventory command there are also the usual commands for resetting the anti collision protocol state Reset to ready to silence a specific card Stay quiet and to select a card for further communication Select Card selection is not required for communication but allows to omit the card s ID in further messages 3 4 6 ISO 18000 3 mode 1 ISO 18000 3 mode 1 uses ISO 15693 3 anti collision but also features a protocol extension that comes in two major branches called non slotted non terminating multiple tag reading and
55. rt In the case of ISO 14443 the numbering of the parts 2 to 4 could be misunderstood as representing OSI layering This is not the case and as the example of ISO 18000 shows the same standard document may cover layers that are split into multiple parts in a different family Furthermore protocol variants described in the same standards document can be radically different from each other and do not have to be interoperable For example it is perfectly acceptable for a standards compliant ISO 18000 3 Mode 1 device to be unable to communicate with a standards compliant ISO 18000 3 Mode 2 device According to 13 the division of ISO 14443 into an A and a B type mirrors the two competing advocates NXP type A and Texas Instruments type B Sony unsuccessfully tried to establish an ISO 14443 Type C and then created FeliCa similar to ISO 14443 2 Type B with ISO 14443 3 Type A annex C on top Some standards go by many names For instance NCF IP 1 3 is known as ISO IEC 18092 and ECMA 340 and one of the protocol variants it specifies f 128 just reuses ISO IEC 14443 Type A for its lower layers Also note that ISO 18092 NFC is very different from ISO 18000 RFID tags Among other protocols 14 specifies the following underlying standards for protocols of the various tag types defined by NFC Forum Type Basis Standard 1 15 NFC A NFC IP 1 3 meaning ISO 14443 Type A 2 1 NFC A NFC IP 1 3 meaning ISO 14443 T
56. s Incorporated SLOA192 April 2014 http www ti com lit pdf sloa192 Venancio Lauro Ramos Ortiz Samuel Linux NFC Subsystem October 2011 http elinux org images a a9 Elce11_venancio_ortiz pdf EVB Elektronik Identification Selection Guide Version 38 March 2014 http www ebv com fileadmin design_solutions php download php path uploads 2Ftx_ downloadarea 2FP 049 E 05 2013 v3_RFID_Selection_Guide_neu pdf ETSI TS 102 221 V11 1 0 2013 11 Smart Cards UICC Terminal interface Physical and log ical characteristics Release 11 http www etsi org deliver etsi_ts 102200_102299 102221 11 01 00_60 ts_102221v110100p pdf ETSI TS 102 613 V11 0 0 2012 09 Smart Cards UICC Contactless Front end CLF In terface Part 1 Physical and data link layer characteristics Release 11 http www etsi org deliver etsi_ts 102600_102699 102613 11 00 00_60 ts_102613v110000p pdf Texas Instruments Incorporated TPS65950 Integrated Power Management and Audio Codec SWCS0382F Silicon Revision 1 2 July 2014 http www ti com lit ds symlink tps65950 pdf ISO IEC 7816 3 Identification cards Integrated circuit cards Part 8 Cards with con tacts Electrical interface and transmission protocols ISO IEC 7816 3 2006 E Third edition November 2006 NXP Semiconductors PN544 Near field communication NFC controller Objective data sheet Rev 2 1 December 2008 Cinterion PHS8 P AT Command Set PHS8 P_ATC_V02 003 Versio
57. slave roles and communication between MCU and NFC chip would increase occupancy of the I C bus and be subject to its arbitration rules The MCU has to relay all communication between CPU and NFC chip if a dedicated I C or SPI bus is used between MCU and NFC 7 1 5 Power consumption The following table summarizes the supply voltage ranges of the various chips and their current consumption in typical operation states Off is the lowest power state the chip can be commanded to enter Field detect is a low power state from which the chip can awaken when it enters the field of an active reader Idle is a typical state where the chip is operational but not actively communicating Transmit is when it is transmitting with maximum power 62 This would require some amount of customization in the bottom end of the kernel driver but we can expect some work of this sort to be needed no matter how the NFC chip is connected to the main CPU In any case the driver would benefit from being able to delegate low level tasks like the timely handling of the FIFO to the MCU 30 Chip Voltage Current VIN Vio Off Field detect Idle Transmit Unit V V pA pA mA mA Typ Max Typ Max Typ Max Max AS3909 2 4 3 6 Vin 0 3 2 3 5 7 2 3 AS3911B t 2 4 5 5 1 65 5 5 0 7 2 3 5 7 54 75 500 PN512 65 2 5 3 6 1 6 3 6 5 10 95 19 114 PN532 66 2 7 5 5 1 6 3 6 2 45 25 186 PN544 87 2 3 5 5 1 6 3 3 5 10 100 CLRC663
58. space stack centered on the NXP PN53x chip fam ily 9 http nfc tools org Linux NFC Kernel based vendor neutral at the time of writing the stack had drivers for devices from Inside Secure Marvell NXP Sony STM and Texas Instruments stack following the regular development model for the Linux kernel https 01 org linux nfc The kernel based Linux NFC project clearly looks like the future and we can probably safely ignore the other projects 29 nttp nfc tools org index php title Devices_compatibility_matrix 16 5 Neo900 hardware architecture The following drawing shows the overall structure of the part of the Neo900 architecture we re concerned with here Terminal Data power ETSI TS 102 211 USB UART Data power Control Data power Data power ETSI TS 102 613 SWP Modem and NFC subsystem both access the SIM cards through a switch that distributes data signals and power from both sources to the cards The modem communicates with the protocol defined in 22 while the NFC subsystem uses the Single Wire Protocol SWP defined in 23 Both protocols share the same power rails but use different signals for communication Coordination between CPU NFC subsystem and the switch is not defined yet which is indicated with a dashed line Further details on SIM card switching is outside of the scope of this document and may be addressed in a separate publication For s
59. t at S2 0 or Furthermore to meet the voltage level requirements from section 6 2 we need R z Vio 1 53 V SHUNT S 7999 Tice ON and 0 27 V ON R lt SHUNT S 59 mot Tene The DM3730 contains no analog elements and the ADC in the TPS65950 companion chip has conversion times of tens of microseconds which would be far too slow for SWP 35 Table 5 77 in section 5 6 3 1 of 24 21 To implement a detection circuit similar to the above example a comparator external to the CPU would be needed This could be in the form of a dedicated chip or by using a comparator circuit in another system component Section 8 5 discusses a possible configuration using the built in comparator of a Kinetis KL16 or KL26 series MCU 6 5 SIM card power and card activation This section discusses the card activation process i e provisioning of power and the communication required before an SWP interface can be used We also consider the role of the modem and the consequences of sharing a SIM card between modem and NFC 6 5 1 Card activation The SWP standard defines card power up activate the contact C1 Vcc such that commu nication over the SIM s RST C2 CLK C3 and I O C7 pins is required Furthermore the availability of SWP functionality in the card is also signaled over the same interface From this it would seem that any SWP user must either have the ability to communicate with the SIM over the regular data
60. that deep Available information for the PN544 does not mention any raw mode and does not give enough details to determine whether this kind of functionality could be implemented using test modes Digital interface The AMS chips reuse the MOSI and MISO pins of the SPI interface for modulation and envelope output The AS3911B can also output a phase demodulated signal on IRQ PN512 and CLRC663 use dedicated pins SIGIN and SIGOUT for modulation and envelope PN512 uses D1 to output a clock derived from the carrier frequency CLRC663 uses CLKOUT for the same purpose There is no corresponding information for PN532 and PN544 The TRF7970A uses different pins depending on the type of raw mode We examine this in detail in section 7 8 3 7 1 4 Host interface The following table summarizes how the chips connect to the host Chip Host interface 1 8 V FIFO Regular Raw mode Bytes AMS AS3910 SPI on SPI 32 AMS AS3911B SPI SPI extra 96 NXP PN512 SPI PC separate e 64 NXP PN532 SPI I C e 64 NXP PN544 SPI I C e NXP CLRC663 SPI UART IPC separate 512 TI TRF7970A SPI separate 127 The host interface usually consists of one channel for commands and frame data and one or more channels for bit streams or modulation signals in raw modes These two channels can share the same pins AMS or they can use a completely different set of pins NXP and TI 1 8 V indicates whether the chip can operate with an I
61. ts with an exact delay of al beginning of a bit Taking into account carrier frequency tolerances we therefore obtain the following timings for the beginning of the t pulse 87 Section 6 1 of 6 88 Table 3 in section 8 1 2 1 and table 7 in section 8 1 3 of 6 35 Time ws 48 MHz cycles 4 7173 4 7222 226 43 226 67 It is therefore not possible to provide accurate ty timing with the SPI subsystem of the DM3730 operating as master If used as slave the DM3730 s SPI interfaces can operate at 12 MHz in OPP50 and at 24 MHz in OPP100 The possibly divided RF clock could therefore be used as SPI bus clock for transmission in DMO and DM1 and also for reception in DMO Unfortunately the DM3730 has the unusual requirement that the SPI select signal has to raise at the end of each word and is therefore not suitable for receiving a continuous bit stream This issue can be resolved in the following manners e Support only standard compliant protocols without any of the direct modes e implement non standard protocols with DMO DM1 reception and SDM are unavailable due to the requirement to de select the DM3730 SPI slave between bytes using an SPI master with an out of specification data clock derived from the 48 MHz source e try to generate the bit stream entirely under software control e use a different transceiver or e add a microcontroller capable of relaying data between DM3730 and TRF7970A An exa
62. unctionality would be required 38 Since it appears that at most one data stream i e SPI TX RX bits or modulation envelope information is active at any given time it should be possible to operate the transceiver with a single SPI interface from the host The circuit for this may look as follows N S ar lu o9 nx gt a ot 2 a o N Le a a Ke lt a oog osc a a A ae ate ee GPIO_OOK GPIO_EN GPIO_MODE 2 SPI_CLK 7 SPI_MOSI 10_6 SPI_MISO 10_5 10_4 SPI_nSS 10_3 10 2 GPIO_TX_EN IO 1 Hold high when 10 0 raising EN GPIO_IRQ CPU Note that IO_5 is an active if useless output also in SPI mode and therefore must be separated from SPI clock generated by the host The following table shows the different clock configurations Protocol mode SPI mode Clock mode Clock selection DATA_CLK Standard SDM RX Master SPI SCLK SDM TX DM1 RX Slave TRX L DMO DM1 TX Slave RF L Note that IO_2 must be held high on power up which seems to include EN transitioning from low to high to select the four wire SPI interface configuration 7 8 4 Activity states The TRF7970A has two enable lines that allow the selection of up to three different activity states 9 Table 6 3 in section 6 3 2 of 35 39 State EN EN2 SYS_CLK Vpp x Power down 0 0 off off Sleep 0 1 off on All others 1 X on on SYS CLK is the clock output and Vpp_x is a regulated voltage derived from the 3 3 V
63. wn power source but its NFC RFID subsystem may also be capable of operating with power from the field alone Power data O Reader I Secure element Amplitude modulation Communication is exactly the same as with a card the reader modulates the field to send data to the phone and the phone modulates the field by changing its load characteristics to respond Power a G gt A Data Secure element Load modulation If the application requires a SE then this may be provided either as part of the smartphone s hardware by software or through a Subscriber Identity Module SIM card In the latter case the NFC RFID subsystem acts merely as a relay between the radio interface and the SIM card with the SE controlling most of the protocol processing We discuss the mechanism used for communication between the secure element in the SIM card and the smartphone in section 6 Note that a smartphone can also act as reader communicating with a card or with another smart phone using card emulation 2 4 NFC peer to peer When both parties are smartphones or similar devices they can also use NFC peer to peer com munication Unlike a card reader that will typically continuously scan for cards an NFC device only activates its field when requested to do so A device can act as initiator activates field and then searches for peer or as
64. ype A 3 16 NFC F NFC IP 1 3 meaning FeliCa 4A 17 NFC A NFC IP 1 3 meaning ISO 14443 Type A 4B 17 NFC B ISO 14443 Type B 3 2 Bit rates Timings in NFC are usually expressed in terms of the carrier frequency fo 13 56 MHz with subcarrier frequencies and data rates using the notation fc and bit durations fe The following table shows the most commonly used rates the corresponding bit durations and also mentions the most relevant standard s using that rate 1 Emphatically stated several times in sections 1 3 6 0 1 to 6 0 4 6 1 and 6 2 of 5 Divider n Bit rate Bit duration Used by foa Vio kbps us 2048 6 62 151 ISO 15693 low rate single subcarrier 2032 6 67 150 dual subcarrier 512 26 48 38 high rate single subcarrier 508 26 69 37 dual subcarrier 128 106 9 44 ISO 14443 64 212 4 72 ISO 14443 after anti collision FeliCa 32 424 2 36 ISO 14443 after anti collision 16 848 1 18 ISO 14443 after anti collision NCF IP 1 stretches the rules of FeliCa a little and allows rates up to fc 2 3 3 3 Modulation and coding In this section we briefly summarize the lower layers of NFC radio protocols This overview is intended to provide context for the following sections and also to better understand the capabilities and limitations of the chips we examine later on All RFID NFC devices in the HF band operate with a carrier frequency of 13 56 MHz 7 kHz Since the RF field of th
Download Pdf Manuals
Related Search
Related Contents
GE JB860DJBB Use and Care Manual MD 1155-LCD Voltage & Continuity tester_Multi lingual_Ver MANUAL DE USUARIO Cycraft - PLAY iT! Amusements Belkin F4U029TT Steelseries Zboard Keyset Aion Contour Energy Systems CR2032 8540 DC Load User Manual - 首頁 www.silverlinetools.com CB・TK-A Copyright © All rights reserved.
Failed to retrieve file