background image

NXP Semiconductors

AN12550

PNEV5190B evaluation board quick start guide

Read EEPROM

Reads a single byte from EEPROM using byte address

Write EEPROM

Writes a single byte into EEPROM using byte address

Dump EEPROM

Stores the complete user area of the PN5190 EEPROM into an XML file. This can be

used to generate a backup of all settings or to transfer optimized settings onto another

board or into own software. It makes sense to save all default EEPROM settings into a

file, before modifying the EEPROM.

Load EEPROM

Loads an XML file and stores the content into the user area of the PN5190 EEPROM.

The format is fixed and must fit.

1. EEPROM means User area of the EEPROM

Figure 23. PN5190 direct EEPROM access

5.2.3 PN5190 analog and digital test signals

The NFC cockpit allows using the PN5190 internal test bus, to route the digital and

analog test signals to the given test pins. Details can be found in the CTS description.
The test pins can be found at TB0, TB1 and TB2.

5.2.4 PN5190 dynamic power control

The NFC Cockpit supports an easy and straight forward calibration of the DPC. All details

can be found in 

[2]

.

AN12550

All information provided in this document is subject to legal disclaimers.

© NXP B.V. 2021. All rights reserved.

Application note

Rev. 1.5 — 23 April 2021

COMPANY PUBLIC

562315

26 / 37

Summary of Contents for AN12550

Page 1: ...90B PNEV5190M PN5190 evaluation board PN5190 customer board PN5190 GUI GUI PN5190 support tool NFC Cockpit Abstract This document describes the PNEV5190B V1 0 PN5190 evaluation board and how to use it It describes the NFC Cockpit PN5190 GUI Version 5 5 0 or later which allows an easy basic access to the PN5190 registers and EEPROM in combination with basic reader functionality ...

Page 2: ...conductors Section 6 updated 1 4 20201218 Update of the software section 1 3 20200929 Update versions numbers for PN5190 CQS1 1 2 20200109 Figure 6 layout corrected 1 1 20191217 AN number corrected typos removed 1 0 20191128 First version Revision history AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 A...

Page 3: ...n efficient single command and allows distinguishing between transmit and receive configuration Update of the registers relevant for a selected protocol is done by copying the content of EEPROM addresses to registers Not all protocols require the initialization of all or the same registers the command LOAD_RF_ CONFIGURATION considers this by initializing the registers relevant for the currently se...

Page 4: ...ations In addition the optimized register settings 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 exampl...

Page 5: ...d provides a rectifier and LDO to supply the circuit with 6 V optional supply voltage 7 5 V 5 V 3 3 V and 1 8 V Warning The PN5190 in default configuration requires an external power supply i e the USB supply does not provide enough current The PN5190 is connected to a Kinetis K82 121BGA µC via SPI A specific firmware on the K82 allows using the PNEV5190B together with the NFC Cockpit The connecti...

Page 6: ...in Figure 2 and Figure 3 The PNEV5190M is soldered onto the PNEV5190B and contains the PN5190 itself and the major components as required to operate the IC e g the DC DC inductor the EMC filter and some block capacitors The layout of the module board can be taken as reference AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Applicat...

Page 7: ...ase board are shown in the following figures The more detailed reference data is available in 5 3 2 1 K82 The PNEV5190B uses a Kinetis K82 121BGA microcontroller Figure 4 An LPC Link can be connected to the K82 via the JTAG SWD interface see Figure 5 AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April ...

Page 8: ... interface is provided for debugging the K82 by using a Kinetis MK20DX128VFM5 Figure 6 Figure 4 K82 main schematics AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April 2021 COMPANY PUBLIC 562315 8 37 ...

Page 9: ...luation board quick start guide Figure 5 PNEV5190M interface AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April 2021 COMPANY PUBLIC 562315 9 37 ...

Page 10: ...e used if the DC DC is enabled default The DC power input can cover a DC voltage around 7 5 V with a current of at least 800 mA The polarity does not matter since there is a rectifier foreseen The inrush current of the DC DC can be up to 1 6 A when enabling the RF field AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application no...

Page 11: ...or supplying the PNEV5190M with VBAT The default configuration provides VBAT 3 3 V Optionally this voltage can be set to 4 8 V 2 U5 for supplying the VDDIO and the µC supply VDDIO_BRD MCU_VDD MCU_VDDA with 3 3 V This LDO is not used in default configuration 3 U6 for supplying the VDDIO and the µC supply VDDIO_BRD MCU_VDD MCU_VDDA with 1 8 V This LDO is used in default configuration 4 U7 for supply...

