AnsweredAssumed Answered

PN5180 AGC_REF_CONFIG not writable

Question asked by Geoffrey Van Landeghem on May 29, 2019
Latest reply on Oct 30, 2019 by ahmed omar

Hi,

 

I've been testing the PN5180 paired with ST MCU. Until now I succeeded in getting r/w registers to work, r/w eeprom to work, scan Vicinity cards and r/w block data. However I fail to get the LPCD mode to work, more specifically because writing to register AGC_REF_CONFIG (0x26) fails. If for example I want to use gear 15 I'd write 0x003C00 to the register. Reading that registers afterwards doesn't however reflect that change: the gear is not changed. I'm confided that the "write register" code is not problematic since I'm perfectly able to read/write the IRQ_ENABLE register.

 

What action should I need to take so that I'm able to set the AGC gear in register 0x26?

 

I've been using a custom implemented library derived from https://github.com/ATrappmann/PN5180-Library.

 

Here is are some debug traces:

[DBG ][PN5180]: Write Register 0x26, value=0x00003C66

[DBG ][PN5180]: Sending SPI frame: '
[DBG ][PN5180]: 00
[DBG ][PN5180]:
[DBG ][PN5180]: 26
[DBG ][PN5180]:
[DBG ][PN5180]: 66
[DBG ][PN5180]:
[DBG ][PN5180]: 3C
[DBG ][PN5180]:
[DBG ][PN5180]: 00
[DBG ][PN5180]:
[DBG ][PN5180]: 00
[DBG ][PN5180]: '

[DBG ][PN5180]: Reading register 0x26...

[DBG ][PN5180]: Sending SPI frame: '
[DBG ][PN5180]: 04
[DBG ][PN5180]:
[DBG ][PN5180]: 26
[DBG ][PN5180]: '

[DBG ][PN5180]: Receiving SPI frame...

[DBG ][PN5180]: Received:
[DBG ][PN5180]: 84
[DBG ][PN5180]:
[DBG ][PN5180]: 00
[DBG ][PN5180]:
[DBG ][PN5180]: 00
[DBG ][PN5180]:
[DBG ][PN5180]: 00
[DBG ][PN5180]: '

[DBG ][PN5180]: Register value=0x00000084

LPCD Reference Value [0x00000084]: AGC Gear=0, AGC Value=0084

Outcomes