PN7160 interfacing with ESP32 S3 MCU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PN7160 interfacing with ESP32 S3 MCU

2,184 Views
Chri-sy
Contributor I

I have developed an NFC reader based on the PN7160 and have not been able to progress with the firmware and make it work. I am interfacing it to ESP32 S3 MCU as the host controller. I have been using the attached material as reference but with no success: 
https://www.elechouse.com/product/pn7160-nfc-rfid-module/#tab-additional_information
The code seems to work fine but I could not read an NFC tag despite placing it above the antenna. See attached log 

Chrisy_0-1764168240735.png

 

I am writing this to request support on getting the PN7160 to work with ESP32 S3. Thank you

Tags (5)
0 Kudos
Reply
1 Reply

2,144 Views
Daniel_Gutierrez
NXP Employee
NXP Employee

Hello @Chri-sy, Good Day!

 

Unfortunately matters related to the use of third party hosts and modules are out of our support scope. However, I would suggest taking a look at section 11.2 of the PN7160 Data Sheet to get further details on the functional description of the I2C interface, and ensure a proper addressing of the device is taking place.

 

You could try basing your implementation on the available "PN7160 NXP-NCI MCUXpresso Example Project" which you can find at the product page. Please refer to the NXP-NCI2.0 MCUXpresso examples guide in which you will find a detailed description on how to use the examples with tools like MCUXpresso IDE , but it could be a good starting point.

 

I would also suggest referring to the manufacturer of the module to see if there is any software example available for the device.

 

My best regards,
Daniel

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2249601%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPN7160%20interfacing%20with%20ESP32%20S3%20MCU%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249601%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20developed%20an%20NFC%20reader%20based%20on%20the%20PN7160%20and%20have%20not%20been%20able%20to%20progress%20with%20the%20firmware%20and%20make%20it%20work.%20I%20am%20interfacing%20it%20to%20ESP32%20S3%20MCU%20as%20the%20host%20controller.%20I%20have%20been%20using%20the%20attached%20material%20as%20reference%20but%20with%20no%20success%3A%26nbsp%3B%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.elechouse.com%2Fproduct%2Fpn7160-nfc-rfid-module%2F%23tab-additional_information%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.elechouse.com%2Fproduct%2Fpn7160-nfc-rfid-module%2F%23tab-additional_information%3C%2FA%3E%3CBR%20%2F%3EThe%20code%20seems%20to%20work%20fine%20but%20I%20could%20not%20read%20an%20NFC%20tag%20despite%20placing%20it%20above%20the%20antenna.%20See%20attached%20log%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chrisy_0-1764168240735.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chrisy_0-1764168240735.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367429i71A0F477CCEE4CFC%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chrisy_0-1764168240735.png%22%20alt%3D%22Chrisy_0-1764168240735.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20am%20writing%20this%20to%20request%20support%20on%20getting%20the%20PN7160%20to%20work%20with%20ESP32%20S3.%20Thank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2249601%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EBoard%20Design%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ECommunication%20%26amp%3B%20Control(I3C%20%7C%20I2C%20%7C%20SPI%20%7C%20FlexCAN%20%7C%20Ethernet%20%7C%20FlexIO)%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249813%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7160%20interfacing%20with%20ESP32%20S3%20MCU%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249813%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257378%22%20target%3D%22_blank%22%3E%40Chri-sy%3C%2FA%3E%2C%20Good%20Day!%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EUnfortunately%20matters%20related%20to%20the%20use%20of%20third%20party%20hosts%20and%20modules%20are%20out%20of%20our%20support%20scope.%20However%2C%20I%20would%20suggest%20taking%20a%20look%20at%20section%2011.2%20of%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fdata-sheet%2FPN7160_PN7161.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPN7160%20Data%20Sheet%3C%2FA%3E%3CSPAN%3E%20to%20get%20further%20details%20on%20the%20functional%20description%20of%20the%20I2C%20interface%2C%20and%20ensure%20a%20proper%20addressing%20of%20the%20device%20is%20taking%20place.%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%3EYou%20could%20try%20basing%20your%20implementation%20on%20the%20available%20%22PN7160%20NXP-NCI%20MCUXpresso%20Example%20Project%22%20which%20you%20can%20find%20at%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fproducts%2FPN7160%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3Eproduct%20page%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E.%20Please%20refer%20to%20the%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN13288.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ENXP-NCI2.0%20MCUXpresso%20examples%20guide%3C%2FA%3E%3CSPAN%3E%20in%20which%20you%20will%20find%20a%20detailed%20description%20on%20how%20to%20use%20the%20examples%20with%20tools%20like%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fdevelopment-software%2Fmcuxpresso-software-and-tools-%2Fmcuxpresso-integrated-development-environment-ide%3AMCUXpresso-IDE%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%3CSPAN%3EMCUXpresso%20IDE%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%3E%20%2C%20but%20it%20could%20be%20a%20good%20starting%20point.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20would%20also%20suggest%20referring%20to%20the%20manufacturer%20of%20the%20module%20to%20see%20if%20there%20is%20any%20software%20example%20available%20for%20the%20device.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EMy%20best%20regards%2C%3CBR%20%2F%3EDaniel%3C%2FP%3E%3C%2FLINGO-BODY%3E