Home
AN11211 - NXP Semiconductors
Contents
1. Ai ory Hilli oan finials PHAC_ DSCLOOE_ ENTRY_ POINT POL a ee Application Activation step 3 Single Technalogy Detected Pe Seth OT Collision Resolution And Activation step 2 Num devices resolved gt 1 haa tagty pe taande Success PHAC DISCLOOP COLLISION PENDING PHAC DISCLOOP MULTLODEVICES RESOLVED PHAC DISCLOOP DEVICE ACTIVATED PRAC_DSCLOOP PASSVE TARGET_ACTIVATED PHAC DISCLOOP MERGED SEL RES FOUND Failure Codes PHAC DSCLOOP_NO DEVICE RESOLVED PHAC_OSCLOOP FALU All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 226221 21 of 47 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide The example application first initializes the hardware configures the host interface and continues execution in the function BasicDiscoveryLoop_Demo in file NfcrdlibEx1_BasicDiscoveryLoop c This function is the core of the example It shows the initialization of the NFC Reader Library as well as the execution of the Discovery Loop After the Discovery Loop has been executed the user can see how to differently handle the detected tags or devices depending on the technology In between each execution the application puts the RC663 into Low Power Card Detection LPCD mode 5 2 Example 2 Advanced Dis
2. Before one can run the project the LPCXpresso board containing the RC663 Blueboard needs to be connected to the computer Wait until the adequate drivers have been installed 4 3 Run the project Before running the project please ensure that the LPCXpresso with the Blueboard is connected to the computer Please also make sure that the correct microcontroller and the correct build configurations are chosen Information about how to do this can be found in the sections 7 2 and 7 4 If one is using the projects with the Silica TUSA Board instead of the CLEV663B Blueboard please find the needed modifications in the code at section 0 AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 17 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 Blueboard Quick Startup Guide Start here amp Import project s gf New project lop Build all projects DebugLPC1769 amp Build NferdlibExd_BasicDiscoveryLoop DebugLPC1769 2 Clean NfcrdlibFxt BasicDiscowensd oon 63 Edit Nfcrdlibbd_BasicDiscoveryLoop project settings Quick Settings ate Export projects to archive zip are Export projects and references to archive zip Fig 23 Run the project Choose the project that contains the user application and click the Debug Button on the left hand side as shown i
3. log in only with read or write password This operation needs to be executed prior to Write Password Lock Password or Protect Page command If Protect Page is intended to be called the Set Password function must be called twice prior to Protect Page once for writing and once for reading If a page is read or and write protected this operation must be called prior to Read Single Block Read Multiple Blocks or and Write Single Block operation Note Console error message ERROR Set Password command is not supported by chosen tag is printed either when the requested tag is not capable to perform the operation for example an SLI tag is requested or also in case the password is incorrect Precondition Prior to this operation Set Password needs to be run e Write Password Application performs Write Password command 0xB4 on previously chosen tag Application supports just changing of write and read password Password identifier read write has to be chosen Note Choosing the Password identifier read write is provided only by the Set Password command The software uses for the Write Password command the same password identifier e Lock Password Application performs Lock Password Setting a new Password and placing a subsequently Lock can be done in the following steps e 1 Set Password 2 Write Password with new password 3 Set Password with the new password 4 Lock Password with new password Precondition Prior to t
4. AN11211 Quick Start Up Guide RC663 Blueboard Rev 2 1 11 November 2015 Application note 226221 COMPANY PUBLIC Document information Info Content Keywords RC663 Blueboard LPCXpresso MCU Code Red eclipse LPC1769 NFC Reader Library CLEV663B Abstract This application note is related to the installation procedures of the RC663 Blueboard It describes the actions to be done to become acquainted with the demo reader NXP Semiconductors AN11211 Revision history Blueboard Quick Startup Guide Rev Date Description 2 1 20151111 Updated all relevant parts in respect to the NFC Reader Library update Removed LPC1227 support 2 0 20150707 Changed chapter 2 based the Blueboard version 3 0 version 2 1 removed Changed chapter 4 installation LPCXpresso IDE Added chapter 5 4 ICODE Demo Project Added chapter 7 2 ICODE Software Architecture Chapter 8 added new links related with ICODE 1 9 20141201 Added a note about RAM limitation of LPC1227 1 8 20140721 Updates in the description regarding the TUSA board 1 7 20140519 Removed the note about the version of the LPCXpresso IDE Some small corrections Changed the description and pictures of the projects Polling and Classic Changed the description of the P2P description due to a software update Removed the description about the projects Ultralight and DESFire All projects are now bas
5. _ w amp SIGIN immat fam SIGOUT R35 R34 DYDD Fig 12 Relevant hardware changes to use I2C To set up the I2C interface it is necessary to perform the following relevant changes on the Blueboard 1 Open the bridge at R15 Open the bridge at R21 Open the bridge at R26 Close the bridge at R16 Close the bridge at R20 Close the bridge at R29 D a p wD AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 10 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 Blueboard Quick Startup Guide 3 Installation of the LPCXpresso Board AN11211 The guidelines to install the reader are as follows e Connect the LPCXpresso Board as well as the Blueboard to a real USB2 0 port of the PC for soeed reasons using the mini USB connector The PC detects and installs the Board automatically The Blueboard only needs to be connected to the PC out of power reasons e Once the Board is installed open the Device Manager of the PC to check that the installation has been successful The item USB Device with DFU Capabilities is being displayed E Device Manager File Action View Help e muH me eRe b Monitors b EF Network adapters b Ports COM amp LPT b T Processors b fy Smart card readers b Sound video and game controllers t re Storage controller
6. Comment the line define SPI USED 7 7 Removing the initial breakpoint on debug startup When the debugger starts it automatically sets a breakpoint at the first statement in the main function One can remove this breakpoint as follows 1 Right click on the project and choose Launch Configurations gt Edit current AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 39 of 47 COMPANY PUBLIC 226221 NXP Semiconductors a Open in New Window t B E Copy Ctrl C a B Paste Ctrl V 3 Delete Delete gt es UR Source H Move Qui Rename F2 m s Import ES Start c Export impo Build Project W New Clean Project i Build Refresh F5 amp Build Close Project Close Unrelated Projects of Clean j S Debut Build Configurations gt Edit p Make Targets gt gt PE I Index amp Quic Convert To Manage DSF Host Strings amp Run As Debug As Profile As Team Compare With Restore from Local History Launch Configurations 4 Smart update 3 Run C C Code Analysis Tools Properties Fig 43 Open Current Launch Configuration _ 243 gt int main void 1 24a 245 Start wit 246 uint32_t volz 247 uint 6 t num 248 uint amp _t regc 249 250 for i xi 25
7. on eee So Fa E MA ria 2 d Tritt l Na i f s E Se Toe i As ese LF FREE ES 2 ee a ee pag Fig 5 LPCXpresso with the Multipoint Connectors AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 6 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide Now the hardware is ready for use Please connect the LPCXpresso board to the Blueboard J genes Ue a m GF A E n n J d _ Af Piece T TA a ar a a a a ae ee S a Fig 6 Connect the two boards Note that it is possible to arrange the boards vice versa The pictures below will illustrate that NXP CLEVGGJO Biveboard 3 0 Fig 7 Picture of RC663 demo board with the connectors joined alternatively Fig 8 LPCXpresso with the Multipoint Connectors used in the alternative way AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 7 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 Blueboard Quick Startup Guide Fig 9 Connect the two boards the alternative way 2 5 Soldering the interrupt connection To get the interrupt working please remove the 0 Ohm resistor from R35 and place it to
8. the pads labeled with R34 2 6 Interesting points of measurement 2 6 1 AN11211 The Blueboard is designed to do extended measurements and consists of test points which could help during software and hardware development These test points are situated on the top of the Blueboard The location is shown on the Fig 10 The description is given in the following subsections For more details see the datasheet 2 ba OC ca gamn je L3 d FETERE RE _ e Ch R SIGIN SIGOUTS DUDD o a R34 Fig 10 Test points location SIGIN SIGOUT Contactless communication interface input output An external circuit can be connected to these communication pins to modulate and demodulate the data All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 226221 8 of 47 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 2 6 2 AUX1 AUX2 Antenna design Auxiliary outputs are used to optimize the hardware antenna circuit to reduce noise and grow the performance see the antenna design guide 16 2 6 3 DVDD AVDD Power supply There are two internal power regulators which are independent from the internal chip structure They are separately connected to analogue output pin AVDD and digital output pin DVDD Regulat
9. 2 software and CONMMOUIATIONS esvnccaescatecvwestnasanencdencdsteeceetcecocewent 30 Blueboard Quick Startup Guide 6 Other supported hardware by the projects 7 Supplementary Notes ccccccsssssseeeeesseseeeees 7 1 General Software Architecture 0ccee 7 1 1 Bus abstraction layer cccccccceesssseeeeeeeeeeeeees 7 1 2 Hardware abstraction layet 0 cceceseeeeeees 7 1 3 Protocol abstraction layer ccccsseeeeeeeseeeeees 7 1 4 Application layer ccccceccccsseeeeeeeseecseseeeeeees 7 1 5 NFC ACV LY soe scectcemniarnnentexencdandepamenscansitendannteios 7 1 6 PCE Layer corneren iaire 7 1 7 I FP ei E 7 2 ICODE Software Architecture cccccccee 7 2 1 Bus abstraction layer ccccceccccesssseeeeeeeeeeeees 7 2 2 Hardware abstraction layet ceccseeeeeees 7 2 3 Protocol abstraction layer cccccsseseeeeeseeeeees 7 2 4 Application layer cccccseeceeeeeeeeeeeeeeeseeeeeenees 7 3 Build configuration ccceeeeeeeceeeeeeeeeeeeseeeees 7 4 Setting the MCU ssisissrieiiinsnrisinnnc iiine 7 5 Level of compiler optimization cccee 7 5 1 Optimization ISSUES ccccceceeeeeeeeeeeeeeeaeeeeees 7 6 Preparing the projects for the use of the Blueboard in I C configuration cccccseeeeee hl Removing the initial breakpoint on debug Stanu a sesipcanpeecinxa hte nos atiaeenen ER 7 8 Preparing the projects for the
10. LPCXpresso IDE restart button from the tool icon bar see Fig 32 Pen RPO RKP RSP Gm Ke SH E U EA console 3 mi S E A E A S NfcrdlibEx00 icode DebugLPC 17659 C C NXP Semiconductors MCU tion NfcrdlibEx00 icode axf 5 Lock lock the user memory on ag for write a i Inventory detection of all tags in t e RF field n Number of Tags endless loop inventory foexit please press the LPCXpre Single Tag Detection single tag operations c Configuration Setting detection parameters settings r RETURN M ILT Number of Inventoried Tags 3 number of detected tags 3 3 3 Fig 32 How to exit the Number of Tags endless loop e Single Tag Detection Application performs one tag inventory This function is designed to work only with one tag In case more tags are in the field the Multiple tags detected message is displayed in the console The purpose of this method is to significantly soeed up working with a single tag Other operations read write lock access can be performed without any limitation Note All operations are performed with the chosen tag in non masked mode UII is not stored for executing further commands In case no tag or more than one tag are detected it is necessary repeat the inventory e Configuration Setting Application allows setting and changing parameters that affect detection of tags inventory method and accessing the tag All parameters for the detection and
11. Microcontrollers LPCXpresso includes the LPCOpen packages which can be imported directly by pressing th button in the Project archive zip section above and navigating to the Examples LPCOpen Alternatively press the button below to Browse the LPCWare com website for latest resourc Browse LPCOpen resources on LPCWare com Fig 21 Importing a project into the LPCXpresso IDE Browse the desired package and click Next All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 226221 16 of 47 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide n Import project s Select a directory to search for existing Eclipse projects Projects 7 FreeRTOS_Library FreeRTOS W Lpc1769 Lpc1769 J 7 NfcrdlibExl_BasicDiscoveryLoop NfcrdlibExd_BasicDiscoveryLoo V NfcrdlibEx2_AdvancedDiscoveryLoop NfcrdlibEx2_AdvancedDisi m Options Copy projects into workspace Working sets Add project to working sets Fig 22 Importing a project into the LPCXpresso IDE For a working demo project you need to import at least four sub projects One example project the NFC Reader Library FreeRTOS and one MCU project When the import process has finished one can start browsing the code
12. and are being distributed in one single file 5 1 AN11211 All projects are packaged into one installer file After downloading the zip file please extract it and run the installer The installer just copies everything you need to get started to your hard disk Example 1 Basic Discovery Loop The Discovery Loop can be seen as the entry point when starting to communicate with an NFC tag or device It scans the close environment for tags and devices of different technologies in range In case something has been found the Discovery Loop performs the anti collision and identification The obtained information are then passed back to the developer Discovery Loop Poll Mode State and Error Codes Success Codes PHAC DSCLOOP MULTITECH DETECTED PHA _DISCLOOP ACTIVE TARGET ACTIVATED Failure Codes FRAC DSCLOOP FALLUFE PHAC TE CLOGe EXTERNAL _RPON BHAC DSCLOCe NO TECH DETECTED TPHA DISCLOGP IPED NO TECH DETECTED PHAC_DSSCLOOP_CONFIG_NEXT_POLL_STATE re PHAC DISCLOGF POLL STATE DETECTION phactiscLoop Run amp dscloop PHAC DSCLOOP ENTRY POINT POLL PHA MAS lt OR mc ETATE a ff Z he F Single device Activated or Error ey Success Codes PHAC_DISCLOOP DEVICE_ACTVATED PHAC_ RSCLoOP_ PASSIVE TARGET _ACTVA TED PHAC DISCLOOP MERGED SEL RES FOUND Failure Codes PHAC_INSCLOOP_FALURE ks Fig 29 Discovery Loop in Poll mode PHAG _DBCLOOF CONFIG LREN _POLL_STATE
13. communication with connected RC663 reader The Stub module defines the interface while executive code of the Stub is placed in the MCU LPC1769 project This second part implements dedicated LPC1769 drivers to handle the SPI and I2C peripherals of the microcontroller Software runs reliably with SPI bitrate set to 5MHz Testing has shown 12C is too slow for reliable functionality of ILT part of the ICODE Demo project Hardware abstraction layer See 7 1 2 Protocol abstraction layer The PAL layer of the ICODE Demo Project is the logical layer which represents rules specified by 15015693 It contains only two modules from the original NFC Reader Library e ISO IEC 15693 e ISO IEC 18000 3m3 Application layer The AL lies on top of the PAL and is on top of the NFC Reader Library It combines elements of the previous three parts into high level functionalities In the modules of this layer the particular ILT SLI X SLIX2 commands are provided in a very close way as defined in specifications 13 14 15 e SLI SLIX 2 commands e 15693 SLI and extended commands All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 36 of 47 226221 NXP Semiconductors AN11211 Blueboard Quick Startup Guide e ILT ILT Access commands 7 3 Build configuration All the projects mentioned in C
14. installing it needs to be imported as a new project into a separate workspace than the previous software packages MIFARE P2P because it is not possible to have two different projects with the same name NFC Reader Library inside one workspace To make the ICODE Demo Project package running follow these steps 1 Create a new workspace 2 Import the project package zip file into the new created workspace To do this follow the instructions from the chapter 4 2 e Running the project Launch Debug configuration of the software see section 4 3 then it by pressing the resume button Click with mouse pointer anywhere inside the console window and follow the instructions e How to control menu To choose a menu item press the corresponding key on the keyboard and confirm with ENTER key e How to customize the build configuration of the project In the configuration file icode_common h are three configuration options providing the possibility to build the CODE Demo project in different configurations to only handle certain type of tags ILT SLI without SLIX2 SLI and SLIX2 Build configuration defines o NXPBUILD_SLI_TAG enable SLI tag handling o NXPBUILD SLIX_2 TAG enable SLIX2 tag handling o NXPBUILD_ILT_TAG enable ILT tag handling Note SLI is necessary prerequisite for SLIX2 project cannot be configured only for SLIX2 To apply a particular build configuration comment unwanted build configurations compile and run the pr
15. is indicated e Start the LPCXpresso IDE e Select the option Import project s see picture below e Browse the zip archive e LPCXpresso IDE unzips the software package e The software package is ready for use AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 15 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 AN11211 Blueboard Quick Startup Guide ha Import project s land Build all projects a Build g Clean TF Debug Ba Edit project settings zay Import project s from XML Descripti Fig 20 Importing a project into the LPCXpresso IDE Elc i Mo consoles In the Quick Panel on the left hand side choose Import projects s Select the examples archive file to import Projects are contained within archives zip or are unpacked within a directory Select your project archive or root directory and press lt Next gt On the next page select those projects you wish to import and press lt Finish gt Project archives for LPCOpen and legacy examples are provided Project archive zip Archive D CLEV663B_LPC1769_NFC Reader Library v3 092_SPI I2C zip Project directory unpacked Root directory Browse LPCOpen LPCOpen is the recommended code base for Cortex M based NXP LPC
16. needed to work with the NTAG I2C For more details about the NTAG I2C and its functionalities please consult the product page of the same 18 AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 22 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 5 8 ICODE Demo Project The ICODE Demo package is a simple embedded software that shows how to perform basic operations with ICODE ILT ICODE SLI SLIX and SLIX2 tags The application interacts with a user through user interface UI hosted in the console window of the LPCXpresso IDE It is designed to get prompts from the user giving him a possibility to customize the order of execution of commands It can be downloaded from the documents section of the RC663 demo board page 1 7 The package further includes e Special version of the NFC Reader Library with content reduced to those modules which are necessary for support of ILT and SLI tags and library dependencies necessary for LPC1769 RC663 platform The reduced version of the NFC Reader Library is closer described in the chapter 7 2 e LPC1769 with necessary sources for support of LPC1769 MCU The LPC1769 MCU has sufficient amount of RAM 64kB to host the ICODE Demo Project The ICODE Demo Project is distributed in a standalone zip file After downloading and
17. points of measurement 006 8 SIGIN SIGOUT Contactless communication interface input OUTPUT cccseeceeeseeeeeeeeeeeeeees 8 AUX1 AUX2 Antenna deSign ccee 9 DVDD AVDD Power supply ee 9 CLKOUT Clock Output cccccceceeeeeeseeeeeeees 9 SCL2 SDA2 SAM interface 9 Preparing the Blueboard for the use with SPI or FS EEE ESNEA 9 Installation of the LPCXpresso Board 11 Managing the Demo Reader project with LPCXpresso ID Eve ccices cxcsavccseeseecteseseevcesscerevereceves 12 Installation of LPCXpresso IDE 000 12 Extraction of the demo reader project 15 RUN the Project cccccccssseeceeseeseeeeseeeeeeeeeenes 17 Associated Projects c cccccsssseeesseesseesseeeneees 21 Example 1 Basic Discovery Loop 21 Example 2 Advanced Discovery Loop 22 Example 4 MIFARE ClasSIC cccccce 22 Example 5 ISO15698 ccccccsseeeeeeeeeeeeees 22 Example 6 EMVCo Loopback 000 22 Example 7 EMVCo Polling c0ceeeeeee 22 Example 9 NTAG I2C cceccccccseeeeeeeeeeeeeees 22 ICODE Demo Project cccccceeeeeeeeeeeeeeeeeeees 23 ICODE ILT Demo Handling ccccccseeeeees 24 ICODE SLIX Demo Handling cseeeees 26 ICODE SLIX 2 Demo Handling 00 28 ICODE SLI SLIX
18. 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 AN11211 All information provided in this document is subject to legal disclaimers Bluebo
19. representation of reader library thread and application thread used for card emulation is shown below Refer function documentation for more information Reader Library Thread Stan Thread Configure CC and NDEF files pheeT4T_SetSlementaryFile Start Discovery Loop in listen mode phacDiscloop_Runi Application Thread Activate ISO 14443 4 card mode Start phpall14443p4mC_Activate _ Synchronization Thread _ b Trigger Application Thread Wait for trigger from to start Reader Library Thread Activate T4T Card Emulation f gt Start Application Processing phceT4T_AppProcessCma Wait for triager from Trigger Reader Library Application Thread Thread about exit Thread l lt l Thread Exit Synchronization Exit Fig 38 State machine diagram of the T4T HCE example application phceT4T_Activate UPDATE BINARY PROPRIETARY t Application Callback Optional As UPDATE BINARY and proprietary commands are handled by the phceT4T_AppProcessCmd in application thread application shall use some synchronization mechanism like mutex or semaphore as shown in the diagram to synchronize entry to and exit from phceT4T Activate and phceT4T_AppProcessCmd Waiting Time eXtension WTX is handled internally by phceT4T_ Activate in reader library thread The reader library thread should be of high priority than the application thread for proper handling of WTX In non RTOS single threaded
20. supporting ISO IEC 15693 Reader writer supporting ISO IEC 18000 3 Mode 3 Refer to the data sheet of this IC 2 for more details All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 4 of 47 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide Thanks to the relevant solder bridge the host link of the RC663 demo board can be configured for e Serial UART e 2C e SPI The voltage of the power supply VDD the pad supply PDD and the transmitter supply can also be configured independently to 3 3 V or 5 V using the solder bridges 2 CL USES Blueboar d 5 Rev 3 0 W 7 o gt O n e DE O fal A n Fig 2 Picture of solder bridges 2 2 CE certification of the Blueboard The current version of the Blueboard v 3 0 is CE European Conformity compliant 2 3 LPCXpresso LPC1769 development board To work with the provided projects one will also need an LPCXpresso LPC development board Such a board is not included in the Blueboard hardware package The LPCXpresso LPC1769 development board integrates an NXP ARM Cortex M3 microcontroller LPC1769 with 512 Kbytes of Flash memory and 64 Kbytes of RAM Among others it integrates the following peripherals e Serial UART interface e SPI controller e C controller e Serial Wire test debu
21. 00 00 00 00 00 00O 00 GG 83 EC 00 ee 6 6 14 6B 34 00 090 GO GO GO GO 27 EF 00 GO 6 choose a Tag from range 1 6 decimal return y choice gt 2 UII 00 00O OO OO OO 00O OO 00O 65 EF 86 0O ILT COMMANDS 1 Read read 12 Bytes of user memory at address x 2 Write write 12 bytes to user memory at address x 3 Access Password set read access password to the tag 4 set Access Password set user password to software memory for accessing password protected tag 5 Lock lock the user memory on tag for write i Inventory detection of all tags in the RF field Number of Tags endless loop inventory for exit please press the LPCXpresso Restart button Single Tag Detection single tag operations Configuration Setting detection parameters settings 1 n s5 E r RETURN Ei of Fig 31 ILT Inventory e Number of Tags Application performs inventory like the Inventory function from menu but in this AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 25 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 5 8 2 AN11211 Blueboard Quick Startup Guide case the inventory process runs in an endless loop and only the number of detected inventoried tags is displayed For ending the endless loop it is necessary to press the
22. 1 252 phStatus_t st 253 void pHal 254 uint8_t volat 255 2565 BFL Basic 257 data paran _ 258 if defined NXPBL 259 phhalHw_Rc52 261 if defined NXPBL 262 phhalHw_Rc66 _ 263 endif 264 265 Initialize 266 GPIO_Init 267 268 ifndef TUSA 4 Console Problem A lt terminated gt Polling Debug_11 SS Sg eee No card or Tag detected MIFARE Classic detected UID 46 48 E3 AQ MIFARE Classic detected UID 46 48 E3 A MIFARE Classic detected UID 46 48 E3 AQ MIFARE Classic detected 46 48 E3 AO UID ARE Classic detected Edit current gt Create and open new gt Delete JTAG configuration 1 Choose the Debug configuration 2 Choose the tab Debugger 3 Uncheck the box near Stop on startup at 4 Click onto Apply and then Close Mame NAP Semiconductors MCU Appi NfcrdlibExl_BasicDiscoveryLoop Deb Nfcrdlibexl BasicDiscoveryLoop Deb Nferdlibexl BasicDiscoveryLoop Rele Ncrdlibbxd BasicDiscoveryLoop Rele Nfcrdlibexl BasicDiscoveryLoop DebugLPCl 69 SS SO F aT gger gt E Common Ey Source main Debugger Options AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Rev 2 1 11 November 2015 226221 Application note COMPANY PUBLIC AN11211 Blueboard Quick Startup Guide NXP
23. 11211 Blueboard Quick Startup Guide e Stay Quiet See Stay Quiet in section 5 8 2 e Stay Quiet Persistent Application performs Stay Quiet Persistent command 0xBC on previously chosen tag Tags in Stay Quiet Persistent state cannot be detected by Inventory The tag stays in Persistent Quiet state until it is powered off removed from RF field persistent time is exceeded tens of seconds depending on temperature or Reset To Ready or Broadcast Reset Loop is applied Note It is not possible to recognize whether requested tag has been really turned to the Persistent Quiet state or the command has not been caught by the tag tag out of range of RF field because the tag gives no response in both situations e Reset tag s to ready See Reset tag s to ready in section 5 8 2 e Broadcast reset loop See Broadcast reset loop in section 5 8 2 ICODE SLI SLIX 2 software and configurations There are a few define values that influence the behavior of the ICODE SLIX Demo software e Macro input parameters for commands In the icode_si i_ui c there are defined macros which are used as input values for some commands o define BLOCK _NUM READ SINGLE_BLOCK Number of blocks from which the Read Single Block command reads 4 bytes o define BLOCK_NUM_WRITE_SINGLE_BLOCK Number of blocks to which the Write Single Block command writes 4 bytes o define FIRST BLOCK NUM READ MULTIPLE BLOCKS Number of the first block from which the
24. CLEV663B demo board 7 Bus abstraction layer This layer offers functions to abstract the hardware parts of the microcontroller These functions connect to the specific peripheral drivers of the microcontroller Based on these stacks the communication routines for the relevant physical media I2C SPI can be easily designed These drivers used in this examples are specific for the LPC1XXX All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 33 of 47 226221 NXP Semiconductors AN1 1 21 1 AN11211 Blueboard Quick Startup Guide family and therefore cannot be ported to other microcontrollers If one want s to change the microcontroller he would have to adapt this layer Hardware abstraction layer This layer offers functions to abstract the hardware parts of the supported transceivers Protocol abstraction layer Every PAL function is a low level function realizing a single functionality It is encapsulated in a module which is independent from the others The user can easily design his application by doing a drag and drop of the relevant module The following PAL modules are available in this software package e ISO IEC 14443 3A e ISO IEC 14443 3B e ISO IEC 14443 4 e MIFARE e ISO IEC 14443 4mC e FeliCa e NFC Initiator e NFC Target e ISO IEC 15693 e ISO IEC 18000 3 Mode 3 Appl
25. Edition htm Key Assist Era hen g Tips and Tricks Cheat Sheets Install New Software Wo LRC PRESS Installation Details i Dipiay Tene type ct is not activated cee oe vated may only be used for Evaluation purp Support Activate t E Purchase from LPCXpresso Webstore About LPCApresso Free Edition E Create cerabawenh Note You will need to have created an acti code Activate Free Edition Gmina os er and register Free Edition E E gt To activate your product fom LPCXpressa Pro Edition i Heln gt Ar vathe ireate Serial mimh E Activate Pro Edition Fig 19 Product activation Once the activation code arrives please open the activation window by pointing to Help gt Activate gt Activate Free Edition and enter the code The success of the product activation will be confirmed by an info dialogue Extraction of the demo reader project All demo reader projects are divided into three sub projects One project that contains the NFC Reader Library one project that contains the FreeRTOS operating system one project that contains all hardware dependent parts and one project that contains the example application All projects are distributed in one zip package that can be imported into the LPCXpresso IDE in one single action The following example is based on this package The sequence of installing the reference reader projects
26. Read Multiple Blocks command starts reading o define NUM OF BLOCKS READ MULTIPLE BLOCKS 2 Number of the block at which the Read Multiple Blocks command stops reading These macros can be customized with respect to the memory boundaries of the tags to be handled e MAX NUM DETECTED SLI TAGS defines how many SLI tags the application can store Although it is possible to detect more tags during inventory this value limits the number of tags stored by the application e SPRINTF_BUFFER_SIZE defines the number of bytes that are pre buffered and printed in one frame during listing of the detected tags If listing the inventoried tags causes a stack overflow it is recommended to set the value of this macro to a lower value All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 30 of 47 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 6 Other supported hardware by the projects It s also possible to use the provided projects with the TUSA Board Manufacturer Silica This board is a 3d party alternative to the CLEV663B Blueboard It also the RC663 reader IC as well Fig 34 TUSA Board To get this board to work with the LPC1769 controller boards you will have to do a small hardware modification Because the TUSA Board gets its power from the controller
27. Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 7 8 Preparing the projects for the use with the 3d party Tusa Board It is assumed that the project is currently configured to be used with an LPCXpresso LPC1769 together with an RC663 Blueboard Please follow these steps to prepare the software project to get the TUSA board running 1 From the sub project Loc1769 open the file phLpc1768_ Build h 2 Uncomment the definition define TUSA 3 Make sure SPI is activated with the define define SPI_USED 4 Clean the project so that everything gets rebuilt AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 41 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 8 References 1 LPCXpresso website http www locware com lpcxpresso download 2 RC663 data sheet http www nxp com documents data_sheet CLRC663 pdf 3 LPC176x 5x User manual http www nxp com documents user_manual UM10360 pdf 4 Multipoint Connectors we used Grid Dimension 2 54mm at least 27 pins http www conrad at ce de product 741119 STIFTLEISTE and http www conrad at ce de product 736427 BUCHSENLEISTE EINREIHIG 5 Direct link to the NFC Reader Library Not yet available 6 TUSA Board at the Silica website http www silica com products highlight product si
28. Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide e Lock Application locks and unlocks the user memory BANK 11 for writing Write is possible only if the locked tag is in secured state Transition of the tag from open state to secured state need to be accomplished by using the Access command Note 1 All commands of the tag read write lock etc are performed like commands sequence to transition the tag s state from Ready Arbitrate or Reply state to Open or Secured state see the specification 13 Within this sequence it is conditional calling the Access command The condition if command is called or not is possible to set via the Access Password menu or via the Configuration setting Note 2 In case verification of memory lock is needed you can perform the following command sequence set Access Password 0x12345678 Set Password 0x12345678 Set Password set the usage the an access password to ON state Lock lock the user memory for writing Write something from menu writing is possible Lock un lock the user memory for writing Write something from menu gt write is not possible because memory is locked without access Note 3 Parameter of Access command calling is set by default to state OFF e Inventory Application performs the inventory of all ILT tags which are placed in the RF field After the inventory process the list of all found ta
29. Technology Type A Card i UID 04 BB FS SA 81 22 BO SAK Ox1s Type Type 2 Tag Card detected and activated successfully Technology Type V ISO 15693 TST Card 1 UID SD 7S AS OE SO 01 04 BO Card detected and activated successfully Technology Type V ISO 15693 TST Card 1 UID SD 73 AS GE 30 01 04 EO Card detected and activated successfully Technology ISO 18000p3m3 EPC Gen2 Card 1 Fig 27 Run the project In the console window at the bottom one will see the debug output of the execution After the execution has reached the end of the main function please click the Terminate button to stop the execution Otherwise one won t be able to rerun the project One can now do the following with the buttons near the top of the Debug view Run the program gt T i Step over C C line 7 Step into a function O Stop the debugger 0 Pause execution of the running orogram L ig Instruction stepping mode disassembly Fig 28 Debug Buttons AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 20 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 Blueboard Quick Startup Guide 5 Associated Projects All example projects are available for download at the product page of the CLEV663B 7 in the documents section
30. Ultralight is a trademark of NXP Semiconductors N V MIFARE Plus is a trademark of NXP Semiconductors N V ICODE is a trademark of NXP Semiconductors N V NXP Semiconductors N V 20154 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 226221 44 of 47 NXP Semiconductors AN11211 10 List of figures Blueboard Quick Startup Guide Fig 1 Picture of RC663 demo boatd ceeeeeeee 4 Fig 38 State machine diagram of the T4T HCE Fig 2 Picture of solder bridges ccesesseseeeeeee 5 example Application 0 eee eee 35 Fig 3 Picture of LPCXpresso LPC1769 development Fig 39 ICODE Architecture of the NFC Reader a18 1 e PEIEE E ENET E EEE 6 Bie E R 36 Fig 4 Multipoint Connectors We USEC c ccececeeeeereees 6 Fig 40 Select the build configuration ccceeeeee 37 Fig 5 LPCXpresso with the Multipoint Connectors 6 Fig 41 Selection of the LPC1769 MCU 00 38 Fig 6 Connect the two boards 0 ccceceseeseeeeeeeee 7 Fig 42 Select the level of optimization eee 39 Fig 7 Picture of RC663 demo board with the Fig 43 Open Current Launch Configuration 40 connectors joined alternatively ccccccceeees 7 Fig 8 LPCXpresso with the Multipoint Connectors used in the alternative WaY cccccsseeeeeeeees 7 Fig 9 Connect the two boards the alternative way 8 Fig 10 Test po
31. accessing are handled as variables in the code These variables are set to the default values during the software initialization or via this function by setting Default_SetConfig_ 18000p3m3 ICODE SLIX Demo Handling To get to the SLI section of the ICODE Demo Project the user needs to choose option 2 in the main menu and then choosing between SLIX and SLIX2 each representing a standalone submenu group of SLIX and SLIX2 commands Fig 33 Submenus in SLI menu e SLIX menu provides operations supported by SLIX tags e SLIX2 menu provides all the commands of the SLIX menu and is extended with some operations supported by SLIX2 It is also possible handle SLIX tags All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 26 of 47 226221 AN11211 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide using operations from the SLIX2 menu supported by SLIX and vice versa to handle SLIX2 tags by using operations from the SLIX menu Regardless of the choice the software immediately runs the Inventory With each entry to a particular submenu of ILT SLIX SLIX2 the software forgets clears all data gathered within previous Inventories E console 32 ry XRG amp nf nm a NferdlibEx00 jcode DebuglLPC1769 C C NXP Semiconductors MCU Application NfcrdlibEx00_ic
32. alog After the setup wizard has finished one can launch the newly installed IDE License type UNACTIVATED Activation not completed Debug limit 8k Activation code not available Fig 16 LPCXpresso IDE Directly after the first start of the Eclipse IDE one will see an info dialogue that this is only an unregistered copy of LPCXpresso IDE Just confirm the dialog and follow the instructions on the Welcome Screen to get a registered version without the debug limit of 8k The registration is free and can be done at the LPCware website The Link is shown in the menu Help gt Activate gt Create Serial number and register NXP Semiconductors N V 2015 All rights reserved 13 of 47 AN11211 All information provided in this document is subject to legal disclaimers Application note Rev 2 1 11 November 2015 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide p pn 7 j F ie ccess i 4 ay K Key Aiii EREN 0 426 lpcxpresso pages unregisteredFreeEdition htm Tips and Tricks Cheat Sheets xX I lik Install New Software X 3 Installation Details LPCXPRESSO Display licenceiype ct is not activated i kl ok a vated may only be used for Evaluation purp Support PED Retivate ms ri About LPCXpresso Note You will need to have created an at a code To activate your p
33. ard Quick Startup Guide 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 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 competent authorities Translations A non English translated version of a document is for reference only The English version shall prevail in case of any discrepancy between the translated and English versions Evaluation products This product is provided on an as is and with all faults basis for evaluation purposes only NXP Semiconductors its affiliates and their suppliers expressly disclaim all warranties whether express implied or statutory including but not limited to the implied warranties of non infringement merchantability and fitness for a particular purpose The entire risk as to the quality or arising out of the use or performance of this product remains with customer In no event shall NXP Semiconductors its affiliates or their suppliers be liable to customer for any special indirect consequential punitive or incidental damages including without limitation damages for loss of business business interruption loss of use loss of data or information and the like arising out the use of or inability to use t
34. board we need to solder a wire from the Capacitor C28 to the Pin 29 on the LPCXpresso Board See figure EI NETP GN E a ae TNR J Oe cee Fig 35 Modification on the LPCXpresso Board To get a more detailed description of the TUSA Board and the modifications in the LPCXpresso controller board please visit the product website at Silica 6 After doing the modifications the hardware is ready and one can put the boards together like shown on the following figure AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 31 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide J ae aos 7 ee TUFUI TE zr 7 W i E ui TER eee ee Fig 36 Combine the TUSA Board and the LPCXpresso Board For information about the needed changes in the projects to work with the TUSA board please see section 0 AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 32 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 7 Supplementary Notes 7 1 7 1 1 AN11211 Fore detailed API description of the NFC Reader Library please refer to the chm help file l
35. covery Loop Additionally to Example 1 the Advanced Discovery Loop example explains the different configuration options of the Discovery Loop 5 3 Example 4 MIFARE Classic Basic read write operations on MIFARE Classic cards are demonstrated with this example It shows the developer the most important operations to get started with these cards 5 4 Example 5 1S015693 Example 5 provides an overview about the most important commands for working with ISO IEC 15693 tags For a much more extensive example demonstrating the use of ISO IEC 15693 and ISE IEC 18000 3 Mode 3 tags ICODE SLI and ICODE ILT please download the software package SW33561x from 17 This advanced example is described in chapter 5 8 5 5 Example 6 EMVCo Loopback The EMVCo Loopback application is provided together with the NFC Reader Library to help the customer reaching EMVCo Level 1 certification for his device The example itself produces no output in the console window of the LPCXpresso IDE 5 6 Example 7 EMVCo Polling The EMVCo Polling example demonstrates how to configure the NFC Reader Library as specified by EMVCo specification and starts polling for EMVCo cards Once an EMVCo compatible card is found it demonstrates the exchange of APDU commands This example shall help the developer getting started more quickly when working with EMVCo cards 5 7 Example 9 NTAG I2C The NTAG I2C example demonstrates the use of special features which are
36. d MXP LPC1227 301 Build Variables LPc1w7 54 Environment LPC1756 Logging LPC1758 MCU settings LPCi759 Settings LPC1763 Tool Chain Editor LPCiT7GA gt peop Sei LPC1765 roye E PEA LPC1766 Run Debug Settings LPC1767 LPC1768 t LPC ix 8x Fig 41 Selection of the LPC1769 MCU 7 5 Level of compiler optimization When the code size at the current compiler level overloads the FLASH size of the target board a higher compiler optimization level can be selected to reduce the code size of the project The following steps can be followed to select a level of compiler optimization e Click on the application project in the project window of the LPCXpresso IDE e Right click of the mouse gt Select properties gt Select C C build e Select Settings gt Optimization e Choose the desired level in the combo box All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 38 of 47 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide type filter text Settings b Resource Configuration DebugLPC1769 Active z Manage Configurations Build Variables Environment Logging Tool Settings amp Build steps Build Artifact Binary Parsers Error Parsers ree gs 4 MCU C Compiler z ptimize more pol Chag Editor 38 Dialect No 3 Opt
37. d are transferred to Ready state and can be detected by Inventory again Broadcast reset loop Application performs Reset To Ready command 0x26 in loop for given amount of time from 1 to 9 seconds During that time nothing but transmission of Reset To Ready in Non Addressed mode is executed the operation is a blocker The operation does not provide Addressed mode the Reset to Ready commands are always transmitted to all the tags in the field Note During execution the application claims one OSAL timer The timer is released as soon as the loop ends ICODE SLIX 2 Demo Handling Read Single Block See Read Single Block in section 5 8 2 Write Single Block See Write Single Block in section 5 8 2 AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 28 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 AN11211 Blueboard Quick Startup Guide e Read Multiple Block See Read Multiple Blocks in section 5 8 2 e Get NXP System Information Application performs Get NXP System Information command OxAB on a previously chosen tag The output provides information about the memory structure and protection status of particular L and H pages e Set Password Application performs Get Random Number command 0xB2 and Set Password command 0xB3 on a previously chosen tag The software provides
38. ed on the NFC Reader Library version 3 010 Therefore all projects have been refactored Added support for the development board LPCXpresso LPC1769 which is based on an ARM Cortex M3 microcontroller The NXP Reader Library is now called NFC Reader Library 1 6 20131110 Added a note about the LPCXpresso IDE version in chapter 0 1 5 20130613 Added description about the P2P Snep Client 1 4 20130221 Added description of the P2P project Added description of the 12C configuration for the Blueboard version 3 0 and above Added information about the use of the projects in conjunction with the LPC1227 MCU Added information about the documentation of the NFC Reader Library Added information about the exemplary project of code size optimization of the NFC Reader Library 1 3 20120913 Small corrections of the TUSA description 1 2 20120822 Insertion of the description for the 3rd party Tusa Board 1 1 20120704 Small text corrections 1 0 20120604 First release Contact information For more information please visit http www nxp com AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 20154 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 2 of 47 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 1 Introduction This application
39. ed output voltage is 1 8V for both These regulators are used as extended powering during development 2 6 4 CLKOUT Clock output The reader IC is able to provide a clock with configurable frequency at CLKOUT in range from1 MHz to 24 MHz This frequency can be served as a clock source to a Microcontroller 2 6 5 SCL2 SDA2 SAM interface The reader IC is able to provide a secure access module SAM The SAM can be used for high secure key storage and acts as a very performant crypto coprocessor This module can be connected via I C_ 2 serial interface 2 7 Preparing the Blueboard for the use with SPI or I C The Blueboard s default configuration is set to SPI interface for communication with the micro controller Fig 11 To use this board in 12C configuration it is needed change some hardware settings J2 jot 3 8 FR o lt R2 c R3 CLEV663B_Blueboar d o Rev 3 0 Fig 11 Blueboard in delivered SPI configuration How to change the software projects in order to use the I2C interface for communication is described in section 7 6 AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 9 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide oDi a Ri R2 els CLEV6638_Blueboard Rev 3 0 C28 626027 mpag
40. environment this layer can be used with limited features i e with no support for WTX 7 1 7 NFC Apps The example applications make use of the underlying functions They provide entry points for the developers to get started with the NFC Reader Library more quickly 7 2 ICODE Software Architecture The ICODE Demo software uses a limited version of the NFC Reader Library The main difference is in the used components The whole NFC Reader Library is reduced to the necessary modules in order to work with tags according to the standards IS015693 and ISO 18000p3m3 Also the HAL layer is limited to only support the RC663 reader IC All NFC Reader Library modules used in the ICODE Demo project are shown in Fig 39 Note OSAL module is used due to timer usage in SLI handling feature AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 35 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 7 2 1 7 2 2 7 2 3 7 2 4 AN11211 Blueboard Quick Startup Guide ISO IEC 15693 ICODE ISONEC 18000 Cmd set SLI 3m3 Cmdset Hardware am independent Platform ISO IEC ISOAEC independent apc ae ad Japs fe Sw sw RC663 Generic Fig 39 ICODE Architecture of the NFC Reader Library Bus abstraction layer BAL is the bottommost layer of the NFC Reader Library It provides
41. esenacsee seen 24 Fig 31 ILT Inventory cccceeccceececeeeeeseeeseeeeseeesseeeees 25 Fig 32 How to exit the Number of Tags endless loop 26 Fig 33 SD OMI s2nG cn taadecns vince ERE ETER 27 Fig 34 TUSA BOG ycscsse de etlden ceed eepeoee dees ccdeantene nonce 31 Fig 35 Modification on the LPCXpresso Board 31 Fig 36 Combine the TUSA Board and the LPCXpresso EO AA e a E 32 Fig 37 Architecture of the NFC Reader Library 33 AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 45 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 11 List of tables Table 1 Example projects cccccccsssssseeeeeeeeeeeeeseeees 3 AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 46 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 12 Contents 1 PATO GUC IOI sassa 3 Hardware overview of the Demo Reader 4 RC663 demo board Blueboard cc00 4 CE certification of the Blueboard c008 5 LPCXpresso LPC1769 development board 5 Preparation of the hardware sssccssseeeeee 6 Soldering the interrupt CONNECTION 00600 8 Interesting
42. g interface e For detailed information see LPC1769 product site 3 The LPCXpresso board contains a JTAG SWD debugger called the LPC Link and a target MCU LPC Link is equipped with a 10 pin JTAG header and it seamlessly connects to the target via USB to the computer AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 5 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide TE a idan ci3 tse rae D 2 ox a 4 jus Cis cK on ae t i Baan 513 E g Wi oman lO 0 ee 3 HE ae a iii 19 1716 JS e rA in sb b B Produced by 5 5 D gbos op A SMSC PHY Lj Embedded Artists L RoHS No PB C E NXP Code Red Fig 3 Picture of LPCXpresso LPC1769 development board 2 4 Preparation of the hardware The first step after unpacking the Blueboard and the LPCXpresso is soldering the connectors onto the boards in order to join them later In our example we use a multipoint connector as one can see on the pictures below Fig 4 Multipoint Connectors we used One may buy these connectors at any electronic store Here are some examples 4 After soldering the connectors connect the boards as shown on the following figures im a ah r s k fu aT ri Ba ai f F T a4 esti eds d lessee
43. gs is printed out in the console window in the LPCXpresso IDE The listed table consists of the stored CRC and whole PC XC data packet The PC XC consists the UII Fig 31 The maximum number of detected tags is limited by the power of the RF field of the RC663 Blueboard Part of the inventory functionality is choosing a certain tag for further operations Note Choosing the tag feature The user is asked to choose the tag he wants to choose for further operations by typing the number which is written next to the tags Ull in the listing after inventory Entering 0 means no tag chosen and the program goes back to the menu Any non number character is interpreted as zero Only first 3 characters are taken as input If just one tag is detected by Inventory the tag is automatically chosen by the software In case no tag is detected it is necessary to repeat the inventory All later operations are performed with the chosen tag in masked mode The whole UII is taken for mask usage console 32 C PETS T P in n a m 5 NfcrdlibEx00_icode DebugLPC1769 C C NXP Semiconductors MCU Application NfcrdlibEx00_icode axf a ILT Inventory No CRC PC XC UII length 1 F4 1D 30 00 00 00 0O 00O GO Ge 0O 68 E7 00 O 6 2 64 3A 30 00 00 090 00 090 B B 00 65 EF 00 G 3 5D D3 34 00 00 00O ee Ge BO Ge BO GC EE Be oo CG 4 3A 3D 34 00 00 00 0O OO GO Ge 8O EB EB 00 ea 6 5 9E 19 30 00
44. hapter_5 are available in debug and release configuration e Debug configuration This configuration is mainly used when the target board is attached to the PC with the JTAG debugger It allows the display of debug messages in the console window which is useful in the early stage of the project e Release configuration Once the project is debugged and mature it might be interesting to use the release configuration to use the hardware stand alone No debug messages are displayed in the console window Note that only in Release Configuration one can flash the software onto the Blueboard and start it automatically once power has been attached to the board The build configuration can be selected as follows e Click on the project in the project window of the LPCXpresso IDE e Right click of the mouse gt Select Build Configuration e Set active DebugLPC1769 build or ReleaseLPC1 769 build for LPC 1769 New Go Into Open in New Window E Copy Paste 3 Delete Source Move Rename Import Export D E Build Project Clean Project Refresh Close Project e 1 Quic J Close Unrelated Projects X Start hi z Build Configurations Make Targets G Newpr Index ory Build al amp Build P es Import Convert To Manage DSF Host Strings LEKEKHKAAAKAAKKAKKAKAKKAKEAKKKAKEKAKKA KEELE KAKKKAKKKEAKAKKKEKAKKEKE 55 int main void phStatus t status Set the interface l
45. he product whether or not based on tort including negligence strict liability breach of contract breach of warranty or any other theory even if advised of the possibility of such damages Notwithstanding any damages that customer might incur for any reason whatsoever including without limitation all damages referenced above and all direct or general damages the entire liability of NXP Semiconductors its affiliates and their suppliers and customer s exclusive remedy for all of the foregoing shall be limited to actual damages incurred by customer based on reasonable reliance up to the greater of the amount actually paid by customer for the product or five dollars US 5 00 The foregoing limitations exclusions and disclaimers shall apply to the maximum extent permitted by applicable law even if any remedy fails of its essential purpose 9 3 Licenses Purchase of NXP ICs with ISO IEC 14443 type B functionality E This NXP Semiconductors IC is ISO IEC 14443 Type B software enabled and is licensed under Innovatron s F 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 9 4 Trademarks Notice All referenced brands product names service names and trademarks are property of their respective owners MIFARE is a trademark of NXP Semiconductors N V DESFire is a trademark of NXP Semiconductors N V MIFARE
46. his operation Set Password need to be run Note Choosing the Password identifier is only provided with Set Password The software uses for Lock Password the same password identifier e Protect Page Application performs Lock Password command 0xB6 while dividing tag memory into L and H page on address OxOA The operation provides possibility to protect L page for reading H page for reading L page for writing H page for writing and clearing all protection flags at once Preconditions Prior to Protect Page the Set Password must be called twice for both reading and writing Note 1 Setting of more protection flags can be done only one by one without necessity to call Set Password between particular page protection settings Note 2 To prevent unintended transfer of page protection configuration from one tag to another the user needs to be aware that the last page protection configuration stays stored in the software Clear protect page clears the last setting stored in the software but it also clears current page protection configuration on currently chosen tag meaning it is not possible to clear page protection configuration in the software without applying it to the chosen tag All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 29 of 47 226221 NXP Semiconductors AN1 1 21 1 5 8 4 AN
47. ication layer Lying on the previous software layers the application layer is on top of the reader software package It combines elements of the previous three parts into high level functionalities NFC Activity This component provides the Discovery Loop component It implements poll mode based on NFC Activity Specification 1 1 backward compatibility with version 1 0 and EMVCo Specification 2 3 1a Listen mode is implemented based on NFC Activity Specification 1 1 Support for Type V ISO 15693 polling is included based on NFC Forum draft specification ISO 18000 3 Mode 3 EPC Genz2 is supported as a proprietary technology in poll mode HCE Layer This component implements the card emulation of NFC Forum Type 4A Tag The implementation is based on NFC Forum Type 4 Tag Operation Specification version 2 0 SELECT READ BINARY and UPDATE BINARY commands are supported as per NFC Forum Type 4 Tag Operation Specification This layer follows a multi threaded RTOS based design using one reader library thread and one application thread Application thread along with application callback can be used for handling of UPDATE BINARY and proprietary commands All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 34 of 47 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide A pictorial
48. imi b C C General 8 Preprocessor Project References Symbols Jp re U lt i 3 Includes ects ffat Ite OPtimize most 03 a ka ge Optimize for size Os Optimize for debug Og 8 Optimization 8 Debugging Warnings 38 Miscellaneous 88 Architecture 4 MCU Assembler E General 88 Architecture amp Headers a MCU Linker 8 General 33 Libraries 8 Miscellaneous 88 Shared Library Settings Architecture 83 Managed Linker Script 83 Multicore Fig 42 Select the level of optimization 7 5 1 Optimization issues When optimization is enabled it will reorder code What this means is that the code from multiple C lines will be intermingled In addition assignments and initializations might be pulled out of loops so they are only executed once Changes like these will make the code confusing to debug Some symptoms one might see are breakpoints that only work the first time through or seeing the debuggers current line indicator fail to advance or even move backwards when clicking step It is best to always use O0 for debugging 7 6 Preparing the projects for the use of the Blueboard in I C configuration To use the projects in I C configuration one has to do some small adaptations in the file ophhwConfig h located in the MCU project LPC1xxx 1 Open the file LPC1769 phLpc1768 Build h and a Uncomment the line define I2C USED b
49. ink for the internal chip communication Set_Interface_Link ifndef TUSA Set LED port pin to output j Set_Port 7 endif Ensure that the LED is off LedOff ce Perform a hardware reset gt 1 DebugLPC1227 Debug build for LPC1227 b Manage v 2 DebugLPC1769 Debug build for LPC1769 gt 3 ReleaseLPC1227 Release build for LPC1227 Build All 4 ReleaseLPC1769 Release build for LPC1769 Clean AIl Build Selected itialize the Stub timers component Fig 40 Select the build configuration Note When switching from one MCU to another please take care to also switch to the correct MCU setting within the LPCXpresso IDE See section 7 4 7 4 Setting the MCU There are many LPC microcontrollers supported by the LPCXpresso IDE build in compiler Before compiling a project the correct MCU need to be set e Right click the project gt choose properties at the bottom AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 37 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 AN11211 Blueboard Quick Startup Guide e C C build gt MCU settings gt expand desired LPC1xxx MCU group gt choose the correct microcontroller gt click OK type filter text MCU settings b Resource F Builders Targa a C C Buil
50. ints location ccccccseeeeeeeeeeeeseeeeeseees 8 Fig 11 Blueboard in delivered SPI configuration 9 Fig 12 Relevant hardware changes to use I2C 10 Fig 13 Enumeration of the LPCXpresso Board in Device Manager Window cccsssseeeseeeeeees 11 Fig 14 LPCXpresso installation NXP Debug drivers 12 Fig 15 Windows Security GidlOg cccceeeeeeeseeeees 13 Fig 16 LPCXpresso IDE ccccccccssseeeeeeeeeeeeeeseaeees 13 Fig 17 Product ACTIVATION cccseeeeeeseeeeeeeeeeeeseeeeeees 14 Fig 18 Product activation cccceeeeeeseeeeeeeeeeeeseeeeeees 14 Fig 19 Product activation cccseeeeecseeeeeeeeeeeeseeeeeens 15 Fig 20 Importing a project into the LPCXpresso IDE 16 Fig 21 Importing a project into the LPCXpresso IDE 16 Fig 22 Importing a project into the LPCXpresso IDE 17 Fig 23 RUN the PrOject cccccssseccecceeseeeeseeeeeeeeeseees 18 Fig 24 After the build process one can see the size of the image in the console window 00 18 Fig 25 RUN the PrOject cccccsseeececceseeceeeeeeeeeeeeeeees 19 Fig 26 Debugging controls cceccceeeeeeeeeeeeeeeeeeeeees 19 Fig 27 RUN the PrOject cccccsssseeecsseseeeeeeeeeeeeeseeeees 20 Fig 28 Debug Buttons cccccccccceceeeceeceeeeeeseeeeeees 20 Fig 29 Discovery Loop in Poll Mod 00cccceees 21 Fig 30 ILT VS NM ecsye nen caceneeascecseeenanc ctenseeeteqses
51. is document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 3 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide 2 Hardware overview of the Demo Reader The demo reader is made up of 2 separate boards e A CLEV663B demo board called Blueboard provided by NXP This is the primary platform for the RC663 reader chip and the current version is Blueboard v3 0 see Fig 1 This board has connectors which are designed to exactly fit the ones of the companion the LPCXpresso LPC 1769 development board e A commercial LPCXpresso LPC 1769 development board 12NC 935291912598 Type OM13000 598 which can be provided by NXP or bought directly on the market See Ref 10 Once the two boards are joined via the connectors the demo reader is ready for use 2 1 RC663 demo board Blueboard Fig 1 Picture of RC663 demo board The RC663 demo board embeds the contactless communication transceiver IC RC663 with all its elements needed for transmission EMC filter matching network and the antenna The RC663 supports different kind of contactless communication methods and protocols at 13 56 MHz AN11211 Reader Writer mode supporting ISO IEC 14443A MIF ARE Reader Writer mode supporting ISO IEC 14443B Reader Writer mode supporting FeliCa scheme Passive initiator mode according to NFCIP 1 Reader writer
52. lica tusa board htm 7 CLEV663B demo board site http www nxp com demoboard CLEV663B html 8 NXP NFC Reader Library User Manual http www nxp com documents user_manual UM10721 pdf 9 Technical Specification Simple NDEF Exchange Protocol NFCForum TS SNEP 1 0 http www nfc forum org specs spec_ license 10 LPCXpresso LPC1769 development board http www nxp com demoboard OM13000 htm 11 EMV The table of card types and their matching AIDs are available on http www en wikipedia org wiki EMV 12 EXPLORE NFC product page http www nxp com demoboard PNEV512R html documentation 13 ISO IEC 18000 3 2010 E Information technology Radio frequency identification for item management Part 3 Parameters for air interface communications at 13 56 MHz Third Edition 2010 11 15 14 ISO IEC 15693 3 Identification cards Contactless integrated circuit cards Vicinity cards Part 3 Anticollision and transmission protocol Second Edition 2009 04 15 15 SLIX2 datasheet with custom commands specification http www nxp com documents data_sheet SL2S2602 pdf 16 CLRC663 Antenna Design Guide http www nxp com documents application note AN11019 paf AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 42 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startu
53. n the example picture Make sure the name of the build configuration as well as the selected MCU matches the name of the used microcontroller See sections 7 2 and 7 4 for further information gt FreeRTOS Library gt Lpci769 b E NfcrdlibExd_BasicDisc gt 5 NfcrdlibEx2_AdvancedDiscove gt NfcrdlibEx3_NFCForum b G NfcrdlibEx4_MIFARECIassic gt N fcrdlibEx5_ISO15693 gt NfcrdlibEx6_EMVCo_Loopbac gt B NfcrdlibEx7_EMVCo_Polling gt NfcrdlibEx8_HCE_T4T 2G Aiea NIT saN Jir yo 2 eae Start here Import project s fe New project ia Build all projects DebugLPC176 _BasicDiscov E amp Build NfcrdlibExd of Clean NfcrdlibExd Debug Nfcrdlibbd_BasicDisce s Terminate Build an 8 Edit NfcrdlibExl_BasicDiscove _BasicDiscove r E Console 2 A Problems M Memo CDT Build Console NfcrdlibEx_BasicDiscoveryLoop gt PETTE Bl we m fats Bll Quick Access Access il E ats SWO Trace ED Power Me r Ed two make no print directory post build Performing post build steps d Debug Nf 10 34 30 Build Finished took 35s 573ms i A arm none eabi objcopy arm none eabi size Nfcrdlib BasicDiscoveryLoop axf eabi text data bss dec hex filename 66296 36 9196 75528 12708 NfcrdlibExl_BasicDiscoveryLoop axf Fig 24 After the build process one can see the size of the image in the con
54. note gives a detailed overview of the hardware for working with the RC663 contactless reader we use the LPCXpresso LPC1769 and the Blueboard Chapter 2 the installation procedures of the Development Environment Chapter 4 1 and the handling of the reader projects using the NFC Reader Library Chapter 4 2 The projects used and explained in this documentation are Table 1 Example projects Example projects delivered with the NFC Reader Library Example Description Example 1 Basic Explains how to poll for different technologies Tag P2P HCE detect and Discovery Loop report them Default configuration parameters are used Example 2 Explains how to poll for different technologies Tag P2P HCE detect and Advanced Discovery report them All configuration parameters are used and explained Loop Example 4 Explains the usage of standard MIFARE commands MIFARE Classic Example 5 Explains the usage of this technology and provides an overview about the IS015693 most common commands Example 6 EMVCo Application used for EMVCo Level 1 PCD certification Loopback Example 7 EMVCo Explains polling for EMVCo payment cards Polling Example 9 NTAG Explains NTAG I2C specific commands I2C ICODE ILT SLI Extensively explains the communication with ICODE ILT and ICODE SLI tags This example is provided in a separate package AN11211 All information provided in th
55. nstalled simultaneously without side effects The installation starts after double clicking the installer file Ec ox Debug driver selection d Please select which drivers to install LPCXPRESSO If prompted please allow the drivers to install Drivers are located in the Drivers directory of the installation M NXP LPC Link Redlink Debug drivers IY NXP LPC Linki Debug drivers I Red Probe Debug drivers WTF 2 379 itn http inaw nxp com esso lt Back f next gt D Cal Fig 14 LPCXpresso installation NXP Debug drivers Make sure the checkboxes for installing the NXP Debug drivers are activated During the installation the user will be asked if he wants to install some required drivers The installation of these drivers should be accepted All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 226221 12 of 47 AN11211 Blueboard Quick Startup Guide NXP Semiconductors Would you like to install this device software Name Philips NXP Universal Serial Bus contr I Publisher NXP Semiconductors USA Inc E Always trust software from NXP Semiconductors USA Inc Fi You should only install driver software from publishers you trust How can I decide which device software is safe to install Fig 15 Windows Security di
56. ocated at NFC_Reader_Library docs 14_user_doc NXP NFC Reader Library chm General Software Architecture The software of the reference reader is based on the NFC Reader Library 5 It intends to be simple modular easily readable and quickly portable by all the customers This philosophy is reflected in its architecture which is divided into 4 layers BAL Bus Abstraction Layer HAL Hardware Abstraction Layer PAL Protocol Abstraction Layer AL Abstraction Layer i F Nites _ 2 cree 3_ E Ex Ntconbex a NrerditEe7 cribs m NicrdlbEx1 _ Gaaie Wherdibex2 Advanced MfordlbEx3_ MferditEts_MIFARE MicribexS_ Micotibeag_EMVC Niche ERGS MieribhEI5_ Mfoiniad DacprerLloap DitcowerLoop HFiCForum Classe Application 150156538 Loopback Application Polling Application HCE_T4T AT ANS Lo Application Appicalon Application App kratman n Applicaton HCE Layer MIF ARE MIFARE Panot Par of demt MFC Foum EIEC SOIE ICODE Classx Lltaight MIFARE FecaCmda Topar Tagtype 15503 160003m39 SLI Ewi DESFire sat operations pithy Tats CIB Man ORG Pasty OSAL Libs Fig 37 Architecture of the NFC Reader Library For a detailed description of the NFC Reader Library please refer to the user manual UM10721 NXP NFC Reader Library User Manual Documentation of the API can be found in the document UM10802 NXP NFC Reader Library API Both can be downloaded at the web site of the
57. ode axf ICODE Demo Project al Initialization complet Main MENU 1 ILT tags handling 2 SLI tags handling e Exit gt SLI MAIN MENU a SLX Inventory s SLIX 2 Inventory r RETURN to Main Menu Fig 33 SLI menu e Inventory The method performs the Inventory command in order to find as much ICODE SLI X 2 tags as possible Note 1 Internally the function operates recursively when a collision occurs the same method is called with the collided UID Mask Value and Mask bit length increased by 4 Inventory runs in 16 number slot mode As a result it lists detected tags in the following pattern Number type UID o Number the number of the detected tag sorted by UID From 1 to N where N is number of successfully detected tags o Type type of the detected tag Type can be one of following SLI SLIX SLIX2 RFU It is identified based on the 36 and 37 bit of the UID o UID 64 bit unique identifier of the tag gained from the response during the Inventory request from each individual tag Note 3 Choosing the tag feature The user is asked to type the number of the desired tag Entering 0 means no tag chosen and the program returns to the command menu Any non number character is interpreted as zero Only first 3 characters are taken as input If just one single tag is detected by the Inventory method the tag is automatically chosen by software All later operations are perfo
58. oject AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 23 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 5 8 1 Blueboard Quick Startup Guide ICODE ILT Demo Handling To work with ICODE ILT tags choose the option 1 in the main menu of the running ICODE Demo Project Fig 30 console 3 C 1h FE Elten NfcrdlibEx00_icode DebugLPC 1769 C C NXP Semiconductors MCU Application NfcrdlibEx00_icode axf Initialization complete 4 Main MENU 1 ILT tags handling 2 SLI tags handling e Exit ILT COMMANDS 1 Read read 12 Bytes of user memory at address x 2 Write write 12 bytes to user memory at address x 3 Access Password set read access password to the tag 4 set Access Password set user password to software memory for accessing password protected tag 5 Lock lock the user memory on tag for write i Inventory detection of all tags in the RF field n Number of Tags inventory of all tags in the RF field endless loop without printouts s Single Tag Detection single tag operations c Configuration Setting detection parameters settings r RETURN Fig 30 ILT menu The ILT menu is divided to 2 sections The upper section is focused on the ILT commands These commands are possible to execute after perfo
59. ory Read multiple blocks Application performs The Read Multiple Blocks command 0x23 By default it reads blocks 0 and 1 resulting in reading 8 bytes To start reading form another block it is necessary to modify the value of the FIRST_BLOCK_NUM_READ_MULTIPLE_BLOCKS macro Reading different length of tag memory is possible via changing the NUM_OF_BLOCKS_READ_MULTIPLE_BLOCKS macro This command is provided by the ICODE Demo Project only in Non addressed mode Note This command is not supported by SLI L and SLI S tags When attempting to perform this command with those tag types only a vague error message ERROR Read Multiple Blocks is printed Stay Quiet Application performs Stay Quiet command 0x02 over the previously chosen tag The tag in Quiet state cannot be detected by Inventory The tag stays in Quiet state until power off removed from RF field or Reset To Ready or Broadcast Reset Loop is applied Note It is not possible to recognize whether requested tag has been really turned to the Quiet state or the command has not been caught by the tag tag out of range of RF field because the tag gives no response and operation returns with success in both of the situations Reset tag s to ready Application performs Reset To Ready command 0x26 once This operation is provided by ICODE Demo Project in both the Addressed and Non addressed mode All tags in Quiet or Persistent Quiet SLIX 2 state requested by this comman
60. p Guide 17 CLEV663B software and documents download http www nxp com board CLEV663B html documentation 18 NTAG I2C http www nxp com products identification and security nfc_and reader _ics conne cted tag solutions series NT3H1101 NT3H1201 html AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 43 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 9 Legal information 9 1 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 9 2 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 NXP Semiconductors takes no responsibility for the content in this document if provided by an information source outside of NXP Semiconductors In no event shall NXP Semiconduc
61. rmed with the chosen tag unless Non addressed mode is selected for particular operation or until new Inventory command If there is no specific tag chosen all later addressed operations fail In such case it is recommended to re Inventory or perform Non addressed operation Reset To Ready one shot Reset To Ready Loop Write Single Block e Read Single Block Application performs the Read Single Block command 0x20 By default it reads 4 bytes from block 0 To read another block it s necessary to modify the value of All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 27 of 47 COMPANY PUBLIC 226221 NXP Semiconductors AN11211 5 8 3 Blueboard Quick Startup Guide the BLOCK_NUM_READ_SINGLE_BLOCK macro The ICODE Demo Project provides this command only in Non addressed mode Write Single Block Application performs the Write Single Block command 0x21 By default it writes 4 bytes to block 0 To write another block it is necessary to modify the value of the BLOCK_NUM_WRITE_SINGLE_BLOCK macro User can choose whether to write NXP_ or clear the block write four zeros This command is provided by the ICODE Demo Project in Addressed mode and Non addressed mode as well Note Non addressed mode write to all tags is provided even if there has been just one tag detected in previous Invent
62. rming one of the 2 inventory methods Inventory and Single Tag Detection The lower section is focused on inventory method and setting parameters Read Application performs the Read command 0xC2 There are read 12 bytes of the user memory BANK 11 from address 0x00 by default The content of these bytes can be changed by the Write command Note It is necessary to perform inventory before calling the Read command Write Application performs the Write command 0xC3 There are written 12 bytes to the user memory BANK 11 from address 0x00 by default It is possible to choose the content from two hardcoded possibilities Note It is necessary to perform inventory before calling the Write command Access Password Application stores the access password into the according memory section of the tag The password is used for the transition into the secured state of the tag Set Access Password Application stores the user access password to the application internal data structure This password is used during the Access command 0xC6 execution This helps to demonstrate the use case when the user password doesn t fit the access password stored in the tag and the secure operations on the tag are not allowed AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note Rev 2 1 11 November 2015 24 of 47 COMPANY PUBLIC 226221 NXP
63. roduct from LPCxpresso Pro Edition Ed Activate Pro Edition Deactivate Pro Edition Write down the senal number or co kd Password reminder Pro Edition 2 Press OK and a web browser will be i Rives eki acd se D mySoftwareLicense web portal Pro Edition s If you are not logged in you will need fo login navigate to the My Registrations page and enter the product 1 Help Activate gt Create Serial numb Your product s seral number will be b Fig 17 Product activation Create serial number and register Select K to visit the registration website where you can register your product and receive an Activation Code Serial number HOV LZMS5 05GW HRH3 NUH2 M4D1 ORAZ ASH E1G1 LWHT Copy Serial Number to clipboard Fig 18 Product activation If one doesn t already have an account at LPCware please sign up to get an activation code The code will be sent to the provided e mail address AN11211 All information provided in this document is subject to legal disclaimers Application note Rev 2 1 11 November 2015 14 of 47 COMPANY PUBLIC 226221 NXP Semiconductors N V 2015 All rights reserved NXP Semiconductors AN1 1 21 1 4 2 Blueboard Quick Startup Guide G i S a Pi r T a oi d ta Quick Access j FES K 7 Help Contents LPCApresso User Guide i Search Dynamic Help 5 0 426 Ipcxpresso pages unregisteredFree
64. s b gill System devices PE ig Universal Serial Bus controllers kn i Generic USB Hub Generic USB Hub Generic USB Hub Generic USB Hub Generic USE Hub Intel R 6 Series C200 Series Chipset Family USB Enhanced Host Controller 1026 Intel R 6 Series C200 Series Chipset Family USB Enhanced Host Controller 1C2D USB Composite Device SB Composite Device L USB Device with DFU Capabilities Use ee Tena rot Hub Fig 13 Enumeration of the LPCXpresso Board in Device Manager Window All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 226221 11 of 47 NXP Semiconductors AN11211 Blueboard Quick Startup Guide 4 Managing the Demo Reader project with LPCXpresso IDE AN11211 4 1 The demo reader project is delivered in a zip package It can be extracted edited compiled and linked with LPCXpresso IDE LPCXpresso is a new low cost development platform available from NXP It supports NXP s ARM based LPC microcontrollers The platform is comprised of a simplified Eclipse based IDE and low cost target boards which include an attached JTAG debugger This tool can freely be downloaded from the LPCXpresso website 1 Installation of LPCXpresso IDE The IDE is installed into a single directory of one s choice Multiple versions can be i
65. sole window AN11211 All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 226221 18 of 47 NXP Semiconductors AN11211 AN11211 Blueboard Quick Startup Guide Drel Nherdlibest Basic biscoveryloop Nterdlibest SasicQisceveryLompc LPEN pros k ri trr ag 7 O amp 8 s a Cae ear E i S ee ee ome a B a oF HY S We oO MierdebEst Basicthscoverslewpe B ph Mopalia Je p yi4 l eB z b reeht Library i i Gas i iper yes F5 a Nied kapci Bass a ia a ii i Se Pee Ss i menea aa Main Function F Y Brants re ae PPPS SFE PHP CE PSPS PASE PHT ATCPEL OTST CATERER Pe Pee ee j b ap iaeiei l 077 int main waid a man F a Debug PCS ese sifdef MARILO PH OZAL PAIEPTOG 7 a inte Fai ph tatus_t status i anih a eendif b E ph Seip alld Sapp uaa j Sei tho interfaced lank for ihe internal chip comamicitign j oid Sat_Intarfaca_Lainki b E phiana F Sy Maik sk je Sef LE ger pin le ols Fy l jan oe I teachin Ecion E Come H l beableod T bisnwry FA hrus Tias ma WO Trane C O Ir hi Tid g Ha a i i WOR yao r f Re RMDP OS Aes 4 z merminmed Aeris Macicliurowerylonp bugl PENTES DA ee AEP Peerecondocmrs MEU Applicatinn ferdii Qadefeerneryl oopacl El Sur free Card detected and ac
66. tivated su tegerully Technology Type A z A Card 1 New prnject Wo i m Pe SA mi 22 to Sak gt Ovla an Hutt al pregects Dem AET Peo Type Type 2 Tag Kua Wiesel Baenin card detected and activated successtully a 5 y Technolgy gt Typa Vy TSO aga TST p Geen Hiob Brac Dnon il tard i WD 30 7S 65 Of 30 01 oo Bo Card detected and activated successfully Tachnolegy Type j TS0 15600 TST Bet Hidhe Eri BaseDigtoveryploop pri Card 1 WG STS AS OE SO ol Mw Pi eich Seinge E Card detected and activated successfully Tachnology TSO 1B000pang EPC Geng AB Export projects un arcteve trip Card 1 Fig 25 Run the project After the software upload the execution of the project starts immediately but might halt at the initial breakpoint To resume execution just click onto the resume button l o e Fig 26 Debugging controls All information provided in this document is subject to legal disclaimers NXP Semiconductors N V 2015 All rights reserved Application note COMPANY PUBLIC Rev 2 1 11 November 2015 19 of 47 226221 NXP Semiconductors AN1 1 21 1 Blueboard Quick Startup Guide E Console 2 Problems I Memory gt Instruction Trace Da SWO Trace Config Power Measurement Too terminated gt NfcrdlibEx _BasicDiscoveryLoop DebugLPCl 7 69 C C NAP Semiconductors MCU Application NfcrdlibE Card detected and activated successtuLly
67. tors 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 malfunction of an NXP Semiconductors product can reasonably be expected to result in personal injury death or severe property or environmental damage NXP Semiconductors and its suppliers accept no liability for inclusion and or use of NXP Semiconductors
68. use with the 3d party Tusa BOalrd cccccseeeeeeeeeeeeeeeeeeeeeeeeens 8 REPELENCES issiran 9 Legal information cccsesseeseeseeeeeeneeseenneeseenees 9 1 Definitions soisista asetonin nEs annaa 9 2 Bize eE S cceceGeccachenceenesecreeteceeceecesuGuenicdceceniesin 9 3 LICENO E uean ES 9 4 Trademarks eicscecsedacratentceladictaxceteencrdeiesiecsatenieess 10 List Of MQUICS sisca 11 LISTO taD leS sc 12 COMENTS acca arose erei Please be aware that important notices concerning this document and the product s described herein have been included in the section Legal information NXP Semiconductors N V 2015 For more information visit http www nxp com Date of release 11 November 2015 Document identifier AN11211 All rights reserved
Download Pdf Manuals
Related Search
Related Contents
Beats by Dr. Dre Beats Pro Copyright © All rights reserved.
Failed to retrieve file