PN5180 SPI protocol takes a long time
Posted: Mon May 08, 2023 1:34 am
Hi, I implemented an iso15693 inventory16 command on an esp32 controller using Arduino IDE AND a PN5180 nfc reader.
It works well, although collisions happen. But i had to delay the flow control 1ms after asserting NSS before wait for busy pin high. If i didnt that it doesn't work.
The problem Is the inventory take almost a second for few tags. This Is a long time for my application.
I tried delayMicroseconds with values under 1000us, but it didn't work either, inventory fails.
Pn5180 datasheet say nothing about this. The protocol Is
1. Assert NSS to low
2. Performa data exchange
3. Wait until BUSY Is high
4. Deassert NSS
5. Wait until BUSY Is love
I had to code a delay 1ms between 1 AND 3 in order to algorithm works. I don't know why but it works with 1000us delay, it doesn't work with 990us delay, no matter how many tags are in the field.
Has anyone had this problem?
Any help. Thanks in Advance.
It works well, although collisions happen. But i had to delay the flow control 1ms after asserting NSS before wait for busy pin high. If i didnt that it doesn't work.
The problem Is the inventory take almost a second for few tags. This Is a long time for my application.
I tried delayMicroseconds with values under 1000us, but it didn't work either, inventory fails.
Pn5180 datasheet say nothing about this. The protocol Is
1. Assert NSS to low
2. Performa data exchange
3. Wait until BUSY Is high
4. Deassert NSS
5. Wait until BUSY Is love
I had to code a delay 1ms between 1 AND 3 in order to algorithm works. I don't know why but it works with 1000us delay, it doesn't work with 990us delay, no matter how many tags are in the field.
Has anyone had this problem?
Any help. Thanks in Advance.