As NFC reader library 5.12 also supports PN5180, switching the NFC frontend from CLRC663 to PN5180 is quite easy based on previous porting. The porting also includes the hardware settings and software modification.
- Hardware Setup for porting:
a) Remove resistors on PNEV5180B to disconnect the onboard lpc1769 from PN5180, following steps on page 16 of https://www.nxp.com/docs/en/application-note/AN11908.pdf
b) Connect LPCXpresso board for LPC11U37 with PNEV5180 as below:
- Software Modification for porting:
1. Make a copy of Board_Lpc11u37Rc663.h , and change its name to "Board_Lpc11u37Pn5180.h", and import it into the DAL/boards folder.
2.Change the source code in the header file as below:
3. Add two more pins' definition and configuration for BUSY and DWL pins of PN5180, and new configuration for reset pin.
and modify the reset logic:
4.Change the IRQ interrupt trigger type to rising edge.
5.Include this header file in BoardSelection.h
6.Add this new configuration in ph_NxpBuild_App.h
7.Add this new configuration in phApp_Init.h
8.Add this new configuration in ph_NxpBuild_Platform.h
9.Add this new configuration in Settings.
- Testing result: