ATrappmann / PN5180-Library

PN5180 library for Arduino
GNU Lesser General Public License v2.1
105 stars 92 forks source link

BUSY line does not become inactive #16

Closed anyousib closed 5 years ago

anyousib commented 5 years ago

My issue is not related to this library, but I hope somebody can help me. I'm plugging PN5180 module to Raspberry Pi and use your library as the basis. According to datasheet BUSY line goes to IDLE when PN5180 is able to receive a new frame or data is available. 2019-08-16_11-51-27 But I get a problem. After receiving the first byte (0x04 - instruction "read register") PN5180 assert "busy" line to high and hold it. 2019-08-15_16-54-59 (2) Also I tried to pause for 100ms after each byte, but it didn't help. Busy line is still high. 2019-08-15_16-55-46 (2) What I doing wrong?

anyousib commented 5 years ago

I got it. I did not notice that the NSS line should be set to HIGH for a couple milliseconds after sending the instruction and before receiving the answer 2019-08-23_10-57-28