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
Did you do DPC Calibration and set up to 15 gears in that device? Please kindly refer to https://www.nxp.com/docs/en/application-note/AN11742.pdf and https://www.nxp.com/docs/en/application-note/AN11741.pdf for details.
Hope that helps,
Have a great day,
Kan
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------