PN5180 register read error by default

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

PN5180 register read error by default

3,121 Views
liumanjinkobe
Contributor I

Hello,

Now i cann't get the right value from any register use command 0x04.

I think the busy line is right.

I describe my trouble in attachment in detail.

Thanks for your help.

Liu

 

 

Labels (1)
Tags (2)
0 Kudos
Reply
6 Replies

2,915 Views
jimmychan
NXP TechSupport
NXP TechSupport

The content of the register is returned in the 4 byte response.

0 Kudos
Reply

2,915 Views
liumanjinkobe
Contributor I

Hello,

Yes, but i cann't get the right response.

0 Kudos
Reply

2,915 Views
jimmychan
NXP TechSupport
NXP TechSupport

I saw you only receive one byte.

According to the datasheet, this is the recommendation for the BUSY line handling by the host:
1. Assert NSS to Low
2. Perform Data Exchange
3. Wait until BUSY is high
4. Deassert NSS
5. Wait until BUSY is low

Have you try to read/write the other register? e.g. system_config

0 Kudos
Reply

2,915 Views
liumanjinkobe
Contributor I

The BUSY line is used to indicate that the system is BUSY and cannot receive any data
from a host. Recommendation for the BUSY line handling by the host:
1. Assert NSS to Low
2. Perform Data Exchange
3. Wait until BUSY is high
4. Deassert NSS
5. Wait until BUSY is low

i want to know Perform Data Exchange is send 0x04+0x00+32bit response or only send 0x04.

Because after i send 0x04,the busy has become high.

0 Kudos
Reply

2,915 Views
jimmychan
NXP TechSupport
NXP TechSupport

Yes, when BUSY is high, need to deassert the NSS.

0 Kudos
Reply

2,915 Views
liumanjinkobe
Contributor I

Yes,other registers are 0xffffffff also.

Now i want to send 0x04 command to get the 32bit of 0x00 register.

After send 0x04, i can find busy line has become high,Now i want to know if i should Deassert
NSS to let  busy line recover low.And then i can send 0x00  to get the response.

For i know if busy line is high,PN5180 cann't get 0x00 data.

Thanks.

0 Kudos
Reply