Home
AN11281 - NXP Semiconductors
Contents
1. 4 1 Installation of LPCXpresso IDE The IDE is installed into a single directory of one s choice Multiple versions can be installed simultaneously without any issues The installation starts after double clicking the installer file Then click next on the setup wizard Welcome to the LPCXpresso Setup Wizard This will install LPCXpresso 4 1 0 Build 190 on your computer Itis recommended that you close all other applications before Click Next to continue or Cancel to exit Setup Powered by cod e red Fig 8 LPCXpresso installation setup wizard 1 Read the license agreement then click next AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 8 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide E Setup LPCXpresso License Agreement Please read the following important information before continuing Please read the following License Agreement You must accept the terms of this agreement before continuing with the installation CODE RED TECHNOLOGIES LIMITED End User Licence Agreement for LPCXpresso Software Development Tools November 2009 THIS END USER LICENCE AGREEMENT LICENCE IS A LEGAL AGREEMENT BETWEEN YOU EITHER A SINGLE INDIVIDUAL OR I do not accept the agreement v4 1 0_190
2. 20 21 Definitions of which drivers we at a ay 4 Import project s SSS onsole gt J roblems Y y m ja Build all projects Debug Elc 2N Bp G Memory Red Trace Preview SU 7 E cE BE Ez a ai A s s C Build RC663 Polling amp Build RC663 Polling Debug j g Clean RC663 Polling Debug make no print directory post build ra Performing post build steps DARE Po Mi arm none eabi size RC663 Polling axf arm none eabi objcopy 0O binary RC663 Polling axf RC663 Polling bin checksum p LPC1114 301 d RC663 Polling bin arm none eabi objcopy 0 ihex RC663 Polling axf RC663 Polling hex text data hex filename 25432 4 248 25704 g468 RC663 Polling axf Created checksum Oxe5doWfef in RO 63 Polling bin at offset Oxic Launching RC663 Polling Debug 24 la Gi RC563 Polling NXP LPC1114 301 Fig 21 Run the project After the build process one can see the size of the image in the console window Be MIgmhE ca 1 Stitt etek eee ee ee ee ee 2 Sidi i2 main c a 2 Project NAP LPClizs I2C example jr i a e Description amp This file contains main entry T eo oe Bo ee a ee ee ee i C Build RC663 Polling ebug Fig 22 Run the project The initialization of the LPC Link can take a few seconds All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserv
3. eee ee 5 Multipoint Connectors ccccceeeeeseeeeeeeeeeeeees 5 Connecting the PREV601 board to the LPC a 9 ee nee A oe ee 6 LPCXpresso with the Multipoint Connectors 6 Enumeration of the LPCXpresso Board in Device Manager WINdOW s cccseeeeeeeeeeees 7 LPCXpresso installation setup wizard 1 8 LPCXpresso installation setup wizard 2 9 LPCXpresso installation setup wizard 3 9 Windows Security dialOg ccccceeceseeeeeeees 10 LPCXpresso installation setup wizard 4 10 LPCXpresso IDE scrccsnsaisssendeasnancustunonevectrsnesiewins 11 Product ACTIVATION cccccecceeeeeeeeeeeeeeeeeeneees 11 Product ACTIVATION c ccccceecceeeeeeeeeeeeeeeeeeeeees 12 Product activation cccccceecceeeeeeeeeeeeeeeeeeeeees 12 All information provided in this document is subject to legal disclaimers Fig 17 Fig 18 Fig 19 Fig 20 Fig 21 Fig 22 Fig 23 Fig 24 Fig 25 Fig 26 Fig 27 Fig 28 Fig 29 Fig 30 Fig 31 Fig 32 PREV601 Quick Startup Guide Importing a project into the LPCXpresso IDE 13 Importing a project into the LPCXpresso IDE 14 Importing a project into the LPCXpresso IDE 14 Run the ONO OC acces cece cdewcedeasincestidcnctusceiasacet 15 RUN the PrOject cccccccssseseeeceeeseeeeeseeeeeeeeees 16 RUN the PrOoject ccccccssseeeeeceeeeeeeeeeeseeeeeeees 16 RUN the PrOoject ceccccecseeeeeeeeeeseeeeeeeee
4. bI 3 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 31 of 37 243915 NXP Semiconductors AN11281 PREV601 Quick Startup Guide 6 6 Removing the initial breakpoint on debug startup AN11281 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 Open Current Launch Configuration d G es RC663 Polline gt LE Toe b B driver gt linker b E config t B sre b 2 startup t EB cmsis t E Debug RC663 Po RC663 Po ip mit tl a y a n Wy Quickstart oN E start here i New project z Ey Import project s ay Build all proje amp Build RC663 Po of Clean RC663 P F Debug RC663 P gs Quick Settings Fig 31 Open Current Launch Configuration New Go Into Open in New Window Copy Paste Delete Mawe Rename Import Export Build Proyect Clean Project Refresh Close Project Close Unrelated Projects Build Configurations Make Targets Index Convert To Run As Debug As Profile As Team Compare With Launch Configurations Utilities Properties Ctrl C Ctrl V Delete F2 F5 Alt Ente
5. e ISO IEC15693 e FeliCa e NEC Initiator 6 1 4 Application layer Lying on the previous software layers the application layer is on top of the reader software package It combines elements from the previous three parts into high level functionalities For more details on the NXP reader library the reader is invited to refer to the document RC663 Software Design Guide of the NXPRDLib 6 6 2 Build configuration This project comprises 2 build configurations 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 AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 23 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN11281 PREV601 Quick S
6. http jwe nxp com lpcxpresso Fig 9 LPCXpresso installation setup wizard 2 There are numbers of other screens on the setup wizard but generally the default options can be accepted After installation an information file will be displayed Click Next to accomplish the installation Installing Please wait while Setup installs LPCXpresso on your computer Extracting files Cr pexpresso Tools ibexec gcc arm none eabi 4 5 Iech exe a Fig 10 LPCXpresso installation setup wizard 3 After this installation step one will be asked if he wants to install some required drivers The installation of these drivers should be accepted AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 9 of 37 COMPANY PUBLIC 243915 AN11281 PREV601 Quick Startup Guide NXP Semiconductors Would you like to install this device software Name Code Red Technologies Publisher Code Red Technologies Ltd Always trust software from Code Red Technologies Ltd E You should only install driwer software from publishers you trust How can I decide which device software is safe to install Fig 11 Windows Security dialog After the setup wizard has finished one can launch the newly installed IDE Completing the LPCXpresso Setu
7. 7 Help Contents cP Search Dynamic Help Rey Assist Ctrl Shift L Tips and Tricks Product activation Support Install New Software About LPCXpresso Upgrade your product Fig 14 Product activation All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 243915 11 of 37 NXP Semiconductors AN11281 PREV601 Quick Startup Guide 4 2 AN11281 Create Seral number and Activate Select OK to visit the registration website where you can register your product and receive an Activation Code Serial number AQIX EZGW PTDX IV A2 E1G3 P2P2 COIR DWK2 N5I5 AlIT Copy Serial Number to clipboard Fig 15 Product activation If one doesn t already have an account at Code Red please sign up to get an activation code The code will be sent to the provided e mail address Window hi Help Contents ce pa Search Dynamic Help Rey Assist Ctrl Shift L Tips and Tricks Product activation e B Display license type Support Create Serial number and Activate Install New Software Enter Activation code About LPCXpresso W Upgrade your product Fig 16 Product activation Once the activation code arrives please open the
8. Bus Abstraction Layer e HAL Hardware Abstraction Layer e PAL Protocol Abstraction Layer e AL Abstraction Layer MIFARE Classic Tools Rd RCS Fig 28 Architecture of the NXP reader library All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 22 of 37 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide 6 1 1 Bus abstraction layer This layer offers functions to abstract the hardware parts of the LPC1227 microcontroller These functions use the specific libraries available for the LPC1227 family microcontroller Based on these stacks the communication routines for the relevant physical media I2C SPI can be easily designed These drivers are specific for the LPC1227 family and therefore cannot be ported to other microcontrollers 6 1 2 Hardware abstraction layer This layer offers functions to abstract the hardware parts of the transceiver RC663 6 1 3 Protocol abstraction layer Every PAL function is a low level function realizing a single functionality It is encapsulated in a module Every function 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 4A B e MIFARE
9. Q g_ debug_puts_hex bQ_Register endif DEBUG_PRINT_LPCD debug_printf LPCD detection PH_CHECK_SUCCESS_FCT status phhalHw_Rc663 Cmd_Lpcd pHal PHHAL HW _RC663_CMD_LPCD MODE POWERDOWN bI_Register bQ_Register 10 power down time 150 operation time debug_printf field activated s endif LOW_POWER_MODE 6 5 3 The I and Q Register settings The values of the and Q channel are detected and stored in the register map e 42h LPCD_I Result Low power card detection channel result register e 438hLPCD_Q Result Low power card detection Q channel result register At the beginning the values for the empty field rather for the initial conditions are stored in these registers The detection threshold levels are calculated from the values of the and Q registers Registers LPCD_IMin_Reg LPCD_IMax_Reg LPCD_QMin_Reg and PCD_QMax_Reg are written to and stored in the follow registers e 3Fh LPCD_QMin Low power card detection Q channel minimum threshold e 40h LPCD_QMax Low power card detection Q channel maximum threshold e 41h LPCD_IMin Low power card detection channel minimum threshold NOTE LPCD_Imax is stored at the highest bit of these 3 registers See 2 The detection thresholds are calculated in the following area of the NxpRdLibrary src NxpRdLib_PublicRelease comps phhalHw src Rc663 phhalHw_Rc663_Cmd c Snippet starting at line 180 Calculate I Q min max value
10. been transmitted the SNEP client shall receive the SNEP Success response from the mobile device and the transmitted picture should be immediately displayed on the mobile s screen The SNEP client software is deeply described in 13 in Sample code 5 5 2 2 Choosing the NDEF message By default the software sends image of the NXP logo as NDEF message There are more NDEF messages prepared in dedicated header files see Table 1 Only a single header can be compiled with the SNEP client application To choose another content of the NDEF message for transmission just follow the instructions below In case of URI or text message just skip from step 1 to step 4 steps 2 and 3 are for selection of an image Concurrently with instructions there are parts of source code to demonstrate choosing of hardcoded PNG image file for transmission 1 Open for editing the source file ndef_message c located in folder src 2 Uncomment the line with content a header file to be transmitted Let all the other lines commented select the required type of transported data include lt c_tabletxt h gt include lt c_tablepng h gt include lt c_tablepng_NXP_QR h gt include lt c_tablejpg_NXP_logo h gt 3 In Table 1 in the same row as the chosen file look up two identifiers corresponding to the chosen file 4 Inthe array nmess uncomment the line with the couple of identifiers corresponding to the type of the chosen file Commen
11. connectors onto the board an opportunity arises to solder either a bridge or as shown on Fig 5 a zero ohm resistor near the program interface R24 After bridging this connection you ll need two instead of three USB cables connected like shown on Fig 6 AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 6 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide Now the hardware is ready for use 3 Connecting the hardware to a computer The guidelines to install the reader are as follows e Connect the LPC Link board to a real USB2 0 port of the PC using the mini USB connector The PC detects and installs the board automatically e Once the board has been 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 After connecting the LPC Link board please also connect the second USB connector on the PREV601 board to the computer In summary one will need to connect 2 USB cables see picture above File ee View Help e makume FR s T Monitors F EF Network adapters 3 Ports COM amp LPT b E Processors AA Smart card readers Sound video and game controllers t gt Storage controllers bg System devices rE 7 Universal Serial Bus controlle
12. detailed overview of the hardware for working with the PRH601 integrated reader module Chapter 2 the installation procedures of the Development Environment Chapter 4 1 and the handling of the reader projects using the NXP Reader Library Chapter 4 2 The PREV601 board can be used for software development for the PR601 as well as the PRH601 reader IC The only difference between these ICs is the additional 125kHz capability of the PRH601 IC The projects used in this documentation are e Communication with MIFARE Ultralight gt Chapter 5 1 e Communication with MIFARE Classic gt Chapter 5 2 e Communication with MIFARE DESFire gt Chapter 5 3 e Polling for Tags in the RF field gt Chapter 5 4 All projects can also operate in Low Power Card Detection Mode 11 2 Hardware overview of the Demo Reader The demo reader is made up of one single board including two reader ICs and one processor with flash memory The IC that contains these reader ICs and the processor is the PRH601HL For more details please see our website at 9 The multi chip package contains the following ICs e A CLRC663 Reader IC For detailed information please see 2 e AHITAG HTRC110 For detailed information please see 7 The HTRC110 is supported by breakout pads A developer has to attach his own antenna incl matching to make use of the 125KHz functionality of the PRH601 Software for the 125Khz functionality can be found on the NXP website 8 e AL
13. if communication with a supported card or tag cannot be established The software sets the power down time to 10ms and field detection time to 150us That means that the LPCD detection works at 100Hz in accordance to 11 Library support The LPCD operation is also supported by the NxpRdLibrary by the following two functions from the phhalHw_Rc663 c software module The function phhalHw_Rc663_Cmd_LpcdConfig takes values of the and Q field registers phStatus_t phhalHw_Rc663_Cmd_LpcdConfig phhalHw_Rc663_DataParams_t pDataParams uints_t pl uint8_t pQ All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 28 of 37 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide The function phhalHw_Rc663_Cmd_LpcdConfig performs the LPCD functionality The input parameters set the and Q registers power down time and the detection time The parameter bMode sets the type of the LPCD one time operation or cycling operation phStatus_t phhalHw_Rc6o63_Cmd_Lpcd phhalHw_Rc663_DataParams_t pDataParams int8_t bMode Uinte t bly uinte t DU l l intl6_t wPowerDownTimeMs intl6_t wDetectionTimeUs 6 5 2 LPCD software usage The reader IC CLRC663 indicates the LPCD card detection via the IRQ1 register address 07h bit 5 LPCD_IRQ See reference 2 T
14. selection of PRH601 is located in the header file hw_config h The file is located in loc1227 The bus interface is configured in header file ph_NxpBuild h located in src NxpRdLib_PublicRelease types Hardware configuration The configuration file hw_config h provides the following settings PREV601 board type definition Definition of the used board If nothing is defined we assume the CLEV663B board is meant Oy E E EEN ee a ee EE EEEE E ee Ae an EE co E EE EEE E EEE ee a ee ee ee ee x define BOARD PRHO601 ifdef BOARD_PRH601 define PREV601M fendif BOARD_PRH601 The preprocessor directive BOARD_PRH601 activates the pin configuration according to the hardware layout of the PREV601 board Each pin setting has its own define SSP_CLK SSP_MOSI Beside the PREV601 board the software also supports the smaller Microboard PREV601M To activate the appropriate hardware configuration one just needs to uncomment the define PREV601M Like the PREV601 board the Microboard also contains the integrated reader module PRH601HL In respect to the software there are two main differences As opposed to the PREV601 board the Microboard uses its internal clock oscillator for the system clock generation The second difference concerns the Rx threshold register which depends on the antenna pattern see chapter 6 5 Reading IC or board type EOE EEEE a ee EES reading IC or board type ifndef BOARD_PRH601 TUSA boa
15. the P2P implementation is still in aloha phase one will find very rudimentary support for the protocol At the moment the project supports the communication via the SPI protocol and runs on the LPCXpresso LPC 1227 development board 5 5 1 Installation After downloading and unpacking the zip file please run the installer The installer just copies the LPCXpresso project files to the file system After the installation has finished please run the included batch file located in the installation directory NxpRdLibP2PExtensions x x x NxpRdLib_P2PExtensions ex Rc663_Lpc12xx_P2P_Demo After the batch file has been executed successfully please start the LPCXpresso IDE and import the project Browse to the root of the installation directory AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 19 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 5 5 2 5 5 2 1 AN11281 PREV601 Quick Startup Guide ECA O O OOOO Import project 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 archive zip Archive Project dipeetory Rook directory C Program Files x86
16. the main c which is located in src main c in the project Before one can run the project the PREV601 board with the PRH601 needs to be connected to the computer Wait until the adequate drivers have been installed All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 243915 14 of 37 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide 4 3 Start the project One can quickly start the reader project by editing the main function in the module main c This function first performs the hardware initializations of the LPC1227 and the RF transceiver RC663 Detailed descriptions of the code in the form of comments have been provided in the main c file This should provide a detailed overview of how to initialize certain components and get data out of and onto the card in the FF field 4 3 1 Run the project Before running the project please ensure that the LPC Xpresso with the Blueboard is connected to the computer File Edit Source Refactor Navigate Search Project Run Window Help ri H Gel a CER A a ey ny R amp P Q G pr E TE apr 53 lt Co 2 Pe Somaine 3 32 Binaries fa Includes ES driver GS linker E config S src NxpRdLib_PublicRelea 9 Software that is described herein is for illustrative purposes only amp phSubBal 10 which provides c
17. AN11281 Quick Start Up Guide PREV601 Demo Board Rev 1 5 10 November 2013 Application note 243915 COMPANY PUBLIC Document information Info Content Keywords PREV601 board PRH 601 LPC1227 CLRC663 LPCXpresso LPCD NxpRdLib HTRC110 MCU Code Red eclipse LPC 1227 reader library Abstract This application note is related to the installation procedures of the PREV601 board It describes the actions to be done to become acquainted with the demo reader NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide Revision history Rev Date Description 1 5 20131110 Added a note about the LPCXpresso IDE version in chapter 4 1 4 20130613 Added description about the P2P Snep Client 1 3 20130608 Small alignments between new project structure and this document 1 2 20130116 Small alignments between the referenced code and this guide 1 1 20130107 Added chapter 6 4 about the hardware setting Added chapter 6 5 about the LPCD mode 1 0 20121019 First release Contact information For more information please visit http www nxp com For sales office addresses please send an email to salesaddresses nxp com AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 2 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide 1 Introduction This application note gives a
18. EP client sends a hardcoded NDEF message encapsulated in a SNEP message to the NFC device Thanks to the SNEP client project implements the P2P Reader Library Extension compliance with the LLCP and ISO18092 protocols on the PNEV512 Board s side are ensured implicitly a correct SNEP client server communication Execution of the SNEP client software can be summarized in following steps 1 Hardware initialization All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 20 of 37 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide 2 Detecting the RF field for an NFC peer of the tag type F The software checks the RF field whether there is tag type F capable of performing the P2P communication 3 Once such device is found the LLC link is activated in compliance with the procedure defined by the NFC forum 15 4 LLCP socket creation and establishing connection with other peer SNEP server 5 Transmission of a given image file to the SNEP server The SNEP client sends an initial fragment 128 bytes long Then it waits for a response from the server Because in SNEP header it is declared longer SNEP message than one fragment the server should response with the Continue response The SNEP client can go on with sending the rest of the SNEP message As soon as the entire SNEP message has
19. Extraction of the demo reader project 12 Start ihe proje Cieni enarrare iair 15 RUN the PrOj Ct ccccccceeeceeeeeeeeeeeeeeeseeeeees 15 Associated Projects cccsssesssseeseenseeseenees 19 Communication with MIFARE Ultralight 19 Communication with MIFARE Classic 19 Communication with MIFARE DEGSFire 19 FON WN er E T 19 Peer to Peer functionality cccccccecseeeeeeees 19 aO 19 SNEP client Project ccccceeeeceeeeeeeeeeeeeeeees 20 What is going on inside cc ce eeeceeeeeeeeeee eee 20 Choosing the NDEF messagQ 0 cccceseeees 21 Supplementary Notes csccccsesseeeeeeeeneees 22 Software architecture ccccceecceeeeesseeeeeeeeees 22 Bus abstraction layer cccccccessseeeeeeeeeeeeeeeees 23 Hardware abstraction layer cccssseeeseeeeeees 23 Protocol abstraction layer c cccccccsseceeeeeeees 23 Application lAyelr ccccseeececseseeeeeeeeeeseeeesaaeees 23 Build CONFIQUIATION ccceeeeeceeeeeeeeeeeeeeeeeeeens 23 Level of compiler optimization 00c008 24 Optimization ISSUES cccseeeceeeeeeeeeeeeeeeeeess 25 Hardware configuration and SPI usage 26 Hardware Configuration cc ccscecssseeeesseeeeees 26 PREV601 board type definition 0000e 26 Reading IC or board type ccccceceeeeeeeeeeees 26 Low Power Ca
20. For sales office addresses please send an email to salesaddresses nxp com Date of release 10 November 2013 243915 Document identifier AN11281
21. NXP Semiconductors NxpRdLibP2PExtensions 2 0 3 Cancel Fig 27 Importing the project After the import there are two new projects in the workspace one for the use with the RC663 Blueboard or PREV601 board and one for the use with the PN512 board Basically these two projects provide the same functionality SNEP client project In this project the PREV601 board behaves like SNEP client with performing the Put request functionality only 14 14 On the other side there must be a device peer capable of NFC communication and providing the SNEP server service These conditions are fulfilled by a mobile device with Android platform 4 0 or later Here is a short instruction list how to use the SNEP client software 1 Run the SNEP client project as described in section 4 3 1 with respect to LPC1227 microcontroller restriction and hardware configuration in section 6 4 2 Hold your NFC device smartphone approximately 5 centimeters above antenna of the PREV601 board 3 Once the NFC detected in the RF field of the transmission of the NDEF message is started You may be notified by a sound or vibration of your device The transmission may take several seconds depending on the size of the NDEF message Hold your NFC device in range of PREV601 board s field during entire transmission 4 After transmission completed there should be the transmitted image displayed in the device s screen What is going on inside The SN
22. P1227 IC For detailed information please see 3 To flash the LPC1227 micro controller one also needs a LPC Link board LPC3154 2 1 PREV601 board st Eri y nN y Qe p sJ ONL pd flew r pa O B a ke Ae RR ee SESSEBSEBQ at 42402 4 Fig 1 Picture of the PREV601 board AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 3 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide The PREV601 board embeds the contactless communication transceiver IC CLRC663 HTRC and LPC1227 processor The software provided with this evaluation board also works with the significantly smaller PREV601M Microboard Fig 2 PREV601M Microboard 2 2 LPC Link LPC3154 The LPC Link is equipped with an 8 pin JTAG header and it seamlessly connects the target via USB the USB interface and other debug features are provided by NXP s ARM9 based LPC3154 MCU Since this LPC Link is not available as single device one has to cut that part from any LPCXpresso board The LPCXpresso boards containing the LPC Link with the LPC3154 MCU are as follows LPC11C24 LPCXpresso Board LPC11U14 LPCXpresso Board LPC1114 LPCXpresso Board LPC1115 LPCXpresso Board LPC1227 LPCXpresso Board LPC1347 LPCXpresso Board LPC1343 LPCXpresso Board LPC1769 LPCXpresso Board To
23. activation window by pointing to Help gt Product activation gt Enter Activation code and enter the code The success of the product activation will be confirmed by an info dialogue Extraction of the demo reader project Once the LPCXpresso IDE has been installed on a computer the sequence of installing the reference reader project 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 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 12 of 37 243915 NXP Semiconductors AN11281 AN11281 e The software package is ready for use PREV601 Quick Startup Guide Develop LPCX resso Eile Edit Navigate Searets Project Run Window Help Srna owed B Eh eee Ee a Q P oy X a Proje 53 Wif Core Perip Tah je t ae W Qu 82 Ml Re 00 Va Br lore Build irm A Build g Clean I G Debug Quick Settings v E Import and Export Import archived projects zip f Ei Import exisiting projects Fig 17 g Importing a project into the LPCXpresso IDE All information provided in this document is subject to legal disclaimers In the Qui
24. al Link Control Protocol NFCForum TS LLCP_ 1 1 available on www nxp com redirect nfc forum org specs spec license AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 34 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN11281 8 Legal information 8 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 8 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 In no event shall NXP Semiconductors be liable for any indirect incidental punitive special or consequential damages including without limitation lost profits lost savings business interruption costs related to the removal or replacement of any products or rework charges whether or not such damages are based on tort inclu
25. ck Panel on the left hand side choose Import projects s Application note COMPANY PUBLIC Rev 1 5 10 November 2013 243915 NXP B V 2013 All rights reserved 13 of 37 NXP Semiconductors AN11281 AN11281 PREV601 Quick Startup Guide Import project s Import project 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 archive zip Archive C RC663 Polling zip Project directory unpacked Root directory Browse for more examples Then use press Browse above to import into your workspace Browse Press Browse for more examples to view the latest examples and download to your local drive Browse for more examples Finish Fig 18 Importing a project into the LPCXpresso IDE sone Browse the desired project and click Next Import project s Import project s Select a directory to search for existing Eclipse projects Projects RC663 Polling RC663 Polling Select All Deselect All 7 Copy projects into workspace Fig 19 Importing a project into the LPCXpresso IDE When the import process has finished one can start browsing the code Most interesting might be
26. ct to export control regulations Export might require a prior authorization from competent authorities 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 the 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
27. ded in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 18 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide 5 Associated Projects 5 1 Communication with MIFARE Ultralight Based on examples the MIFARE Ultralight project shows how read write access can be achieved on this type of card If one uses a card which is not write protected or secured the example program writes a valid NDEF message onto the card One can read this message with any NFC enabled mobile phone which can read NDEF messages 5 2 Communication with MIFARE Classic Based on examples this project shows how read write access can be achieved on this type of card 5 3 Communication with MIFARE DESFire Based on examples this project shows how read access can be achieved on this type of card 5 4 Polling Based on examples this project shows how to initiate a basic communication with the following cards e MIFARE Ultralight e MIFARE Classic e MIFARE Plus e MIFARE DESFire e FeliCa compliant cards e ISO IEC 14443 B cards e ISO IEC 15693 Tags This example project also looks for cards in range of the RF field in a continuous loop and returns the type of the detected card or tag to the console window 5 5 Peer to Peer functionality Based on examples this project shows an implementation of Peer to Peer P2P functionality Because
28. define DEBUG_PRINT_LPCD_2 register printing during LPCD mode debugging define Q_I_DEBUG_PRINT endif LOW_POWER_MODE The defines DEBUG_PRINT_LPCD DEBUG_PRINT_LPCD_2 and Q_I _DEBUG_PRINT allows to activate different levels of debug output about the LPCD mode Usage of the SPI interface Because of the hardware design the PREV601 board can only use the SPI interface for the communication between the microcontroller LPC1227 and the reader IC CLRC663 Nevertheless one may use the I2C interface in a different hardware design with the same integrated reader module The SPI selection is described in the chapter 6 4 1 4 AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 27 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 6 5 6 5 1 AN11281 PREV601 Quick Startup Guide The defines regarding the SPI interface are as follows define SSP_CLK PIO0_14 define SSP_MISO PIO0_16 define SSP_MOSI PI00_17 define SSP_SSEL PI00_15 The pin SSP_SSEL is set to the typical GPIO mode and the selection is performed directly from the SPI driver The remaining three pins are set to SPI mode The pins for the selection of the communication interface are as follows define PIN_IFSELO 18 select pin to define com interface type for RC663 define PIN_IFSEL1 19 select pin to define com interface ty
29. ding 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 accepts no liability for inclusion and or use of NXP Semiconductors products in such equipment or applications and therefore such inclusion and or use is at the customer s own risk Applications Applications that are described herein for any of these products are for illustrative purposes only NXP Semiconductors makes no representation or warranty that such applications will b
30. e 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 AN11281 All information provided in this document is subject to legal disclaimers PREV601 Quick Startup Guide testing for the customer s applications and products using NXP Semiconductors products in order to avoid a default of the applications and the products or of the application or use by customer s third party customer s NXP does not accept any liability in this respect Export control This document as well as the item s described herein may be subje
31. ed Application note COMPANY PUBLIC Rev 1 5 10 November 2013 16 of 37 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide Develop RC663 Polling src main c LPCKpresso ii File Edit Source Refactor Navigate Search Project Run Window Help ve s ls aw amp amp Eh ethoC ls A E BY E R Develop amp Be Qa Sp J apr 23Na Co Fa Pe O 35 Debug 2N B i E RC663 Polling Debug C C MCU Application 5 Binaries A amp MCU GDB Debugger 22 12 11 09 26 K Includes p Thread 1 Running ns end ache adk 7717 97 AAEL G8 driver G8 linker E config BB mame 53 s E src IFE LALLSEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE EEEE a a aa ha ha aada a a Da Da ha a a a ha Da ha a a Baa A SId i2c main c z Project NXP LPC11xx I2C example E gt NxpRdLib_PublicReleas phSubBal main c G startup G cmsis Description This file contains main entry A n b uU N Debu amp a eee eee eee eee eee eee eee eee ELS SELLS RRR io Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products This software is supplied A5 IS without any warranties NXP Semiconductors assumes no responsibility or liability for the use of the software conveys no license or title under any patent copyright or mask work right to the product NXP Semiconductors repert
32. eeeeeeeas 17 RUN the PrOject ccccccssseeeeeseeseeeeseeeeeeeeeeees 17 Stop the Project cccccessssssseeeeeeeseeseeeeeeeeees 18 Debug Buttons sc2semccccssvrsoctcscseerenseeaidoacsenieedte 18 Importing the project cccceceeeeeeeeeeseeeeeeeees 20 Architecture of the NXP reader library 22 Select the build configuration cc ceceee 24 Select the level of optimization 08 25 Open Current Launch Configuration 32 Disable the initial breakpoint 0 cee 33 NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 243915 36 of 37 NXP Semiconductors AN11281 10 Contents 1 2 1 2 2 2 3 4 1 4 2 4 3 4 3 1 5 1 5 2 5 3 5 4 9 5 9 5 1 D022 9 9 2 1 9 9 2 2 6 6 1 6 1 1 6 1 2 6 1 3 6 1 4 6 3 6 3 1 6 4 6 4 1 6 4 1 1 6 4 1 2 6 4 1 3 6 4 1 4 6 4 1 5 6 4 2 6 5 6 5 1 6 5 2 6 5 3 6 5 4 Tali gels 0 UON sasn 3 Hardware overview of the Demo Reader 3 PREV601 board ccccccceeeccceeeceeseeeeeeseeeeeeaees 3 LPC Link LPC3154 viscsssavesaccadsnsanoecvemenesersnesnesave 4 Preparation of the hardware ccsssceeseeeees 5 Connecting the hardware to a computer 7 Managing the Demo Reader project with LPCXpresso IDE wersscsssscsesstccccisscsscceccsssncewetesesavetes 7 Installation of LPCXpresso IDE 00cc000 8
33. es tha rinrht rn meskes FrRenvres in tha enftrrsra nuithant b ps pa w N e O b 5 op pa p n amp Import project s Build all projects Debug El Console 53 N By Problems O Memory a Red Trace Preview exe ane e w erro a RC663 Polling Debug C C MCU Application C Users nxp36584 Documents LPCXpresso_4 0 5_123 voruebergehender workspace RC663 Poll amp Build RC663 Polling Debug No card or tag detected J of Clean RC663 Polling Debug card or tag detected D at card or tag detected od Ys gle gl card or tag detected card or tag detected card or tag detected E Project and File wizards Mifare UltraLight card detected e Mifare UltraLight card detected E Import and Export a ra 4 RC663 Polling NXP LPC1114 301 Fig 23 Run the project After the software upload the execution of the project starts immediately E Console 2 El Problems O Memory Red Trace Preview E Xal GAMERE Yt Beri oO RC663 Polling Debug C C MCU Application C Users nxp36584 Documents LPCXpresso_4 0 5 123 voruebergehender workspace RC663 Poll No card or tag detected a No card or tag detected No card or tag detected No card or tag detected No card or tag detected No card or tag detected Mifare UltraLight card detected Mifare UltraLight card detected E 3 ROG63 Polling MXP LPC1114 301 Fig 24 Run the project In the con
34. f 3 LPC1227 User Manual http Awww nxp com documents user_manual UM10441 padf 4 Multipoint Connectors we used Grid Dimension 2 54mm at least 27 pins www nxp com redirect conrad at ce de product 741119 S TIF TLEISTE 1 X 36 POLIG VERGOL RM 254 and www nxp com redirect conrad at ce de product 736427 BUCHSENLEISTE EINREIHIG 36 POLIG RM254 5 Direct link to the NXP Reader Library http www nxp com documents software 200310 zip 6 RC663 and NXP Reader Library http www nxp com documents application note AN11021 pdf 7 HITAG HTRC110 data sheet http www nxp com documents data_sheet ht037030 pdf 8 HTRC11001T http www nxp com products identification and_security nfc and reader _ics hitag reader ics HTRC11001T html documentation 9 PRH601HL http www nxp com products identification and _security reader_ics contactless re ader_systems PRH601HL html 10 PREV601 demo board http www nxp com demoboard PREV601 html 11 AN11145 low power card detection Quick Start Guide http www nxp com documents application note AN11145 pdf 12 Product information page of the CLEV663B evaluation board http www nxp com demoboard CLEV663B html 13 NXP Reader Library P2P user manual http Awww nxp com documents user_manual UM10721 pdf 14 Technical Specification Simple NDEF Exchange Protocol NFCForum TS SNEP_1 0 available on www nxp com redirect nfc forum org specs spec_ license 15 Technical Specification Logic
35. he additional functionality is an interrupt signal generation at pin 32 IRQ interrupt request But this additional functionality is not yet supported by the NxpRdLibrary The following snippet describes the standard LPCD mode setting and detection void pHal BFL Basic Function Library data parameter storage phbalReg_Stub_DataParams_t balReader phhalHw_Rco63_DataParams_t halReader Initialize the Reader HAL Hardware Abstraction Layer component status phhalHw_Rc663_Init amp halReader sizeof phhalHw_Rc663_DataParams_t amp balReader 0 bHalBufferReader sizeof bHalBufferReader bHalBufferReader sizeof bHalBufferReader Set the generic pointer pHal amp halReader ifdef LOW_POWER_MODE uint8_t bI_Register uint8_t bQ_Register endif LOW_POWER MODE ifdef LOW_POWER_MODE debug printi ses ssasseess2 SSS eessas55 debug printi LPC conriguration 1 PH_CHECK_SUCCESS_FCT status phhalHw_Rc663_ Cmd_LpcdConfig pHal amp bI_Register amp bQ_Register AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 29 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide ifdef DEBUG_PRINT_LPCD debug printi in register I debug_puts_hex bI_Register g_ debug_printf n register
36. he code size at the current compiler level overloads the FLASH size of the target board 128K for the ARM based microcontroller LPC 1227 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 AN11281 Click on the project in the project window of the LPCXpresso IDE Right click of the mouse gt Select properties gt Select C C build Select Settings gt Optimization Choose the desired level in the combo box All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 243915 24 of 37 NXP Semiconductors AN11281 PREV601 Quick Startup Guide lt Properties for RC663 type filter text Resource Builders C C Build Build Variables Environment Logging MCU settings Settings C C General Project References Run Debug Settings 2 Settings Discovery Options Tool Chain Editor Configuration Debug Active Tool Settings Build Steps T Build Artifact i Binary parse MCU C Compiler Preprocessor Symbols 3 Includes Optimization Debugging Warnings Miscellaneous Target MCU Assembler General Target MCU Linker General 5S Libraries Misce
37. 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 8 3 Licenses Purchase of NXP ICs with ISO IEC 14443 type B functionality B 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 8 4 Trademarks Notice All referenced brands product names service names and trademarks are property of their respective owners MIFARE is a trademark of NXP B V DESFire is a trademark of NXP B V MIFARE Ultralight is a trademark of NXP B V MIFARE Plus is a trademark of NXP B V NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 243915 35 of 37 NXP Semiconductors AN11281 9 List of figures Fig 1 Fig 2 Fig 3 Fig 4 Fig 5 Fig 6 Fig 7 Fig 8 Fig 9 Fig 10 Fig 11 Fig 12 Fig 13 Fig 14 Fig 15 Fig 16 AN11281 Picture of the PREV601 board ccceeeee 3 PREV601M Microboard cccceceeeeeceeeeeeeeees 4 EP o
38. llaneous 33 Shared Library Settings Target Optimization Level Other optimization flags Optimize more None 00 Optimize O1 Dptimize more H02 Optimize most 03 Optimize for size Os Fig 30 Select the level of optimization RestoreDefaults Apply ima 6 3 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 debugger s current line indicator fail to advance or even move backwards when clicking step It is best to always use O0 for debugging Since optimization can make such a big difference in code size and performance it is a good idea to test the project with code optimization on and plan for a final build that is optimized AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC Rev 1 5 10 November 2013 243915 25 of 37 NXP Semiconductors AN1 1 281 6 4 6 4 1 6 4 1 1 6 4 1 2 6 4 1 3 PREV601 Quick Startup Guide Hardware configuration and SPI usage The hardware configuration
39. mber will be displayed x Write down the serial number or copy it into the clipboard 2 Press OK and a web browser will be opened on the Activations page If you are already logged in to the website the serial number will be completed for you 1 number m Ifyou are not logged in you will need to login navigate to the My Registrations paoe and enter the products seria Develop Welcome page LPCXpresso o amp s File Edit Navigate Search Project Run Window Help cir aes Br Eh wuha les A Er Bw 3 E R Develop ee eet ak E eee ee TS Project Ex 5g ot Core Regi Periphera O Welcome x gt o A K aS file C nxp LPCXpresso_4 1 0_190 lpcxpresso pages unregistered htm gt i od El Console 23 B Problems Memory Red Trace Preview taerien No consoles to display at this time Ke ai ca workspace Fig 13 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 is needed to navigate to the website of Code Red The Link is shown in the menu Help gt Product activation gt Create Serial number and Activate ak Ne
40. p Wizard Setup has finished installing LPCXpresso on your computer The application may be launched by selecting the installed icons PRESSO Click Finish to exit Setup Launch LPCXpresso v4 1 Powered by Wicode_red Fig 12 LPCXpresso installation setup wizard 4 AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 10 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN11281 AN11281 PREV601 Quick Startup Guide r License type UNREGISTERED Code 1 sa Debug limit 8k Activation code not available ed To request an activation code or to activate a license please select pte your product to remove this restriction Help gt Product Activation License Restriction An UNREGISTERED copy of LPCXpresso may only be used for evaluation purposes Register and activate to remove this restriction LPCXpresso website to be able to obtain an E Start here fej New project Import project s ov Build all projects Build I of Clean I F Debug te Quick Settings v i i 3 Rinld anrd Gettinac W Quick 52 fil RedC 69 Varia lt Project and File wizards x Import and Export Help gt Product activation gt Create Serial number and Activate Your products serial nu
41. patent E Start here FR _ 14 copyright or mask work right to the product NXP Semiconductors ej New project 1g wrecertses tha rinrhtrt rn malba FRsenres in tha onftrurra wirnawer 4 p Import project s f 52 3 x 3 Y A a Build all projects Debug l Console 3 Bi Problems 0 Memory Red Trace Preview C Hi B x B E amp 1 rf g ry s RC663 Polling Debug C C MCU Application C Users nxp36584 Documents LPCXpresso_4 0 5_123 voruebergehender workspace RC663 Poll amp Build RC663 Polling Debug a ge ae ee eee ee Se e a a a a A ee ee card or tag detected A f of Clean RC663 Polling Debug card or tag detected ath card tag detected Debug RC563 Polling Debug beaded EAA 3 Quick Settings v card tag detected card or tag detected Project and File wizards x Mifare UltraLight card detected Mifare UltraLight card detected E Import and Export x 4 RO663 Pollin Fig 25 Stop the project 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 Step over C C line Step into a function Stop the debugger Instruction stepping mode disassembly Fig 26 Debug Buttons AN11281 All information provi
42. pe for RC663 Based on the datasheet of the reader IC CLRC663 2 the pins have to be set as follows Select SPI link gt IFSELO 0 amp IFSELI 1 The RESET pin or better power down pin of the reader IC CLRC663 is defined as follows define PIN RESET 20 PDOWN pin for power down reset of RC663 LPCD mode configuration The reader IC CLRC663 is capable to operate in low power card detection mode This mode is an energy saving mode intended for use cases where the CLRC663 is required to consume minimum current during polling e g for systems powered by battery The LPCD feature is independent from the used smartcard tag communication protocol Please consult the more detailed application note about the LPCD 11 The LPCD operates in two phases The first is the standby mode controlled by the wake up timer T4 This timer defines the standby duration of the CLRC663 reader IC The second phase is the detection time In case that during the detection time an influence of the RF field is recognized the values of the and Q channel are stored to the assigned registers and compared with the calculated thresholds In case the values of the and Q channel exceeds the thresholds the LPCD operation stops and the system continues with the appropriate program flow A detuning of the RF field and a resulting stop of the LCPD mode can be evoked by any metallic object In the Polling project the implementation returns into LPCD mode
43. pes BAL components define NXPBUILD__PHBAL_REG_STUB lt Stub BAL definition define NXPBUILD__PHBAL_REG_SERIALWIN lt SerialWin BAL definition define NXPBUILD__PHBAL_REG_PCSCWIN lt PcscWin BAL definition define NXPBUILD__PHBAL_REG_RD7OXUSBWIN lt Rd70X_UsbWin BAL definition The define NXPBUILD__ PHBAL_REG_STUBis prerequisite for enabling any type of bus connection between MCU and reader chip BAL uC components if defined NXPBUILD PHBAL REG STUB define NXPBUILD PHHAL HW BUS SPI lt SPI Bus definition define NXPBUILD PHHAL HW BUS _I2C lt I2C Bus definition i define NXPBUILD PHHAL HW BUS _UART lt UART Bus definition if defined NXPBUILD PHHAL HW BUS SPI defined NXPBUILD PHHAL HW BUS _12C defined NXPBUILD PHHAL HW BUS UART define NXPBUILD _PHHAL HW BUS lt Generic BUS uC definition endif endif The defines NXPBU ILD__PHHAL_HW_BUS _ SPI and NXPBUILD__PHHAL_HW_BUS_ 2C control the communication interface between the microcontroller LPC1227 and reader IC CLRC663 Each define does small adaptations in the files loc1227 ph_HwBus c and lpc1227 ph_HwBus h Further interface setting for the PREV601 board are described in chapter 6 4 2 Debug printout definition Ye E SEREN NE E EE E E EE E debug printouts definition pa a a a a gp ee ee ky ifdef LOW_POWER_MODE define DEBUG_PRINT_LPCD print debugging for LPCD mode
44. r Ba Br Problems 0 Memory af Red Trace a e wW oop Choose the Debug configuration Choose the tab Debugger Click onto Apply and then Close Uncheck the box near Stop on startup at All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note COMPANY PUBLIC 243915 Rev 1 5 10 November 2013 32 of 37 NXP Semiconductors AN11281 AN11281 Application note PREV601 Quick Startup Guide E _ Create manage and run configurations Main Program does not exist i h La ii x o Ss Name RCO663 Polling Debug type filter text TE Mak Xs Debugge er Be Source E Common fe C C Application Debugger Options E RC663 Polling Debuc ET RCHGS Purttiney RETEA Target configuration e C C Postmortem Deb Debugger configuration Launch Group NXP LPC 13a E Show all Fig 32 Disable the initial breakpoint All information provided in this document is subject to legal disclaimers COMPANY PUBLIC NXP B V 2013 All rights reserved Rev 1 5 10 November 2013 33 of 37 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide 7 References 1 LPCXpresso website www nxp com redirect lpcware com lpcxpresso downloads older 2 RC663 data sheet http www nxp com documents data_sheet CLRC663 pd
45. rd Detection mode LPCD detii O esc evouwiaetanitesscoesaatecsinesememaeeiateaianen 26 Communication interface definition 27 Debug printout definition cceeeeeeeeeeeees 27 Usage of the SPI interface cccceeeeeeeeeees 27 LPCD mode Configuration 0 cccccsseeeeeeeees 28 Library SUpport cseccceceeeeeceeeeeeeeeeeeseeeeeens 28 LPCD software usage ccccessseeeeeeeeeeeeeeeeees 29 The and Q Register SettingS cccccee 30 What to do if the PREV601 board does not stay 6 6 8 1 8 3 8 4 10 PREV601 Quick Startup Guide Het PCD MOJE teccr sce tcccaceesecns seiacounmeansncisennnes 31 Removing the initial breakpoint on debug SU AIUD eerie ree N AEA 32 References ssnssnnnnnennnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnn 34 Legal information cccsesseesseseeeeeeneeeeenneeseenees 35 DSTI OM Stace cteescainatecaedeeesseeericdendeteaaeeectaceselewins 35 Disclaimers eee nee ee on ee 35 LICGONSOS ey eee eee eee NEEE 35 Trademarks oo cece eecce eee eeseecseeeeueseeeeueeeeeeaeeeuenees 35 LIST OF MOUNT CS isernia 36 COMM CTIUS socaccttarcosssencterecausegsssaecteteueuveassaceceeveuousse 37 Please be aware that important notices concerning this document and the product s described herein have been included in the section Legal information NXP B V 2013 All rights reserved For more information visit http www nxp com
46. rd cannot be used if PRH601 board is set define TUSA definition TUSA card reader instead of BlueBoard endif BOARD_PRH601 Because the software projects provided with the PREV601 M boards are preconfigured for the use with the LPC1227 micro controller the TUSA board cannot be used with these projects For more information about this reader module from SILICA please refer to the quick start guide for the CLEV663B evaluation board 12 Low Power Card Detection mode LPCD definition ETEEN E ee E E E E E E E EE E ee NE EEE E eee ee ee low power mode LPCD definition ifndef TUSA not allowed for TUSA baord type define LOW_POWER_MODE allow implementation of LPCD mode low power card detection endif AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 26 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 6 4 1 4 6 4 1 5 6 4 2 PREV601 Quick Startup Guide The define LOW_POWER_MODE allows and switches the application into the Low Power Card Detection LPCD mode This setting is not available for TUSA board The LPCD mode directly works with the reader IC CLRC663 note there are some more reader ICs with LPCD functionality Communication interface definition The bus interface is configured via defines in ph_NxpBuild h in the directory src NxpRdLib_PublicRelease ty
47. rs Generic USB Hub Generic USB Hub Generic USB Hub Generic USB Hub gj Generic USB Hub _ Intel R 6 Series C200 Series Chipset Family USB Enhanced Host Controller 1C26 Intel R 6 Series C200 Series Chipset Family USB Enhanced Host Controller 1C2D USB Composite Device A TE Composite Device ij USB Device with DFU Capabiits Fig 7 Enumeration of the LPCXpresso Board in Device Manager Window 4 Managing the Demo Reader project with LPCXpresso IDE 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 at NXP It supports NXP s ARM based LPC microcontrollers The platform comprises a simplified Eclipse based IDE and low cost target boards which include an attached JTAG debugger For development please use the LPCXpresso version 4 x Newer versions of the IDE are known not to work correctly with the provided software examples AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 7 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide This tool can be freely downloaded from the LPCXpresso website 1 Before one can download the software it is necessary to create an account Creating an account is absolutely free
48. s bOQMin b 1 bOQMax bQ 1 bIMin bI 1 bIMax bI 1 Set Qmin register bRegister bQMin uint8_t bIMax amp 0x30 lt lt 2 PH_CHECK_SUCCESS_FCT statusTmp phhalHw_WriteRegister pDataParams PHHAL HW_RC663_REG_LPCD_QMIN bRegister Set Qmax register bRegister bQMax uint8_t bIMax amp 0x0C lt lt 4 AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 30 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN11281 PREV601 Quick Startup Guide PH_CHECK_SUCCESS_FCT statusTmp phhalHw_WriteRegister pDataParams PHHAL HW_RC663_REG_LPCD_QMAX bRegister Set Imin register bRegister bIMin uint8_t bIMax amp 0x03 lt lt 6 PH_CHECK_SUCCESS_FCT statusTmp phhalHw_WriteRegister pDataParams PHHAL HW_RC663_REG_LPCD_IMIN bRegister 6 5 4 What to do if the PREV601 board does not stay in LPCD mode If the CLRC663 often leaves the LPCD mode without any metallic object being put into its RF field a solution may be to enlarge the detection thresholds from 1 to 3 or 4 The following code shows an example File src NxpRdLib_PublicRelease comps phhalHw src Rc663 phhalHw_Rc663_Cmd c Snippet starting at line 180 AN11281 Calculate I Q min max values bQMin b 3 bOMax bQ 3 bIMin bI 3 bIMax
49. sole window at the bottom one will see the debug output of the execution All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 17 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide z ma E Develop RC663 Polling src main c LPCXpresso Br J ci ia aged amp S amp Bx a e gpr v Pr KN N Co Z Pe O Debug 3 _ B ps E RC663 Polling Debug C C MCU Application amp MCU GDB Debugger 22 12 11 09 26 P Binaries J i Includes p Thread 1 Running eB driver 4 G8 linker ee B amp B config main c es E src L LRA RRR ARR ARK AKAKKEK ERK KKK EEEa a a a a a a a a a Ba a a a RRR E noni aibi adk P9719 97 161 NxpRdLib_PublicRelea 2 Id i2 _main c z phSubBal 3 Project NXP LPCiixx I2C example main c E startup G cmsis Description This file contains main entry Release P amp Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products This software is supplied AS IS without any warranties amp Debug 8 ERR aaa NXP Semiconductors assumes no responsibility or liability for the use of the software conveys no license or title under any
50. t all the other lines 5 Save the changes and recompile the project NDEF_messages n_mess type parameter string l4 NDEF_TYPE_IMAGE NDEF_IMAGE_JPEG c_table sizeof c_table NDEF_TYPE_IMAGE NDEF_IMAGE_PNG c_table sizeof c_table fI NDEF_TYPE_IMAGE NDEF_IMAGE_TIFF c_table sizeof c_table E T LANG_NO textl sizeof text1 T LANG_EN c_table sizeof c_table iy T LANG_EN textl sizeof textl AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 21 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide Table 1 Table of files prepared for NDEF message transmission Identifiers from the last two columns are necessary for choosing the right line from n_mess Content Header Name a eens es PNG image c_tablepng h NDEF_TYPE_IMAGE NDEF_IMAGE_PNG QR code of NXP c_tableQR h NDEF_TYPE_IMAGE NDEF_IMAGE_PNG Image of NXP logo c_tablenxp h NDEF_TYPE_IMAGE NDEF_IMAGE_JPEG Long text message c_tabletxt t Tt LANG_EN 6 Supplementary Notes AN11281 6 1 Software architecture The software of the reference reader is based on the NXP 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 in 4 layers e BAL
51. tartup Guide Right click of the mouse gt Select build configuration Set active Debug build or Release build New Go Into Open in New Window Copy Ctrl C Paste Ctrl V Delete Delete Move Rename F2 Import Export Build Project Clean Project Refresh F5 Close Project Close Unrelated Projects Build Configurations Make Targets Index Convert To Run As Debug As Fig 29 Select the build configuration eId i2c main c Project NXP LPC1lixzs I2C example Description This file contains main entry ee ee ee ee ee ee ee ee ee ee ee ee ee ee ee eee ftware that is described herein is for illustrat ich provides customers with programming informat nducts This software is supplied AS IS witho P Semiconductors assumes no responsibility or li e of the software conveys no license or title 1 Oyright or mask work right to the product NAP serves the right to make changes in the software tification NXP Semiconductors also make no rep rranty that such application will be suitable fr e without further testing or modification ee eee ee eee eee ee ee eee ee ee ee ee ee ee ee ee ee finitions of which drivers we mt to have enabled St Set to Zero you want to Fe g jsa k F 1 Debug Debug build bes 2 Release Release build Build All Clean All Build Selected ader definition al Purpose Input Output 6 3 Level of compiler optimization When t
52. ure AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 15 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 AN11281 PREV601 Quick Startup Guide Fle Be ew Rentia Project Barink Ha A ha Sla wer s ie a Er BY p RB ML Er EARE 21 5 Marr SNC A Pe B mainc RN DE Aaaa aaa aa aa aaa aaa aaa a aa aaa a aaa aaa aa aaa aa aa a a a aaa aa aaa a aaa aaa Baa aa a a a aa a aa aa a aad d 2 SId i2c main c Project NXP LPCiixx I2C example in b Ob Description This file contains main entry oO SEE EEE EE EE EE EE EE EE EE EE EE EK KK KK KK KK KK RE ee om y Software that is described herein is for illustrative purposes only which provides customers with programming information regarding the products This software is supplied AS IS without any warranties NXP Semiconductors assumes no responsibility or liability for the use of the software conveys no license or title under any patent copyright or mask work right to the product NXP Semiconductors reserves the right to make changes in the software without notification NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification 19 RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR RRR R RR Rk kkk oO
53. use the LPC Link one has to cut it off from the LPC Xpresso board AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 4 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide a SE HTE rs TRELERL Pas gt LPC Link Fig 3 LPC Link 2 3 Preparation of the hardware The first step after unpacking the PREV601 board and the LPC Link board is soldering the connectors onto the boards in order to attach them In our example we use a multipoint connector as one can see on the pictures below Pe ate ee ee L r e ry Wb Secin gt eS Fig 4 Multipoint Connectors 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 figure AN11281 All information provided in this document is subject to legal disclaimers NXP B V 2013 All rights reserved Application note Rev 1 5 10 November 2013 5 of 37 COMPANY PUBLIC 243915 NXP Semiconductors AN1 1 281 PREV601 Quick Startup Guide f Sa vA s D fa 3V3 PSU for logic of PRH601 resistor R2 0 Ohm has to be assembled Fig 5 Connecting the PREV601 board to the LPC Link Fig 6 LPCXpresso with the Multipoint Connectors While soldering the
54. ustomers with programming information regarding the Le main c 11 products This software is supplied AS IS without any warranties GB startup i2 NXP Semiconductors assumes no responsibility or liability for the S cmsis i3 use of the software conveys no license or title under any patent 4 copyright or mask work right to the product NXP Semiconductors Project NXP LPCiixx I2C example Description reserves the right to make changes in the software without notification NXP Semiconductors also make no representation or warranty that such application will be suitable for the specified use without further testing or modification f New project 21 Definitions of which drivers we 2 want to have enabled Import project s dust set to zero you want to ai Build all projects Debug 24 have disabled One wae 25 include lt driver_config h gt amp Build RC663 Polling Debug 26 include lt target config h gt g Clea RC663 Poting 1D 17 Ls C Debug RC663 Polling Debug i i ee Fn l Console z E Problems 6 Memory T Red Trace Preview 33 Quick Ettrs No consoles to display at this time _ E Project and File wizards E Importand Export St Rrvild and Settinnc x n Writable Smart Insert Fig 20 Run the project Choose the desired project and click the Debug Button on the left hand side as shown in the example pict
Download Pdf Manuals
Related Search
Related Contents
cal. nx11, nx14 montre quartz à double affichage AV-452 Installation and Support Guide Manual - Daewoo Electronics LATE l - Gardner Inc. here - Neo Car Audio RCA RC 930 Network Router User Manual Mode d`emploi Trancheuse universelle MASTER M 80 Otterbox MOT4-QUENC-20-C5OTR mobile phone case Mode d`emploi - Panasonic Global Copyright © All rights reserved.
Failed to retrieve file