Using PN7160 only through I²C pinout.

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

Using PN7160 only through I²C pinout.

Jump to solution
1,450 Views
Jansch
Contributor II

For our product we only have 2 free pins we could use for the PN7160 NFC board. One SDA and one SCL. As a proof of concept I am trying to run the polling example (nfcDemoApp poll) with the eval kit only connected through I²C (aswell as power). Is there a possibility to do so? I have so far tested it with and without the interface board without success. I just need to proof that I don't need the Interrupt pin, which in my knowledge I shouldn't need when polling. Advice would be greatly appreciated!

 

Also furthermore the starter guide is not 100% correct, the example doesn't work on Raspberry Pi 5 with Bookworm installed.

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,325 Views
Daniel_Gutierrez
NXP Employee
NXP Employee

Hello @Jansch, Good Day!

Please consider that our recommendation is to follow the guidelines for the handling of those pins described in the referred document, given that with any other way of handling we cannot ensure a proper functionality of the device.

However, if you do not require to download upgrades for the EEPROM of the PN7160, you could consider not handling the DWL_REQ pin and just have it connected to GND, given that this pin is only used when such an upgrade will take place. Please refer to section 11.5.4 of the PN7160/PN7161 Data Sheet.

On the other hand, dynamic handling of the VEN reset pin is recommended, since in possible power-up sequences, it needs to be LOW for at least 10 μs before pulling up and starting the boot process to make host communication possible (see Table 36 in the same document).

Please make sure that any test you make, you do it based on the documentation we have provided. You may refer to the sections mentioned above and Figures 20 to 25 to get a deeper understanding of the possible power-up sequences.

 

My best regards,
Daniel.

View solution in original post

4 Replies
1,428 Views
Daniel_Gutierrez
NXP Employee
NXP Employee

Hello @Jansch, Good Day!

Thank you very much for your interest in our products.

It is important to mention that some of the steps for software setup described in PN7160 evaluation kit quick start guide are meant to be executed only on the OM27160A1HN version of the board and some of them are meant for the OM27160B1HN version. Please make sure you are working with the OM27160A1EVK board, as this is the one that embeds the I²C variant of the PN7160.

I would like to ask if you could please provide more details about the names of the power pins that you are using, as well as if the GND pin is being connected? 

Keep in mind that in all cases the VEN reset pin, should be handled in order to make host communication possible. Also consider that pins such as DWL_REQ, which provides the possibility for firmware upgrades, and IRQ are equally as important in order to ensure data flow control between PN7160 and the host.

Please refer to section 11.5 of the PN7160/PN7161 Data Sheet to get a deeper understanding on how to handle those pins for the overall wellbeing of the system.

 

My best regards,
Daniel.

0 Kudos
Reply
1,361 Views
Jansch
Contributor II

Hey Daniel,

 

I was curious, do I have to set the pin actively to different states, or could I just put a set pullUp onto it?

0 Kudos
Reply
1,326 Views
Daniel_Gutierrez
NXP Employee
NXP Employee

Hello @Jansch, Good Day!

Please consider that our recommendation is to follow the guidelines for the handling of those pins described in the referred document, given that with any other way of handling we cannot ensure a proper functionality of the device.

However, if you do not require to download upgrades for the EEPROM of the PN7160, you could consider not handling the DWL_REQ pin and just have it connected to GND, given that this pin is only used when such an upgrade will take place. Please refer to section 11.5.4 of the PN7160/PN7161 Data Sheet.

On the other hand, dynamic handling of the VEN reset pin is recommended, since in possible power-up sequences, it needs to be LOW for at least 10 μs before pulling up and starting the boot process to make host communication possible (see Table 36 in the same document).

Please make sure that any test you make, you do it based on the documentation we have provided. You may refer to the sections mentioned above and Figures 20 to 25 to get a deeper understanding of the possible power-up sequences.

 

My best regards,
Daniel.

1,411 Views
Jansch
Contributor II

Hello Daniel,

 

I am asking because we have a size constraint board and nfc is an optional requirement, therefore we are trying to get it to work on our board without it being absolutely necessary.

