CLRC663 Quick Start Guide Datasheet by NXP USA Inc.

View All Related Products | Download PDF Datasheet
Om
AN11022
CLRC663 Evaluation board quick start guide
Rev. 1.528 May 2018
205915
Application note
COMPANY PUBLIC
Document information
Info
Keywords
evaluation board, CLRC663 customer board, CLRC663 GUI, GUI,
CLRC663 Support Tool, NFC Cockpit
Abstract
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.
AN11022 hng://www.nxg.com
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
2 of 42
Contact information
For more information, please visit:
http://www.nxp.com
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
AN11022
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
3 of 42
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.
1.1 CLRC663 registers and EEPROM concept
The CLRC663 uses internal registers to adapt and optimize the functionality and
performance for each of the supported protocols and data rates dependent on the
connected antenna, matching network and receiver path. It offers an EEPROM, which
contains the default settings for all the supported protocols (locked). These settings are
loaded into the registers with the LoadProtocol command for each supported protocol
and data rate.
The default EEPROM configuration settings are optimized for the generic use, based on
the 65mmx65mm antenna of the board CLEV6630A / CLEV6630B, and cannot be
updated by the user as such. Individual settings must be overwritten by the host µC after
the LoadProtocol.
Alternatively, customized settings can be used for the major relevant registers in an extra
EEPROM area. Then the command LoadReg must be used to copy the customized
EEPROM content into the registers.
Some of these settings can or even must be adapted towards a new antenna design
(e.g. the Rx settings).
Some EEPROM configuration data is independent from the used protocols and defines
e.g. the startup behavior of the CLRC663 or the functionality of LowPower Card detection
and requires attention as well for optimum performance of the chip.
1.2 CLEV6630A / CLEV6630B concept
The basic concept of the CLEV6630A / CLEV6630B is to enable the user to perform a
quick evaluation of the CLRC663, and also connect his own antenna to the CLRC663
board. In addition, dedicated boards which allow to solder custom matching components
are available. The NFC Cockpit can be used to optimize the CLRC663 antenna tuning, to
perform the related TX and Rx optimization without touching any source code.
All the relevant CLRC663 registers can be modified and fine-tuned using the NFC
Cockpit. For the most relevant registers the customized settings can typically be stored in
the CLRC663 EEPROM.
AN11022
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
4 of 42
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).
2.1 Hardware introduction
The CLRC663 is supplied with a supply voltage, which can be chosen between: internal
and external supply. For the internal supply either 5V or 3.3V can be used. The external
power supply can be an AC or DC supply (polarity does not matter) with at least 7.5V,
since the board provide a rectifier and LDO to supply the circuit with 5V and 3.3V.
The CLRC663 is connected to an NXP LPC1769 µC via SPI. A specific firmware on the
LPC1769 allows to use the CLEV6630A / CLEV6630B together with the NFC Cockpit.
The connection to the PC is done via USB: USB Micro connectors are supported. The
use of the shielded USB cable is required to meet the FCC/CE specifications.
Another connection option allows to connect a LPC-LINK2 board the CLEV6630A /
CLEV6630B by means of a debug cable. This allows the development of custom
software or the execution of the NFC Reader Library code including samples.
In case a different host microcontroller shall be used, the SPI interface is available for
connection to an external host (the on board LPC1769 is not used in this case).
AN11022 .a 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
5 of 42
(1) The CLEV6630A looks identical, but with a red PCB.
Fig 1. CLEV6630B Customer Evaluation Board
Fig 2. CLEV6630B top view
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 LPC1769
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
6 of 42
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 JTAG INTERFACE .ssv 43v
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
7 of 42
a. JTAG Interface
b. Serial EEPROM not assembled
Fig 4. JTAG interface and Serial EEPROM
2.2.2 Power supply
The default settings use the power supply from the USB connector. For the maximum
performance and a better test capability the external power supply should be connected.
The AC or DC power input can cover any power supply providing an AC or DC voltage
between 7.5 and 12V.
AN11022 «v powzn sumv .3 av POWER suwu mm .7" w ’mcfifl—‘Ll— ‘ iiw: ~'"‘ : ~_L-.a
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
8 of 42
(1) USB supply, external supply & and LPC1769 supply
Fig 5. Power supply
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 + + + + + r++++++++s + + + ++++++++ +15 + + + M” + GM) + (9 . 135v Dc Em ‘ H + 53 5», “we + + 4 i +:::+ lej gfimfi +++++.I twat E mmg an, >+m + C1Wvus-EXT m'“+ -?+++¢ 0° Rm moi Ho WD'J ++++ terns: fl 1 . f5§gEEEEEE| + . I I3” ' ; cm; 0 \C350 ' Eff ' I . g I -r= ‘ $3I l' ' :3 .- é. : .a 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
9 of 42
(1) J101: power selection; J303: VDD selection; J300 TVDD selection
Fig 6. CLEV6630A / CLEV6630B jumpers
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 CLRCSSS ccccccc
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
10 of 42
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.
Fig 7. CLEV6630A / CLEV6630B CLRC663
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 (2 mm) ANTENNA 65 X 65mm MATCHING m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
11 of 42
(1) Default tuning
Fig 8. CLEV6630B antenna circuit
The “asymmetricaltuning (see Fig 9) is a compromise to provide optimum power
transfer and good wave shapes in combination with good loading effects, which
automatically reduce the field strength under strong loading conditions.
The CLEV6630A antenna tuning is the same as the tuning of the CLEV6630B, except
these differences:
1. C307 = C320 = 12pF
2. C316 = C317 = 33pF
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 cm cerier 13580901MHX 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
12 of 42
a. CLEV6630A
b. CLEV6630B
Fig 9. CLEV6630A / CLEV6630B antenna tuning
2.3 Jumper settings
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
Fig 10 shows the default jumper settings for operation powered via USB.
Fig 11 shows the jumper setting for the operation externally powered.
AN11022 "9990707060 , , ,, ,, O O O O O O O 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
13 of 42
(1) Default settings, power supply via USB
Fig 10. CLEV6630A / CLEV6630B default jumper settings
AN11022 00— D N O DOODOOO O O O O :7 O O O ;' nooooo 00000000 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
14 of 42
(1) External power supply: V 7V
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.
3.1 LPC Firmware and Driver
The LPC firmware is installed by default on the CLEV6630A / CLEV6630B and is ready
to use. No LPC firmware installation is required, if the board is only used with the NFC
Cockpit.
However, the LPC1769 might be used for software development together with one of the
NXP software examples (including the NFC Reader Library). In such case the LPC FW
must be re-installed afterwards, if the CLEV6630A / CLEV6630B is supposed to be used
together with the NFC Cockpit again. Reason for this is that any software development
using the LPCXpresso will erase the default firmware. The use and re-installation of the
LPC firmware using the LPCXpresso is described in [5].
In any case the correct PC VCOM driver must be installed, before the NFC Cockpit can
be used with the CLEV6630A / CLEV6630B evaluation board. This driver needs to be
AN11022 Note lor QOSS le future NFC Cocky ugdaies fl: Adi- Vb: "Q dutmfllmhfl . a- mum . »Q m... <9 mm="" n...“="" »="" 0="" mm="" m“="" a="" an...“="" »="" ,u="" car-mum="" a.“="" .="" \_.="" m="" m="" »="" i;="" mm="" m="" .a;="" mum...“="" mm="" »="" q="" mun/ann="" mm»,="" »="" .2,="" mn,="" km="" 4="" mm="" dynmxmmm="" nm‘="" hm="" q="" men-m="" a="" mum:="" mmwmngaam="" »="" 5="" w="" 9="" mark-mpg;="" .="" 7="" pan:="" (cw="" 5="" my="" v?="" in="" ”mm="" mm)="" w="" mkathnvchomm="" _="" b="" wm="" ,="" vmmo“.="" »="" 3="" sun-«mm="" y="" 5.1mm.”="" 9...="" mm="" »="" (:-="" wmwmlm="" ,="" ,-="" ”may“="" »="" :-="" lwfienxnmnmww="" m="" 42="">
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
15 of 42
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].
3.1.2 LPC Driver installation
Before the first connection of the CLEV6630A / CLEV6630B (with LPC firmware) to the
PC, the driver must be installed with
\Name of the GUI package\VCOM\install_vcom.bat
After successful installation of the driver, the CLEV6630A / CLEV6630B can be
connected to the PC and will show up as VCOM device on a COM port, as shown in Fig
12.
Note for possible future NFC Cockpit updates: Please make sure to use latest driver
version, otherwise the application might not work correctly. In case of doubt re-install the
driver of the corresponding NFC Cockpit package.
(1) CLEV6630A / CLEV6630B connected to the PC, driver properly installed.
Fig 12. NFC Cockpit VCOM driver
AN11022 .. er maximum] WW mm m an \ = a m wry-mm um wavy my: 3 2 H Stu-M flame-Knuth! Irwin-mm m 2. .2. .2 2 2 m m \2 2 2 m m \2 2 2 m m \2 2 2 x2. x2. x2 2 2 x2. x2. x2 2 2 m ‘2‘ :Rx:§sn:fi:=:a=a= 2 DDDDDDDDDDDDDDDDDDDDDDDDDDDDUBDE mow-aw. in. law: mu: .2. [mswsflhw ”mm "M w m: M -wmmncu — [mm] "mm M2224 .2. “I. Izmnws Iklkmeur-mm mummnufiufi; lmuzulz mums Klimmmhfigw’ujufilR-d 2.22. [Edam-n: 2.... m mums Iklimmmh’urmfi.‘ 2.22. [Edam-m sum/Mam. ‘5 ‘7va mm mm‘ [7mm [7... . mmm-Kmmwagnmn Note‘ .2 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
16 of 42
3.2 NFC Cockpit
The NFC Cockpit can be installed and started (see Fig 13).
(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.
AN1 1022 - wmw'm/mwvwwu mm ' ‘ ‘L‘L MW...— m (:E “W lug-mm.“ Lm am mum V m m mmu‘ um Mnunrsxsm mam... . m... V16 1m hum Ins-.9... sew-mm: _ DEL-am lmsmmm m nsmm um i mm W m --...w m wxmmmwmnm: m _@ Ewan umgfl En] mm,“ m NM... 3mm." Mm“... wnwluumumz‘mmmwehmmmvmuu mnmuluumumwmwmzun—MLVMM mm mm mnuuos WHMWSWWME-anmmhm:mmm [animusImlmmmwumjmnmmmmAln Mm." mmmnmwmwwumwwmmw. 7. mnmsmummumum fawn—warm Wummmm, a woMJmsez “mom” :me {:M, . nmvan ‘ 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
17 of 42
(2) 0x60 = Get Version command of MIFARE DESFire EV1
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.
(7) <Load Protocol> (e.g. type A 106)
(8) <Single REQA> (using again the EEPROM settings)
Note: The EEPROM of the CLRC663 is locked for all the LoadProtocol area.
AN11022 Note umflcwwlwmmn um um mnunmsm mum“. an.“ |:. m Sam-mama ’msm @ mum mum ' .1.» ATS: nns'ml one my] wmmmmmm Dunn-mm mum...“ mm»..- MW— mum mwllm mum MIW‘. m1vab—scmwmwvh m unmanmmummwrmxmsmn Mm." knows wwwmmwmnn m alumnmmmxmwwvwm mmmurw W7MIWMMWWW,WMH m Mafia-mum mum )le_uun-u w... mm vw mums m7mmflm m mmmumz m \E Miamwumcw. V 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
18 of 42
3.2.1 CLRC663 Register access
The NFC Cockpit allows the reading and writing of all the CLRC663 registers (see Fig
15).
Selecting a register reads and shows the hexadecimal content as well as the
corresponding bit values. The input allows to change each bit separately as well as
writing hexadecimal values. Writing back the value changes the CLRC663 register.
A help function automatically shows a short description of the (part of the) registers itself,
if the mouse is moved over the names.
Note: Some register content cannot be changed manually (“read only”) and some
content might be overwritten by the LPC firmware.
(1) Registers are temporary stored, i.e. might be overwritten with Load Protocol.
Fig 15. CLRC663 register access
AN11022 —mm~m was-w mum: mum m an“, m um; um mow..." m.“ am mm. mm . maul \rxa-me—v/ [MOMS-gelwahm‘ “.4: fl \ l—ktsfiyul \ mm. mum ”“‘ "“‘°‘"“ 7 M -m Tm“ [mm] mm. mam m. I“. Wmlun Iswnsmnwmngmam Iqmrknmmlrmgmivaluw rauuun linlmmhgmmmfiamw n-gmrmuvjmuum v... ms rauuun lin1mmhgm§gmdfiuamw Hm mmmm mmu mum mnlvtwflxugmmatfizm wmumummwms |ml1nu§nmlnnmhgmmnmam .qmmmmnu mm...“ mums mummmmwmmnm ”m mum Wluun rhunnxmnnpwmwuxukmvmm hats! (mam, mum mauMmKRI-gmmmuuahm Mm mwmm mum rauuun maunymmhgmmmmuamn Hm mmumzxvax m mum lumvtwflxugmmatfizm mam muzanzl hwmlz mums mlrzygmmlqmr—mjmzm Hm mm may v... n. mums mnsmmmmmifltnmh, 5w I...“ .k , n a... : Muss Wluun ummmmkxnnm sum. hula-d w... um Xmas; \hm ‘5 N7th Rm Eu paw TM m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
19 of 42
3.2.2 CLRC663 analog and digital test signals
The NFC Cockpit allows to route the CLRC663 digital test signals to the SIGOUT pin, as
well as to unlock and route the CLRC663 analog test signals to testpins AUX1 and
AUX2, as shown in Fig 16.
The digital test pin SIGOUT can be found at the J301 (pin row), while the analog signals
are routed to two test pads as close to the CLRC663 as possible (below the antenna
tuning area).
Fig 16. CLRC663 analog and digital test signals
After selecting the signals <Route Test Signal> activates the chosen test signals at the
chosen test pins.
3.2.3 CLRC663 Low power card detection
The NFC Cockpit allows the configuration and test of the Low Power Card Detection
(LPCD) of the CLRC663 as shown in Fig 17. The offered LPCD functionality depends on
AN11022 Note‘ .. ermcoxmum/Wnnmmz mm mumwnmwgw M: El m awn...” 0m 1E“ m, :W w,“ mm ._, ”mi MW.” Wm “Em mm. my.“ Wm M, ,, WW ,, WW ., WW ., ML“, ,, v m a, M mmxmummngmm a M w \I EEEEEEEEEEEEEEEEEEEEEEEEE- My...“ )X‘rleklm “DOW” [mmflm Mm" W Tm Tum [mm] mm. mew I .p h. I“. Wmlun mmllflmxhgmmgmam “my mmjlém mum rmlum mummmmmmunmmam mm ”Mm rmlum maunxmnvypan-uumvmm mm WWW. mlmmnubmwflxugmmqwfizm IngmrwaK-nan v-mzlnu mums nnlnymmhgmemnrmam new, mmflmv..._z mums mmmm‘gfimgmam new, mammal v.|.:naz Wluun unimnwmmdmam “my momma! V... min mum Iknlmnvmnh,xumhg mam mum. mmm Innlnwkmmmjcnlmgnw ngl W m. , Izmnws lumnwnxwmwxfiwwaum Wu; mun mums mnlwmwmmm “MM-.1“, ”mm, mums mnazmlowtnusszv—Mu win 5.... mmmn Wluun unlmnwmmmwwu mm»; mm ~ hum mm m, , memzmmakmmmmhmm ‘5 mm mm W m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
20 of 42
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.
(1) LPCD had been started.
Fig 17. CLRC663 LPCD
3.2.4 Secondary Firmware options: EMVCo Loopback application
The NFC Cockpit offers the option to flash (“load”) and start applications into the LPC µC.
The default application is an EMVco Loopback function, but other samples are provided
within the NFC Cockpit delivery package.
Each application can be easily flashed into the LPC by pressing the <Load Secondary
Firmware>. The application then defines the user commands, as indicated in the NFC
Cockpit.
The Fig 18 shows the default with the EMVCo Loopback which can be started and
stopped.
AN11022 v—anscoxmuw/Wnnmmzmmu mumwnmwgw ‘= E' “ ”Ml-“.m- mm Wm; my kmmrymm was-w mum use “WW 7 km firm-am Yul m mum M. in 4 . m. :1 msmmnm mm] \| a M m ,y 5m, m mm... mm MM mm m- —mm impwm‘ mm} mm. nmam mum. minusnumnwuxuvmmunwsamammuuutx . Izmnws nubnnwnxvywmwaaulm!mm hauls! mm», “11111115Itnlnlmmnqwmngmamlq‘urmmjmfiu mm...“ mums Ilnlflymlahgméemnjmilk‘ new, mmflmnv... m: lmnmm ulhlmkxmmmgflnam “my massmt mum Wluun unimnwmmdmam “my momma; V... min rmlum Inn}mn¥mm,mumhg mm nan-1v“.- mmws Innlnwuxvmmflhnluw aw m m. mmm lumnwnxwmwxfiwmama Wu; Ivan mums mzuzmmwmmmw N.“ a“, M an, mu .m, mums mxuxmlawtnusszv—Mu win 5.... Nam-cum lmnmm umlxmkxwtnntfiwiu mm mm Wluun unlxmnwtnntmwiu mm 5.... = xum ~ mum was; my , mmom=m [mm 5-9: M «(as ‘ ‘ ‘5 wire“ mg m m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
21 of 42
(1) Flash and start the EMVCo application
Fig 18. NFC Cockpit with EMVCo Loopback App
AN11022 Note:
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
22 of 42
4. First time use
Make sure the LPC1769 is flashed with the correct Secondary FW (default after delivery).
Check [5] in case, the CLEV663 had been used with customized code before, and the
proper secondary firmware has to be flashed.
4.1 Jumper settings
The default jumper settings allow a direct use with the USB connector only. This might
show limited performance due to a current limitation on the USB host. So for real
performance measurements the external power supply should be used.
4.1.1 USB only
The jumper settings as shown in Fig 10 provide the default settings, using only USB for
power supply (no external supply required).
4.1.2 External power supply
For the use of an external power supply the jumper J101 must be changed as shown in
Fig 11.
The external power supply must provide a voltage level of Vext = 7… 12V with 500mA.
For some of the analog tests (i.e. measuring ITVDD) it might be useful to only power the
TVDD supply externally. This can be done using the jumper JP300, as shown in Fig 19.
Either the jumper can be replaced with a DC ampere meter to measure the ITVDD, or an
external 5Vdc power supply can be directly connected to the center pin of JP300.
Note: Several GND pins are provided on the board. They all are connected to the same
GND plane.
AN11022 ++++++++++++++++++++++++ Gm 51+ +1? C‘BfifiEt I If . + xerna suppyo + 7—135vuc + 3'] TVDD + 5 + imam; >55“! + + | us an +VDD?+ ..'$++++ GD 82” IIIJ Dun-m . . . “ca 3 -- DDR‘OZ J‘m J BOO 4! + + 4- - a $353 1 E § ' . E IMB O I u v I u o 5““ no: a I+ + E - ICZOOE CJD} . - ICJSO +++ ' +++ . + + +++ . 92W kg g I o + I w + + ' ' + F 1a + 9. m . ”3‘54. 4| Q + Q \ \ . |:| ‘5”9”. mo . . »_o_ § R g. E . WESET I + 7 E B 30/2 3 mgmmmzmgg‘m fix ‘ . 0 o I o u n o . .a 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
23 of 42
(1) JP300 can be used to externally supply TVDD.
Fig 19. CLEV6630A / CLEV6630B jumper settings with external TVDD
5. Managing the CLRC663 SW projects with MCUXpresso IDE
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
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
24 of 42
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.
5.1 Development environment
To use CLEV663 prepared software package all components listed in the Table 1 are
required.
Table 1. Development Environment
Item
Version
Description
CLEV6630A /
CLEV6630B
1.0 or higher
CRC663 Customer Evaluation board (hardware)
LPC-Link 2
1.0
Standalone debug adaptor (hardware)
MCUXpresso IDE
10.0.0 or higher
Development IDE (PC software)
5.2 Installation procedure of the MCUXpresso IDE
The MCUXpresso IDE is installed into a single directory, of your choice. Unlike many
software packages, the MCUXpresso IDE does not install or use any keys in the
Windows Registry, or use or modify any environment variables (including PATH),
resulting in a very clean installation that does not interfere with anything else on your PC.
Should you wish to use the command-line tools, a command file is provided to set up the
path for the local command window.
Multiple versions can be installed simultaneously without any issues.
The installation starts after double-clicking the installer file.
AN11022 Isa...) , McuxmmlDE ENE”? Wmmm Mnmimmflmnflwhmpmsmm Wmmmmmmmmum MIMMMWWJEm-dmnufiln law lmfia‘wuflmmkmu Mmmunmm \J‘mmmmdmvs fl a Mmmmmmmu4mwmmmm Wm WM 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
25 of 42
Fig 20. Check box for NXP debug drivers
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.
Fig 21. Windows security dialog
After the setup wizard, has finished, the newly installed IDE can be launched.
AN11022 completinn me Mcllxmesso [DE set-In Wizard 2-. mgr-“mull" mm 111th my... 0. "u..- m..,,..a.».,,..mw m ” Manhattan 2 momma—mm n 4 m Inn-mummy: 1: mm 7 “mm. n. x... u... pm} m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
26 of 42
Fig 22. MCUXpresso IDE
5.3 Importing provided SW example projects
The use of quick start panel provides rapid access to the most commonly used features
of the MCUXpresso IDE. Quickstart panel allows easy import projects, create new
projects, build and debug projects.
The sequence of installing the software projects is indicated:
Start the MCUXpresso IDE.
Open new or dedicated workspace
Select the option “Import project(s)” (see picture below).
Browse the zip archive.
MCUXpresso IDE unzips the software package.
The software package is ready for use.
AN11022 Ochks >3 m ‘ . a MKUXpressa IDE (rm Edition) . sun m. I New mum I Import SDK examvrefi). x mm mums; Wm M: We,“ fi / E: f? wa seumgs» mm all was u mm mm» m... mam fi ummwlmmmmmn am am mum mu... zvdlm W, a. “my“ m»... . nil-my mm pa. "an: animal m dummy um um (Men) on um um pm pm "me mm mm wmpolL-Im plus mm... Pm-Ikmiarwmm1m legacy mmplealenmmad. mm mm (w) m... PszammII-W (mo-um; rm mm E wcorm mam “he .«mmm um “#016911:er mm NXV wc Mama-mun; mm m: mdudume mm pun-9e: mm. m. x» mm «may by Ursula m: Em hmnn "HM mm mm mu) m awe, .m magnum; vome mmp‘mwn mm. Ntamme‘y, was 0.. mm. hcbwl m an... m. mm mm. «.1. mm mm mm www- m nu "ma-1m (’P) m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
27 of 42
Fig 23. Importing project (1)
In the Quickstart panel on the left-hand side, choose “Import projects(s)”.
Fig 24. Importing project (2)
Browse the desired package and click “Next”.
AN11022 Ihvm mmrsymmmwm, W,W.,Mm.wm. E wmaa-«mmu-mlormmm; mm. mm 4 mm 11 mummznmmnlwmumuwm A [—Wsemu , ‘m 1mm \ v mama (MENUS/I “mm IKijMJMWJNAUD‘Jo-Mdmn{Wm1708/) \ :mm WWW. umwsm gmuwmmsmmmwmmmm M mnms‘mWflqu memmmsmcama v Moeh».5mum¢¢>l.\§b(Nmul5wplmdwuson ‘ VmmhnhLmflumflwDwvaahnE-Lmo‘smvtmww v om. (WWWWM mm sens mammmm m. 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
28 of 42
Fig 25. Importing project (3)
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.
5.4 Building projects
Building projects in a workspace is a simple case of using the Quickstart Panel - ‘Build all
projects’. Alternatively, a single project can be selected in the “Project Explorer View” and
built separately. Note that building a single project may also trigger a build of any
associated library projects.
The project can be built as shown in the Fig 26.
AN11022 [é Projed Explolel 2x 51. Periphflaln L9H” Registers E Symbol Vie v 3 AniDocumenlalion l a DAL n 9 memos n z lpc,lmam,nxp,lpcxpmsm,1769 b % lp(,(llip,175x,ex ,slmplllledAvleVCa l» is Madllb_ New , l B Nlcvdlih. 601m, Open in Newme Copy cm+c Paste cm+v v is Madlle I Delele Dem, l 5 NknflihE Souvce r Mavem Rename. r2 lmpon. Expon. Build Project Clean Project . MCUX| Relresh r5 E? u: Quickslan Pa 1% ijen Explore! m 51, Pevipllemlso RH Regimls lEJSymbol , a Freckles , B lpc,board,nxp,lpcxprem,1769 » 5 Ipc_cmp_175x_6x » a Mad b_5implifiedAPl_EMVCo , s Nlcmllb,5impliliedAPLEMVCojnalog , B NlaalibjmpliliedAPLlso ‘ B NludlinEleaasicD'soavelyLoop . 6" Binaries - t NIGdIIbEleasicDiscovelyLaopaxf » [arm/la] , 9 [names > El DAL ~ 3 DebugLPC1769 m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
29 of 42
Fig 26. Building the project
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.
Fig 27. Figure title here
AN11022 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
30 of 42
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”.
5.5 Running and debugging a project
This description shows how to run the “NfcrdlibEx1_CasicDiscoveryLoop” example
application for the CLEV6630A / CLEV6630B evaluation development board. The same
basic principles will apply for all other examples. In cases where example will need
additional configuration this will be detailed described in the example description.
Initially CLEV6630A / CLEV6630B evaluation board needs to be connected to the
computer via LPC-Link 2, as shown in Fig 28.
Fig 28. CLEV6630B with LPC-Link 2
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 meckslanPaneHA w=mrr=wanarw ‘ «mum: #any E mcume IDE (Free Edition) - Stan m. I New plmea I Impcn SDK examp\e(s) . 3 Import pvojems', "om (II: system. i Build MadImmjaxmmsmverymup' [DebugLPCUfiS] / (lean Mm:ImExLaas-(Dlscoveryloon' [DebugLPC176'3] * Debug MadInbmjasucnucoveryloop' [DebugLPCUEB] Ill-mum gm avmmn scam. mum.” n Mam-y ‘MWMM .LSVIor-xecmng numMmML u r: beg ‘m HI mavnv (ng1 Wm mammgugm o mum mm mmmzxunsmum—Maw“; Inuukinfl mm mm armrnanrreabi'nc «mum D‘emury rtzmn . ums\mnsmmcmmwmms“mun.e.9,344..»kswujmmsgupgm um sm Mam 511: file usm nnashsu: 113m 3 511 u; um Kamlndl 35“ a 31 n; mm: human: 2 «a :2 a max 5mm mmm “7:le Mud])bEleusnDncm/nrylwp.ax! m. rrmrprimrdimzmry ”527mm Pnrfnrminx pnsbkwild gun: armrnunereabirsiu ‘NcrdlibExLBasirDiscmWluuvvaxf' ; arrnwzrabirabiww 70 binary “Mambmaaskoi m: dam hss an: m Fuzn-m: mm m 3m mm 1am: mmmzxuns[nsszmmauuxf 1A:ss:1s mum Flushed (ka awn-s) m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
31 of 42
Fig 29. Launch debug session
Fig 30. Successful compile
Select “LPC-Link 2” as a debug probe.
AN11022 .vmameu \ = E 3 mm m "9.: must mmflmkmmmmi Ava :hl- mun-d prob“ L m. “.mmm/m vw. mm: mun-gm. I MVUNKZCMSISVDAVVSIBZ DZGZIIKW hmétvvzr NXPSemK Hanrstuu SW mm mmmm “me/mums \v MprrzwlDE umsewnm (Msmwn mm H m "mum H Smfizlnmknmm Probemmammnx v hmmmvmymxm ummmmmmmm @ ox mm .mfluplthImJ'lvacv-lw ~ mashMmmlmmwvmkmunst-ncnmmon»:r wuxwuw as 7 |:‘_"\7 m. m" m, mm. mm W. 9mm m rmnm: mm m .1. ‘34.- “.04.“. u- . u. ‘5 \- nun ¢ 21 .4421“ . on. v- a. . um“ mm LL: » < “b="" ”dang"="" 1‘”="" in“="" n="" *="" .="" 2="" mmuanmexmle="" m="" [mxnsnmexwm="" -="" imam="" a="">
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
32 of 42
Fig 31. Select the launch configuration
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.
Fig 32. Debug project
In the console window application debug outputs of the execution can be seen.
AN11022 m Mm, m4. Eltmwb :m.‘ ‘4 w m m ”A,“ m.“ ‘z. 4 ‘n ‘7 7‘ nmmmmmmmaw mgmnm mo. (NWStmlcmlflA/nurs) mu Muhcmanl Nkvfllmhljammwtmmwwn [Mllxprzssa Semihnsfing mm consul: ‘ur‘ Ward“bExLBaskDiswx/erflval) Dehugwcfié? 52mm on pm 3331] Busunismuuylanp Ex-Inlz‘ Card «mum and adivated “mm-aw." mm)“, m. A Cam- 1 VII) m 5} 55 EA :1 11; sq sax ma mu: Typ: 2 Ya: //::define NXPBUILD_PHHAL_Hw_PN5189 m 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
33 of 42
Fig 33. Application printouts in Console window
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:
Run the program.
Step over C/C++ line.
Step into a function.
Stop the debugger.
Pause execution of the running
program.
Instruction stepping mode
(disassembly).
Fig 34. Debug Buttons
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
Running the projects with, or without FreeRTOS
AN11022 I am [an «twismmmmwcaww 13-51 wemmnm 5min; ‘ ‘ Remake A mm A 00. mm comm... mmm [Am] 7 am Vanabics Ermmnmznl 7 mg as ImlSImngs p [m hp. 9 mm mm in a...” Plus: a am: PM MC“ sen-ms T s mu ( (0mm... \’ Do not sezvcn 915mm (madam pmam fig! mm .5 mm F Pleumanly PE) acme: "m‘ ' B Pleplouxsor mum wmxscm a e in § 9 " “e" Q lnduds use mmm Em“? fi mm "1 W9 "'95 @ Demamng PNDmvERJmuaRcsalmAm us Wammgs coma: a yummy“; JEDUIL g Ammlxmre MCMODE m) ‘ 9 MC" “mm” imiugustmzuuummcmum B General a Armnccmve & Header: A vs Mcu um @ General v (2 |I| 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
34 of 42
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.
(1) Project properties -> Settings -> Preprocessor
Fig 35. Defining RTOS preprocessor symbols
6.1 Example 1 Basic Discovery Loop
The Discovery Loop is the entry point when starting to communicate with an NFC tag or
device. It scans the close environment for tags and devices of different technologies.
Example is implemented to work in POLL and LISTEN mode of the discovery loop.
Information (like UID, SAK, and Product Type for MIFARE product-based cards) of the
detected tags are printed out and it also prints information when it gets activated as a
target by an external initiator/reader. Whenever multiple technologies are detected,
example select first detected technology and resolve it.
In passive poll mode, Low Power Card Detection (LPCD) is enabled.
AN11022 liscuvely Loop Pull Mmh — Slate and Em)! Codes 5nd: Tech-lob" human mmpuwouounumgouflm . mm“manna“,smgnmmou, mmmmumxuuwmm.cjscmumnm«um mwyuclow CONFEJEXLIOLAJIAIE . am Nrmluhm » ‘duwjunfluduww,mAt,D5WJ~YILPoIMJDul. Applicalion m... «was mun! > 1 .himsdmLlnwauovflllmlschovy um», named, mmgamA-qm run—un- m,m, Jung—Mn may-magnu- sum: device Amvmd or Enor 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
35 of 42
Fig 36. Discovery Loop in Poll mode
The core function of this example is “BasicDiscoveryLoop_Demo()”, where initialization of
the NFC Reader library and polling for NFC technologies is implemented. After each
polling loop, application is checking polling result and printout information about the
detected tags or devices.
This example is using default DiscoveryLoop configuration, which enables all supported
technologies and it is limited to one device for each technology.
Table 2. Supported technologies
ISO14443P3A
ISO15693- SLI
FeliCa
TYPEF_TARGET_PASSIVE
ISO14443P4A
ISO18000P3M3
TYPEA_TARGET_PASSIVE
TYPEF_TARGET_ACTIVE
ISO18092MPI
ISO14443P3B
TYPEA_TARGET_ACTIVE
AN11022
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
36 of 42
6.2 Example 2 Advanced Discovery Loop
Additionally, to Example 1 the Advanced Discovery Loop example explains the different
configuration options of the Discovery Loop and configure DiscoveryLoop with default
values based on the interested profile, NFC or EMVCo.
The configuration of the “DiscoveryLoop” is implemented in "LoadProfile()” function.
6.3 Example 4 MIFARE Classic
This example demonstrates how to configure “DiscoveryLoop” to poll for only one
technology and how to resolve detected card, in this example MIFARE Classic is used.
Once MIFARE Classic card is activated, application printout information like UID, ATQA
and SAK and perform the authentication with MIFARE Classic card default key. After
successful authentication, basic read/write operations are implemented.
This example is good start in case of working with only one card or to see how to
manage MIFARE Classic cards.
6.4 Example 5 - ISO15693
Similar to the previous example, this one is also using only one technology, in that case
ISO15693. DiscoveryLoop” is configured to resolve only one device and in the example
it is shown how to change Tx Guard Time for T5T cards, this is implemented in
“phApp_Init()” function.
Once ICODE SLI is resolved and activated, application printout card information like type
of the card and UID, and it will read and write from/to the memory block.
This example is good start in case of working with only one card or to see how to
manage ISO15693 type of the cards.
For a much more extensive example, demonstrating the use of ISO/IEC 15693 and
ISE/IEC 18000-3 Mode 3 tags (ICODE SLI and ICODE ILT). In order to assure ICODE
SLI and ILT detection please check HAL digital delay define settings as described in
chapter 4.
6.5 Example 7 EMVCo Polling
The EMVCo Polling example it is demonstrated how to configure NFC Reader Library as
specified by EMVCo specifications and starts polling for EMVCo cards.
Once an EMVCo compatible card is resolved and activated, it demonstrates the
exchange of APDU commands. This example shall help the developers getting started
more quickly when working with EMVCo cards.
AN11022
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
37 of 42
6.6 Example 9 NTAG-I2C
The NTAG-I2C example demonstrates the use of special features which are supported
by NTAG-I2C. By using POLL mode of the discovery loop, example detect the NTag I2C
cards and displays detected tag information like UID, ATQA, SAK, Version info and
performPage Read and “PageWrite” commands.
For more details about the NTAG-I2C and its functionalities please consult the related
product page.
6.7 Example 10 MIFARE DESFire
The MIFARE DESFire example demonstrates how to use MIFARE DESFire EV1 cards.
Once MIFARE DESFire card is resolved and activated, it displays MIFARE DESFire
applications created by this example previously and it displays 32bit signed integer which
is incremented after each successful detection of tag.
In case no application is present on the tag, new application will be created with two new
files to hold NXPNFCRDLIB version used to create this application and another file to
hold 32bit signed integer.
Note: This example including the required modules of the NFC Reader Library is only
available via NXP Docstore.
6.8 Example 11 ISO10373 PCD
This example is used to perform ISO 10373-6 PCD compliance validation. This example
has to be executed in the DUT which has an ISO 14443 based PCD implementation.
The ISO 10373-6 test methods verifies the compliance to the ISO 14443 protocols. An
external tool like Micropross MP300 implements the test methods for the ISO 10373-6
and is used as the counterpart for this testing.
6.9 Test Example 12 RC663LPCD
This example is a test suite application to test CLRC663 LPCD. This test suite contains
test cases for CLRC663 HAL LPCD under different conditions. Test Cases comprises of
combinations of Digital Filter, Charge Pump and Detection Options. The
scenarios/combinations are as follows:
- Scenarios 1 ==> Digital Filter: Disabled; Charge Pump:
Enabled; Detection Option: NA
- Scenarios 2 ==> Digital Filter: Disabled; Charge Pump:
Disabled; Detection Option: NA
- Scenarios 3 ==> Digital Filter: Enabled; Charge Pump:
Disabled; Detection Option: Option 1
- Scenarios 4 ==> Digital Filter: Enabled; Charge Pump:
Disabled; Detection Option: Option 2
- Scenarios 5 ==> Digital Filter: Enabled; Charge Pump: Enabled;
Detection Option: Option 1
AN11022 Note:
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
38 of 42
- Scenarios 6 ==> Digital Filter: Enabled; Charge Pump: Enabled;
Detection Option: Option 2
- Scenarios 7 ==> In this scenario, the Calibration is performed
with the load on the antennae and the load is removed during
Lpcd Loop from the Antennae.
Note: Not all of the offered LPCD functions might work with the used CLRC66302 (in
case of using the CLEV6630A).
6.10 Simplified API EMVCo
This application will configure Reader Library as per EMVCo specification and start
EMVCo polling. This loop back application will send SELECT_PPSE command and is
used to test EMVCo.3.1a(L1) digital compliance. Simplified approach, after library
initialization, is using only three commands:
- phNfcLib_Activate()
- phNfcLib_Transmit()
- phNfcLib_Receive()
6.11 Simplified API EMVCo Analog
This example contains three mode of operations within itself for the user to choose as
below.
- EMVCo LoopBack Application
- Trans send Type A application
- Trans send Type B application
Above Application modes are used to perform EMVCo2.6(L1) Analog compliance
validation.
6.12 Simplified API ISO
This example is a reference application to demonstrate the usage of Simplified API with
ISO profile. Application contains example of Type A Layer 4, Type B Layer 4, MIFARE
DESFire, MIFARE Ultralight, MIFARE Classic, ISO5693 and ISO18000p3m3.
Example demonstrates how to use simplified API, which require, after successful library
initialization, only three commands:
- phNfcLib_Activate()
- phNfcLib_Transmit()
- phNfcLib_Receive()
AN11022 hug://www.nxg.com/groducts/:CLRCSBEOSHN hug://www.nxg.com/gages/:N FCVREADERVLIBRARY hnD://www.nXD.com/produms/schwarerandrmols/ runrtimersoftware/mcuxpressor softwarerandrtools/mcuxpressorintearatedrdevelopmentrenv‘wrcnmentr idezMCUXgressorlDE 42
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
39 of 42
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
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
40 of 42
8. Legal information
8.1 Definitions
DraftThe 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 liabilityInformation in this document is believed to
be accurate and reliable. However, NXP Semiconductors does not give any
representations or warranties, expressed or implied, as to the accuracy or
completeness of such information and shall have no liability for the
consequences of use of such information. NXP Semiconductors takes no
responsibility for the content in this document if provided by an information
source outside of NXP Semiconductors.
In no event shall NXP Semiconductors be liable for any indirect, incidental,
punitive, special or consequential damages (including - without limitation -
lost profits, lost savings, business interruption, costs related to the removal or
replacement of any products or rework charges) whether or not such
damages are based on tort (including negligence), warranty, breach of
contract or any other legal theory.
Notwithstanding any damages that customer might incur for any reason
whatsoever, NXP Semiconductors’ aggregate and cumulative liability
towards customer for the products described herein shall be limited in
accordance with the Terms and conditions of commercial sale of NXP
Semiconductors.
Right to make changesNXP Semiconductors reserves the right to make
changes to information published in this document, including without
limitation specifications and product descriptions, at any time and without
notice. This document supersedes and replaces all information supplied prior
to the publication hereof.
Suitability for use NXP Semiconductors products are not designed,
authorized or warranted to be suitable for use in life support, life-critical or
safety-critical systems or equipment, nor in applications where failure or
malfunction of an NXP Semiconductors product can reasonably be expected
to result in personal injury, death or severe property or environmental
damage. NXP Semiconductors and its suppliers accept no liability for
inclusion and/or use of NXP Semiconductors products in such equipment or
applications and therefore such inclusion and/or use is at the customer’s own
risk.
ApplicationsApplications that are described herein for any of these
products are for illustrative purposes only. NXP Semiconductors makes no
representation or warranty that such applications will be suitable for the
specified use without further testing or modification.
Customers are responsible for the design and operation of their applications
and products using NXP Semiconductors products, and NXP
Semiconductors accepts no liability for any assistance with applications or
customer product design. It is customer’s sole responsibility to determine
whether the NXP Semiconductors product is suitable and fit for the
customer’s applications and products planned, as well as for the planned
application and use of customer’s third party customer(s). Customers should
provide appropriate design and operating safeguards to minimize the risks
associated with their applications and products.
NXP Semiconductors does not accept any liability related to any default,
damage, costs or problem which is based on any weakness or default in the
customer’s applications or products, or the application or use by customer’s
third party customer(s). Customer is responsible for doing all necessary
testing for the customer’s applications and products using NXP
Semiconductors products in order to avoid a default of the applications and
the products or of the application or use by customer’s third party
customer(s). NXP does not accept any liability in this respect.
Export controlThis document as well as the item(s) described herein
may be subject to export control regulations. Export might require a prior
authorization from competent authorities.
Translations A non-English (translated) version of a document is for
reference only. The English version shall prevail in case of any discrepancy
between the translated and English versions.
Evaluation productsThis 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 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 NFC technology
Purchase of an NXP Semiconductors IC that complies with one of the Near
Field Communication (NFC) standards ISO/IEC 18092 and ISO/IEC 21481
does not convey an implied license under any patent right infringed by
implementation of any of those standards. Purchase of NXP
Semiconductors IC does not include a license to any NXP patent (or other
IP right) covering combinations of those products with other products,
whether hardware or software.
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.
MIFARE Classic is a trademark of NXP B.V.
MIFARE Ultralight is a trademark of NXP B.V.
DESFire is a trademark of NXP B.V.
AN11022
NXP Semiconductors
AN11022
CLRC663 Evaluation board
AN11022
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
Application note
COMPANY PUBLIC
Rev. 1.528 May 2018
205915
41 of 42
9. List of figures
Fig 1. CLEV6630B Customer Evaluation Board ......... 5
Fig 2. CLEV6630B top view ........................................ 5
Fig 3. LPC1769 ........................................................... 6
Fig 4. JTAG interface and Serial EEPROM ................ 7
Fig 5. Power supply .................................................... 8
Fig 6. CLEV6630A / CLEV6630B jumpers .................. 9
Fig 7. CLEV6630A / CLEV6630B CLRC663 ............. 10
Fig 8. CLEV6630B antenna circuit ............................ 11
Fig 9. CLEV6630A / CLEV6630B antenna tuning ..... 12
Fig 10. CLEV6630A / CLEV6630B default jumper
settings............................................................ 13
Fig 11. CLEV6630A / CLEV6630B jumper settings for
external power supply ..................................... 14
Fig 12. NFC Cockpit VCOM driver .............................. 15
Fig 13. NFC Cockpit Initial view with CLRC663
evaluation board ............................................. 16
Fig 14. NFC Cockpit with CLEV6630A / CLEV6630B:
Activation of a MIFARE DESFire EV1 card +
Get Version ..................................................... 17
Fig 15. CLRC663 register access ............................... 18
Fig 16. CLRC663 analog and digital test signals ........ 19
Fig 17. CLRC663 LPCD .............................................. 20
Fig 18. NFC Cockpit with EMVCo Loopback App ....... 21
Fig 19. CLEV6630A / CLEV6630B jumper settings with
external TVDD ................................................ 23
Fig 20. Check box for NXP debug drivers ................... 25
Fig 21. Windows security dialog ................................. 25
Fig 22. MCUXpresso IDE ............................................ 26
Fig 23. Importing project (1) ........................................ 27
Fig 24. Importing project (2) ........................................ 27
Fig 25. Importing project (3) ........................................ 28
Fig 26. Building the project ......................................... 29
Fig 27. Figure title here ............................................... 29
Fig 28. CLEV6630B with LPC-Link 2 .......................... 30
Fig 29. Launch debug session .................................... 31
Fig 30. Successful compile ......................................... 31
Fig 31. Select the launch configuration ....................... 32
Fig 32. Debug project .................................................. 32
Fig 33. Application printouts in Console window ......... 33
Fig 34. Debug Buttons ................................................ 33
Fig 35. Defining RTOS preprocessor symbols ............ 34
Fig 36. Discovery Loop in Poll mode........................... 35
AN11022
NXP Semiconductors
AN11022
CLRC663 Evaluation board
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. 2018. All rights reserved.
For more information, visit: http://www.nxp.com
Date of release:
28 May 2018
205915
Document identifier:
AN11022
10. Contents
1. Introduction ......................................................... 3
1.1 CLRC663 registers and EEPROM concept ........ 3
1.2 CLEV6630A / CLEV6630B concept ................... 3
2. Hardware .............................................................. 4
2.1 Hardware introduction ........................................ 4
2.2 Schematics......................................................... 5
2.2.1 LPC1769 ............................................................ 6
2.2.2 Power supply ...................................................... 7
2.2.3 CLRC663 ........................................................... 9
2.3 Jumper settings ................................................ 12
3. Software ............................................................. 14
3.1 LPC Firmware and Driver ................................. 14
3.1.1 LPC Firmware installation ................................ 15
3.1.2 LPC Driver installation ...................................... 15
3.2 NFC Cockpit ..................................................... 16
3.2.1 CLRC663 Register access ............................... 18
3.2.2 CLRC663 analog and digital test signals ......... 19
3.2.3 CLRC663 Low power card detection ................ 19
3.2.4 Secondary Firmware options: EMVCo Loopback
application ........................................................ 20
4. First time use ..................................................... 22
4.1 Jumper settings ................................................ 22
4.1.1 USB only .......................................................... 22
4.1.2 External power supply ...................................... 22
5. Managing the CLRC663 SW projects with
MCUXpresso IDE ............................................... 23
5.1 Development environment ............................... 24
5.2 Installation procedure of the MCUXpresso IDE 24
5.3 Importing provided SW example projects ......... 26
5.4 Building projects ............................................... 28
5.5 Running and debugging a project .................... 30
6. Associated projects .......................................... 33
6.1 Example 1 Basic Discovery Loop .................. 34
6.2 Example 2 Advanced Discovery Loop ........... 36
6.3 Example 4MIFARE Classic .......................... 36
6.4 Example 5 - ISO15693 ..................................... 36
6.5 Example 7 EMVCo Polling ............................ 36
6.6 Example 9 NTAG-I2C .................................... 37
6.7 Example 10 MIFARE DESFire ...................... 37
6.8 Example 11 ISO10373 PCD .......................... 37
6.9 Test Example 12 RC663LPCD ...................... 37
6.10 Simplified API EMVCo ...................................... 38
6.11 Simplified API EMVCo Analog .......................... 38
6.12 Simplified API ISO ............................................ 38
7. References ......................................................... 39
8. Legal information .............................................. 40
8.1 Definitions ......................................................... 40
8.2 Disclaimers ....................................................... 40
8.3 Licenses ........................................................... 40
8.4 Trademarks ...................................................... 40
9. List of figures ..................................................... 41
10. Contents ............................................................. 42

Products related to this Datasheet

EVAL BOARD FOR CLRC663