Page 12: ...ing the TX driver part Figure 8 PBEV5190B jumpers 3 2 3 PNEV5190M module board The PNEV5190M module board is shown in Figure 9 The module board contains the most relevant components directly connected to the PN5190 i e the EMC filter inductors the DC DC inductor the major block capacitors and the 27 12 MHz crystal The default clock is based on this 27 12 MHz crystal but the board supports the opti...

Page 13: ...schematics 3 2 4 PNEV5190 antenna The antenna connection uses the standard tuning circuit The EMC filter is designed with a cut off frequency of fEMC 14 25 MHz and the antenna impedance is tuned to Z 15 16Ω The details of antenna tuning are described in 2 AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 A...

Page 14: ...or which results in a higher field strength The disadvantage of the loading effect which causes an increased current ITVDD is compensated with the PN5190 Dynamic Power Control DPC for details refer to 3 For more details on the PN5190 antenna tuning refer to 2 PN5190 Antenna design guide Figure 11 PNEV5190B evaluation board antenna tuning AN12550 All information provided in this document is subject...

Page 15: ... a communication via SPI 3 5 Jumper settings The default jumper settings allow a direct use with the USB connector and an external power supply 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 3 5 1 USB only USB only no external power supply is not recommended at all Most USB Hosts cannot s...

Page 16: ... PN5190 FW 4 1 1 System requirements NFC Cockpit tool requirements The chapters below are describing the installation process of it PC with USB port running on Microsoft Windows 10 operating system VCOM CDC drivers drivers are available in the installation package Firmware download library requirements Secure FW upload demo application is available in the provided release package The demo applicat...

Page 17: ...urce and sends them to PN5190 IC via SPI interface 4 2 3 PN5190 The PN5190 is a highly integrated high performance full NFC Forum compliant frontend IC for contactless communication at 13 56 MHz PN5190 supports secure FW updates and guidelines are described in the next sections 4 3 Reference application NXP provides DownloadLibEx1 application as a reference example which demonstrates how to flash ...

Page 18: ...bug adapter hardware MCUXpresso IDE 11 2 0 or higher Development IDE PC software Table 2 Development Environment The next figure shows how to connect the PNEV5190B Development board with Segger J Link and PC The development board in this setup is powered by USB which is not recommended if the RF Front End is used Figure 14 System setup Before continuing it is necessary to download the latest PN519...

Page 19: ...s shown on the picture above and click the Finish button Figure 15 Import Secure Firmware Project to the MCUXpresso IDE 4 3 3 Build run and debug project After a successful project import check for the correct project configuration All three projects shall be configured for DebugFRDMK82F AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reser...

Page 20: ...d all projects That can be achieved by clicking the Build all projects in the Quickstart Panel The next step is to flash and debug the application Highlight the DownloadLibEx1 project in the Project Explorer window and click Debug in the Quickstart Panel as shown in the next figure The MCUXpresso IDE builds the application flash the application binary and starts with the debugging process AN12550 ...

Page 21: ...ritten in C programing language and it can be ported to any customer application running on the µC Secure download library contains an implementation of the platform SPI interface and HW configuration and this part of the library should be adopted in case it is used on any other platform It is highly recommended to use the secure download library in the customer application The table below lists a...

Page 22: ...grity Returns the integrity information of the existing firmware phDlhalHw_Pn5190_Download_ CheckSessionState Check and return the current download session state Table 3 API provided by secure download library AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April 2021 COMPANY PUBLIC 562315 22 37 ...

Page 23: ...s including the NXP NFC Reader Library In this case the K82 FW must be reinstalled afterwards if the PNEV5190B is supposed to be used together with the NFC Cockpit again Reason for this is that any software development using the MCUXpresso will erase the default firmware Therefore the K82 FW installation is described in the following section In any case the correct PC driver must be installed befo...

Page 24: ...ither the CRC is enabled or added manually in the data field 1 0x6a Get Application ID command of MIFARE DESFire EV1 Figure 21 PN5190 NFC Cockpit Activation of a MIFARE DESFire EV1 card Get Application ID 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_RF_CONFIG command must be executed manually before the correspon...