The only way we could make this happen is, if we could use the PN7160 through I²C pins alone, meaning:

1) GND

2) Power

3) SDA

4) SCL

You mentioned I need to have the VEN pin connected. Therefore we sadly won't be able to work with NFC here. 

I do own the correct board. Through further research it seems like the Pi5 problem is a common one, and not yet fixed on NXP side. I found multiple posts in this forum suggesting so.

Either way I hope you have a great day!

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2036216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUsing%20PN7160%20only%20through%20I%C2%B2C%20pinout.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFor%20our%20product%20we%20only%20have%202%20free%20pins%20we%20could%20use%20for%20the%20PN7160%20NFC%20board.%20One%20SDA%20and%20one%20SCL.%20As%20a%20proof%20of%20concept%20I%20am%20trying%20to%20run%20the%20polling%20example%20(nfcDemoApp%20poll)%20with%20the%20eval%20kit%20only%20connected%20through%20I%C2%B2C%20(aswell%20as%20power).%20Is%20there%20a%20possibility%20to%20do%20so%3F%20I%20have%20so%20far%20tested%20it%20with%20and%20without%20the%20interface%20board%20without%20success.%20I%20just%20need%20to%20proof%20that%20I%20don't%20need%20the%20Interrupt%20pin%2C%20which%20in%20my%20knowledge%20I%20shouldn't%20need%20when%20polling.%20Advice%20would%20be%20greatly%20appreciated!%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAlso%20furthermore%20the%20starter%20guide%20is%20not%20100%25%20correct%2C%20the%20example%20doesn't%20work%20on%20Raspberry%20Pi%205%20with%20Bookworm%20installed.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2036216%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EContact%20Smart%20Card%20Reader%20ICs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2041947%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Using%20PN7160%20only%20through%20I%C2%B2C%20pinout.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2041947%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%2F241789%22%20target%3D%22_blank%22%3E%40Jansch%3C%2FA%3E%2C%20Good%20Day!%3C%2FP%3E%0A%3CP%3EPlease%20consider%20that%20our%20recommendation%20is%20to%20follow%20the%20guidelines%20for%20the%20handling%20of%20those%20pins%20described%20in%20the%20referred%20document%2C%20given%20that%20with%20any%20other%20way%20of%20handling%20we%20cannot%20ensure%20a%20proper%20functionality%20of%20the%20device.%3C%2FP%3E%0A%3CP%3EHowever%2C%20if%20you%20do%20not%20require%20to%20download%20upgrades%20for%20the%20EEPROM%20of%20the%20PN7160%2C%20you%20could%20consider%20not%20handling%20the%20DWL_REQ%20pin%20and%20just%20have%20it%20connected%20to%20GND%2C%20given%20that%20this%20pin%20is%20only%20used%20when%20such%20an%20upgrade%20will%20take%20place.%20Please%20refer%20to%20section%2011.5.4%20of%20the%26nbsp%3B%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%2FPN7161%20Data%20Sheet.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EOn%20the%20other%20hand%2C%20dynamic%20handling%20of%20the%20VEN%20reset%20pin%20is%20recommended%2C%20since%20in%20possible%20power-up%20sequences%2C%20it%20needs%20to%20be%20LOW%20for%20at%20least%2010%20%CE%BCs%20before%20pulling%20up%20and%20starting%20the%20boot%20process%20to%20make%20host%20communication%20possible%20(see%20Table%2036%20in%20the%20same%20document).%3C%2FP%3E%0A%3CP%3EPlease%20make%20sure%20that%20any%20test%20you%20make%2C%20you%20do%20it%20based%20on%20the%20documentation%20we%20have%20provided.%20You%20may%20refer%20to%20the%20sections%20mentioned%20above%20and%20%3CSTRONG%3E%3CI%3EFigures%2020%20to%2025%3C%2FI%3E%3C%2FSTRONG%3E%20to%20get%20a%20deeper%20understanding%20of%20the%20possible%20power-up%20sequences.%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%3CLINGO-SUB%20id%3D%22lingo-sub-2040684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Using%20PN7160%20only%20through%20I%C2%B2C%20pinout.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2040684%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHey%20Daniel%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20was%20curious%2C%20do%20I%20have%20to%20set%20the%20pin%20actively%20to%20different%20states%2C%20or%20could%20I%20just%20put%20a%20set%20pullUp%20onto%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2037035%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Using%20PN7160%20only%20through%20I%C2%B2C%20pinout.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2037035%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Daniel%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20am%20asking%20because%20we%20have%20a%20size%20constraint%20board%20and%20nfc%20is%20an%20optional%20requirement%2C%20therefore%20we%20are%20trying%20to%20get%20it%20to%20work%20on%20our%20board%20without%20it%20being%20absolutely%20necessary.%3C%2FP%3E%3CP%3EThe%20only%20way%20we%20could%20make%20this%20happen%20is%2C%20if%20we%20could%20use%20the%20PN7160%20through%20I%C2%B2C%20pins%20alone%2C%20meaning%3A%3C%2FP%3E%3CP%3E1)%20GND%3C%2FP%3E%3CP%3E2)%20Power%3C%2FP%3E%3CP%3E3)%20SDA%3C%2FP%3E%3CP%3E4)%20SCL%3C%2FP%3E%3CP%3EYou%20mentioned%20I%20need%20to%20have%20the%20VEN%20pin%20connected.%20Therefore%20we%20sadly%20won't%20be%20able%20to%20work%20with%20NFC%20here.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20own%20the%20correct%20board.%20Through%20further%20research%20it%20seems%20like%20the%20Pi5%20problem%20is%20a%20common%20one%2C%20and%20not%20yet%20fixed%20on%20NXP%20side.%20I%20found%20multiple%20posts%20in%20this%20forum%20suggesting%20so.%3C%2FP%3E%3CP%3EEither%20way%20I%20hope%20you%20have%20a%20great%20day!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2036721%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Using%20PN7160%20only%20through%20I%C2%B2C%20pinout.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2036721%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%2F241789%22%20target%3D%22_blank%22%3E%40Jansch%3C%2FA%3E%2C%20Good%20Day!%3C%2FP%3E%0A%3CP%3EThank%20you%20very%20much%20for%20your%20interest%20in%20our%20products.%3C%2FP%3E%0A%3CP%3EIt%20is%20important%20to%20mention%20that%20some%20of%20the%20steps%20for%20software%20setup%20described%20in%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN12991.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EPN7160%20evaluation%20kit%20quick%20start%20guide%3C%2FA%3E%20are%20meant%20to%20be%20executed%20only%20on%20the%20OM27160A1HN%20version%20of%20the%20board%20and%20some%20of%20them%20are%20meant%20for%20the%20OM27160B1HN%20version.%20Please%20make%20sure%20you%20are%20working%20with%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fpart%2FOM27160A1EVK%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EOM27160A1EVK%3C%2FA%3E%20board%2C%20as%20this%20is%20the%20one%20that%20embeds%20the%20I%C2%B2C%20variant%20of%20the%20PN7160.%3C%2FP%3E%0A%3CP%3EI%20would%20like%20to%20ask%20if%20you%20could%20please%20provide%20more%20details%20about%20the%20names%20of%20the%20power%20pins%20that%20you%20are%20using%2C%20as%20well%20as%20if%20the%20GND%20pin%20is%20being%20connected%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3EKeep%20in%20mind%20that%20in%20all%20cases%20the%20VEN%20reset%20pin%2C%20should%20be%20handled%20in%20order%20to%20make%20host%20communication%20possible.%20Also%20consider%20that%20pins%20such%20as%20DWL_REQ%2C%20which%20provides%20the%20possibility%20for%20firmware%20upgrades%2C%20and%20IRQ%20are%20equally%20as%20important%20in%20order%20to%20ensure%20data%20flow%20control%20between%20PN7160%20and%20the%20host.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20section%2011.5%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%2FPN7161%20Data%20Sheet%3C%2FA%3E%20to%20get%20a%20deeper%20understanding%20on%20how%20to%20handle%20those%20pins%20for%20the%20overall%20wellbeing%20of%20the%20system.%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