An 11022
An 11022
Document information
Info Content
Keywords CLRC663, CLRC663 plus, CLEV6630A, CLEV6630B, CLRC663
evaluation board, CLRC663 customer board, CLRC663 GUI, GUI,
CLRC663 Support Tool, NFC Cockpit
Abstract This document describes the CLEV6630A and CLEV6630B (CLRC663
evaluation board), and how to use it. It describes the NFC Cockpit
(Version 3.6), which allows an easy basic access to the CLRC663
registers and EEPROM in combination with basic reader functionality.
NXP Semiconductors AN11022
CLRC663 Evaluation board
Revision history
Rev Date Description
1.5 20180528 Including CLEV6630A
1.4 20170515 MCUXpresso IDE installation and usage chapter added
Software example descriptions added
1.3 20170503 Update with new CLEV6630B V2.0 and NFC Cockpit
1.2 20150114 RC663 Schematic updated
1.1 20120712 Some Figures updated because of quality reasons, Section Licenses updated
1.0 20120216 Initial release
Contact information
For more information, please visit: http://www.nxp.com
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
1. Introduction
This document describes the CLEV6630A and CLEV6630B (CLRC663 evaluation
board), which provides an easy evaluation of the features and functions of the CLRC663
and CLRC663 plus families.
It provides the first steps to operate the board, using the NFC Cockpit (Version 3.6 or
higher).
The default antenna is a 65mm x 65mm antenna with some metal layer inside the
antenna area. This antenna is not an optimum antenna as such, but intends to
demonstrate the performance and register settings of the CLRC663 under typical design
constraints like LCD or some metal (e.g. PCB) inside the antenna area.
In this document the term „MIFARE Classic card“ refers to a MIFARE Classic IC-based
contactless card, the term „MIFARE DESFire card“ refers to a MIFARE DESFire IC-
based contactless card.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
The NFC Cockpit also allows a dump of the complete user EEPROM content into an
XML file. This file then can be loaded again into the EEPROM. That allows to manage
and exchange different user or antenna configurations. In addition, the register settings
found to work well using the NFC Cockpit, can be used during user code development as
well.
As soon as the register settings for the targeted protocols and data rates are defined, the
NFC Reader Library including the HAL can be used to start the development of the user
application. Examples illustrate the usage of the library for typical use cases.
The source code examples of the NFC Reader Library can be used to develop an own
application directly on the LPC1769 (see Fig 3), or can serve as a starting point for
porting the NFC Library to any other microcontroller platform.
2. Hardware
The CLEV6630, as shown in Fig 1 and Fig 2, provides a lot of test functions which might
not be used for the typical hardware and software evaluation. It can be used as a simple
standard reader without modification, it can be used to define and optimize the analog
settings for any connected antenna or it can be used to develop and modify any RFID
and NFC application based on the NFC Reader Library.
The CLEV6630A and CLEV6630B share the same hardware, except these differences:
1. CLEV6630A uses the CLRC66302, while CLEV6630B uses the CLRC66303.
2. The CLEV6630A PCB color is red, while the CLEV6630V is blue.
3. The antenna tuning is slightly different (see 2.2.3).
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
2.2 Schematics
The complete schematics of the CLRC663 evaluation board are shown in the Fig 3, Fig
4, Fig 5, Fig 7, and Fig 8.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
2.2.1 LPC1769
The CLEV6630A / CLEV6630B contains an NXP LPC1769 (see Fig 3).
An LPC Linker can be connected to the LPC1769 via the JTAG interface (see Fig 4).
Fig 3. LPC1769
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
As soon as the board is supplied with power, the red LED LD100 must be on.
The CLRC663 evaluation board provides two LDOs, one for 5V and one for 3.3V. 5V
LDO is only be used, if the external power supply is connected and used (J101 default).
Using USB power might not give the best RF performance, since the USB voltage level
might not be stable 5V.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
(1) J101: power selection; J303: VDD selection; J300 TVDD selection
Three jumpers can be used to evaluate the different power supply options:
J101: either external or USB power supply (default)
J303: either VBAT = 5V or 3.3V (default)
J300: closed (default) or to measure the ITVDD (bridge with an ampere meter) or to
supply the CLRC663 (center pin of J300) with external TVDD from external DC power
supply
Note: The best RF performance can be achieved with external power supply.
2.2.3 CLRC663
The CLRC663 is shown in Fig 7.
The clock is based on a 27.12 MHz crystal.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
During the antenna tuning and overall hardware design typically the ITVDD must be
checked. This can be done with the JP300 (“TVDD”), either using an external power
supply or just using an ampere meter instead of the jumper.
The relevant test signals can be derived from the digital test pins at the bottom of the
board and the two analog test pins AUX1 and AUX2.
The antenna connection uses the standard tuning circuit. The EMC filter is designed with
a cut off frequency of fEMC ≈ 21 MHz, and the antenna impedance is tuned to Z ≈ 20Ω.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Note: The CLRC663 plus (CLEV6630B) can drive more output power than the CLRC663
(CLEV6630A), so the antenna for the CLRC663 plus could be tuned with a lower
impedance to increase the field strength. However, the maximum allowed field strength
must be taken into account, too.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
a. CLEV6630A b. CLEV6630B
Fig 9. CLEV6630A / CLEV6630B antenna tuning
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Fig 11. CLEV6630A / CLEV6630B jumper settings for external power supply
3. Software
The CLEV6630A / CLEV6630B evaluation board is delivered with a graphical user
interface application (GUI), the NFC Cockpit. The NFC Cockpit can be used to explore
the functionality of the CLRC663 and perform RF and antenna design related tests. It
allows a direct register access as well as EEPROM read and write access. The NFC
Cockpit therefore can be used to configure & test the CLRC663.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
manually installed, using the “install_vcom.bat” in the subdirectory NFC Cockpit _v xyz
\VCOM.
For the first start with the CLEV6630A / CLEV6630B refer to section 4.
3.1.1 LPC Firmware installation
For installation of LPC firmware the LPC link and a LPCXpresso tool is required. For
details refer to [5].
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
(1) Status when starting the NFC Cockpit with connected CLEV6630A / CLEV6630B board
Fig 13. NFC Cockpit Initial view with CLRC663 evaluation board
After starting the NFC Cockpit, the communication link between the PC and the
CLEV6630A / CLEV6630B (via the LPC VCOM interface) is enabled automatically.
Note: The NFC Cockpit is a development tool, and therefore allows many different
kind of operations, even “useless” ones at a first glance. The correct use of the
NFC Cockpit is required to operate the CLRC663 properly.
Example: without enabling the RF Field no card can be operated, even though
the CLRC663 can be operated.
The Fig 14 shows the activation of a MIFARE DESFire card, using the <Load Protocol> +
<Field On> + <Activate Layer3>, followed by <Activate Layer4>. The NFC Cockpit shows
the card responses like ATQA, SAK, and ATS.
Afterwards the ISO/IEC 14443-4 protocol can be used to exchange data. The Fig 14
shows the MIFARE DESFire command “Get Application ID” (0x6A), which returns the
AIDs.
Note: Make sure that either the CRC is enabled or added manually in the data field.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Fig 14. NFC Cockpit with CLEV6630A / CLEV6630B: Activation of a MIFARE DESFire EV1 card + Get Version
Similar functionality does exist for ISO/IEC 14443 A and B, for NFC type F and for
ISO/IEC 15693 communication.
Be aware that a Load Protocol command must be executed manually before the
corresponding protocol settings are loaded from the EEPROM into the registers. So this
tab “Type A” can be used to perform
(1) <Load Protocol> (e.g. type A 106)
(2) <Field On>
(3) <Single REQA> (using the EEPROM settings)
(4) Select a TX register, e.g. DRVMODREG, change TXCLOCKMODE
(5) Change some register bits, and write back into RAM
(6) <Single REQA> shows the register changes (probing the field and checking the envelop)
This allows an easy and quick optimization of Tx and Rx parameters. Using the default
settings from the EEPROM always resets the relevant registers.
Note: The EEPROM of the CLRC663 is locked for all the LoadProtocol area.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
(1) Registers are temporary stored, i.e. might be overwritten with Load Protocol.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
After selecting the signals <Route Test Signal> activates the chosen test signals at the
chosen test pins.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
the detected board: The CLEV6630A offers the CLRC66302 features, while the
CLEV6630B offers the enhanced LPCD features of the CLRC66303 (CLRC663 plus).
The LPCD parameter, which are used to define the LPCD performance (sensitivity
versus robustness) can be entered manually, if needed (details refer to [1]).
Otherwise the standby time can be entered and the LPCD can be started. During the
LPCD being activated the CLRC663 does not react on any command, so only a detuning
(-> place a card) or a Reset (press <Stop LPCD>) can end the LPCD mode.
Note: The NFC Cockpit automatically stops the LPCD after 60 seconds.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
The CLRC663 SW projects are delivered in a NFC Reader Library for CLRC663 package
available through product page or trough DocStore in case of Export controlled version.
Example projects can be build and run with MCUXpresso IDE.
The MCUXpresso IDE is a low-cost highly integrated software development environment
for NXP's LPC microcontrollers and includes all the tools necessary to develop high-
quality software solutions in a timely and cost effective fashion. MCUXpresso IDE is
based on Eclipse and has many enhancements to simplify development with NXP LPC
microcontrollers. It also features the industry-standard GNU tool chain, with a choice of a
proprietary optimized C library or the standard “Newlib” library. The MCUXpresso IDE
can build an executable of any size with full code optimization.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Designed for simplicity and ease of use, the MCUXpresso IDE provides software
engineers a quick and easy way to develop their applications.
This tool can freely be downloaded from the MCUXpresso website [8]. Before one can
download the software, it is necessary to create an account. Creating an account is free.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
Make sure, the checkbox for installing the NXP debug drivers is activated.
During the installation, the user will be asked to install some required drivers. The
installation of these drivers shall be accepted.
After the setup wizard, has finished, the newly installed IDE can be launched.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
For a working demo project, you need to import at least four sub projects. One example
project, the NFC Reader Library, FreeRTOS, one chip library and one board library.
When the import process has finished one can start browsing the code.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
As a part of the build output, the binary for the “User Flash” file is created. This binary file
can also be used to update LPC1769 User Flash via USB mass storage interface.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
The project settings, compiler and link flags can be changed in the project properties
dialog. To open the project properties dialog, select appropriate project in the “Project
Explorer View” and click “Edit ‘selected-project’ project settings”.
When debug is started, the program is automatically downloaded to the target and it´s
programmed to the LPC1769 flash memory; a default breakpoint is set on the first
instruction in main(), the application is started (by simulating a processor reset), and
code is executed until the default breakpoint is hit.
To start debugging your application on the CLEV6630A / CLEV6630B, simply highlight
the project in the Project Explorer and then in the Quickstart Panel click Debug, as
shown in Fig 29. The MCUXpresso IDE will first build application, flash application binary
and then will start debug session.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
After successful software upload, the execution of the project starts immediately, but
might halt at the initial breakpoint. To resume execution, please click the resume button.
In the console window application debug outputs of the execution can be seen.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
After the execution has reached the end of the main function please click the Terminate
button to stop the execution. Otherwise rerun of the project will be possible.
Buttons in the debug toolbar provide next functionalities:
6. Associated projects
All example projects are available for download at the CLRC663 product page in the
documents section and are being distributed in one single file.
After downloading the zip file unzip it and run the installer. The installer makes a copy of
all documents and SW on the hard disk.
By default, the projects are preconfigured to be run on the CLEV6630A / CLEV6630B
evaluation board. This is defined by preprocessor directive
PHDRIVER_LPC1769RC663_BOARD (properties-> settings->preprocessor) and by defining
appropriate macro in “../intfs/ph_NxpBuild_App.h”.
//#define NXPBUILD__PHHAL_HW_PN5180
#define NXPBUILD__PHHAL_HW_RC663
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
All projects described in the following sub chapters can be configured to run with or
without FreeRTOS operating system. To enable or disable FreeRTOS support, define
preprocessor directive PH_OSAL_FREERTOS or PH_OSAL_NULLOS respectively (Fig 35) and
rebuild project.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
7. References
[1] http://www.nxp.com/products/:CLRC66303HN
[2] CLRC663 datasheet
[3] AN11019 CLRC663, MFRC630, MFRC631, SLRC610 Antenna Design Guide
[4] AN11145 CLRC663, MFRC631, MFRC 630, SLRC610 Low Power Card Detection
[5] AN11021 CLRC663, MFRC631, MFRC630, SLRC610 Software Design Guide for
NXP®RDLib
[6] http://www.nxp.com/pages/:NFC-READER-LIBRARY
[7] MCUXpresso Integrated Development Environment (IDE)
http://www.nxp.com/products/software-and-tools/ run-time-software/mcuxpresso-
software-and-tools/mcuxpresso-integrated-development-environment-
ide:MCUXpresso-IDE
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
8. Legal information
Semiconductors products in order to avoid a default of the applications and
8.1 Definitions the products or of the application or use by customer’s third party
customer(s). NXP does not accept any liability in this respect.
Draft — The document is a draft version only. The content is still under
internal review and subject to formal approval, which may result in Export control — This document as well as the item(s) described herein
modifications or additions. NXP Semiconductors does not give any may be subject to export control regulations. Export might require a prior
representations or warranties as to the accuracy or completeness of authorization from competent authorities.
information included herein and shall have no liability for the consequences Translations — A non-English (translated) version of a document is for
of use of such information. reference only. The English version shall prevail in case of any discrepancy
between the translated and English versions.
8.2 Disclaimers Evaluation products — This product is provided on an “as is” and “with all
faults” basis for evaluation purposes only. NXP Semiconductors, its affiliates
Limited warranty and liability — Information in this document is believed to and their suppliers expressly disclaim all warranties, whether express,
be accurate and reliable. However, NXP Semiconductors does not give any implied or statutory, including but not limited to the implied warranties of non-
representations or warranties, expressed or implied, as to the accuracy or infringement, merchantability and fitness for a particular purpose. The entire
completeness of such information and shall have no liability for the risk as to the quality, or arising out of the use or performance, of this product
consequences of use of such information. NXP Semiconductors takes no remains with customer.
responsibility for the content in this document if provided by an information
source outside of NXP Semiconductors. In no event shall NXP Semiconductors, its affiliates or their suppliers be
liable to customer for any special, indirect, consequential, punitive or
In no event shall NXP Semiconductors be liable for any indirect, incidental, incidental damages (including without limitation damages for loss of
punitive, special or consequential damages (including - without limitation - business, business interruption, loss of use, loss of data or information, and
lost profits, lost savings, business interruption, costs related to the removal or the like) arising out the use of or inability to use the product, whether or not
replacement of any products or rework charges) whether or not such based on tort (including negligence), strict liability, breach of contract, breach
damages are based on tort (including negligence), warranty, breach of of warranty or any other theory, even if advised of the possibility of such
contract or any other legal theory. damages.
Notwithstanding any damages that customer might incur for any reason Notwithstanding any damages that customer might incur for any reason
whatsoever, NXP Semiconductors’ aggregate and cumulative liability whatsoever (including without limitation, all damages referenced above and
towards customer for the products described herein shall be limited in all direct or general damages), the entire liability of NXP Semiconductors, its
accordance with the Terms and conditions of commercial sale of NXP affiliates and their suppliers and customer’s exclusive remedy for all of the
Semiconductors. foregoing shall be limited to actual damages incurred by customer based on
Right to make changes — NXP Semiconductors reserves the right to make reasonable reliance up to the greater of the amount actually paid by
changes to information published in this document, including without customer for the product or five dollars (US$5.00). The foregoing limitations,
limitation specifications and product descriptions, at any time and without exclusions and disclaimers shall apply to the maximum extent permitted by
notice. This document supersedes and replaces all information supplied prior applicable law, even if any remedy fails of its essential purpose.
to the publication hereof.
Suitability for use — NXP Semiconductors products are not designed, 8.3 Licenses
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 Purchase of NXP ICs with NFC technology
malfunction of an NXP Semiconductors product can reasonably be expected Purchase of an NXP Semiconductors IC that complies with one of the Near
to result in personal injury, death or severe property or environmental Field Communication (NFC) standards ISO/IEC 18092 and ISO/IEC 21481
damage. NXP Semiconductors and its suppliers accept no liability for does not convey an implied license under any patent right infringed by
inclusion and/or use of NXP Semiconductors products in such equipment or implementation of any of those standards. Purchase of NXP
applications and therefore such inclusion and/or use is at the customer’s own Semiconductors IC does not include a license to any NXP patent (or other
risk. IP right) covering combinations of those products with other products,
whether hardware or software.
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 8.4 Trademarks
specified use without further testing or modification.
Notice: All referenced brands, product names, service names and
Customers are responsible for the design and operation of their applications trademarks are property of their respective owners.
and products using NXP Semiconductors products, and NXP
MIFARE — is a trademark of NXP B.V.
Semiconductors accepts no liability for any assistance with applications or
customer product design. It is customer’s sole responsibility to determine MIFARE Classic — is a trademark of NXP B.V.
whether the NXP Semiconductors product is suitable and fit for the
MIFARE Ultralight — is a trademark of NXP B.V.
customer’s applications and products planned, as well as for the planned
application and use of customer’s third party customer(s). Customers should DESFire — is a trademark of NXP B.V.
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
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
9. List of figures
AN11022 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2018. All rights reserved.
10. Contents
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in the section 'Legal information'.