Page 25: ...moved over the names Note Some register content cannot be changed manually read only and some content might be overwritten by the PN5190 firmware 1 Register area is a RAM area i e might be overwritten or changed automatically Figure 22 PN5190 register access All registers which are used in the LOAD_RF_CONFIG command can be read from the EEPROM The user must select the register and the protocol All...

Page 26: ...e content into the user area of the PN5190 EEPROM The format is fixed and must fit 1 EEPROM means User area of the EEPROM Figure 23 PN5190 direct EEPROM access 5 2 3 PN5190 analog and digital test signals The NFC cockpit allows using the PN5190 internal test bus to route the digital and analog test signals to the given test pins Details can be found in the CTS description The test pins can be foun...

Page 27: ...C Cockpit with EMVCo loopback App 5 3 NFC Reader Library support of the PN5190 NXP provides a library to support users in developing an NFC application The library is available in the PN5190 SW release package NXP NFC Reader Library is written in C language and it is shared as source code Therefore it can be ported to almost any µC 5 3 1 Import library and demo application to the MCUXpresso IDE Th...

Page 28: ...er as a new workspace Figure 25 MCUXpresso IDE launcher The IDE starts and displays the welcome page 2 Import NFC Reader Library and demo applications Select Import projects from the Project Explorer window Figure 26 MCUXpresso IDE launcher AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April 2021 COMPA...

Page 29: ...pears Select General Existing Projects into Workspace and click Next button Figure 27 MCUXpresso IDE Launcher AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April 2021 COMPANY PUBLIC 562315 29 37 ...

Page 30: ...e screenshot above c Leave all options unchecked d Click Finish button to import selected projects Figure 28 Import selected projects to the Workspace 5 All imported projects shall be listed in the Project Explorer window Figure 29 NFC Reader Library projects AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 ...

Page 31: ...process starts automatically Figure 31 Adding SDK step 2 5 3 3 Build debug and run projects Provided NFC Reader Library project and demo application projects are pre configured to be used with the PNEV5190B v1 0 customer demo board As a next step all projects shall be built Select the Build all projects in the Quickstart Panel window Alternatively select Project Build to build only one project at ...

Page 32: ...de https www nxp com docs en application note AN12549 pdf 3 ANxxx PN5190 dynamic power control not yet available 4 UMxxx PN5190 software quick start guide not yet available 5 PNEV5190 reference data package schematics and layout AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April 2021 COMPANY PUBLIC 56...

Page 33: ...ustomer s third party customer s NXP does not accept any liability in this respect Export control This document as well as the item s described herein may be subject to export control regulations Export might require a prior authorization from competent authorities Evaluation products This product is provided on an as is and with all faults basis for evaluation purposes only NXP Semiconductors its...

Page 34: ...uide Kinetis is a trademark of NXP B V NXP wordmark and logo are trademarks of NXP B V AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April 2021 COMPANY PUBLIC 562315 34 37 ...

Page 35: ...5190M module supply pins 11 Tab 2 Development Environment 18 Tab 3 API provided by secure download library 22 AN12550 All information provided in this document is subject to legal disclaimers NXP B V 2021 All rights reserved Application note Rev 1 5 23 April 2021 COMPANY PUBLIC 562315 35 37 ...

Page 36: ...resso IDE 19 Fig 16 Import secure firmware project to the MCUXpresso IDE 20 Fig 17 Project Explorer Window 20 Fig 18 Flash and debug application 21 Fig 19 Application debug printouts 21 Fig 20 NFC Cockpit with PNEV5190B initial view 23 Fig 21 PN5190 NFC Cockpit Activation of a MIFARE DESFire EV1 card Get Application ID 24 Fig 22 PN5190 register access 25 Fig 23 PN5190 direct EEPROM access 26 Fig 2...

Page 37: ... reference project 18 4 3 3 Build run and debug project 19 4 3 4 Secure download library 21 5 Software 23 5 1 K82 firmware and driver 23 5 2 PN5190 NFC Cockpit 23 5 2 1 PN5190 register access 25 5 2 2 PN5190 direct EEPROM access 25 5 2 3 PN5190 analog and digital test signals 26 5 2 4 PN5190 dynamic power control 26 5 2 5 EMVCo loopback application 27 5 3 NFC Reader Library support of the PN5190 2...

Reviews: