NTAG 5 Communication with PNEV7462C Board Using NFC Cockpit
I just started using PNEV7462C to read and write in NTAG5 Registers. In my first example i wanted to configure the GPIO_0 and GPIO_1 as Inputs. and As i read the Register A0 i expected that both GPIOs change the status.
The commands i used in Tx data without flags are as followed :
C1A10022AF00 --> GPIO_Mode / plain Input
C1A30C000000 --> GPIO_0 and GPIO_1 as Input
C0A00 --> when i connect the GPIOs to Vcc (5v in this case i used a breadboard and some jumpers for this set up) the card response i get is : 03C80000 but I'm expecting 03D80000 ( GPIO1_IN_STATUS bit didn't change ) i tried many configurations like disabling the recievers , and use just the GPIO_1 as Input but the GPIO1_IN_STATUS bit in register A0 still don't change at all though I'm connecting it to Vcc.
Can someone help me with this problem.
Thank you in Advance.
Hello,
I've checked this configuration using NTAG 5 NFC Cockpit GUI without any issues.
Please check the User Manual for NTAG 5 NFC Cockpit.
You will need to connect the PN7462 with the Cockpit firmware, and when opening the NTAG 5 Cockpit, you need to have both boards connected by USB and both antennas connected. Then the NTAG 5 Cockpit should open the configuration panel as shown in section 4; NTAG 5 NFC Cockpit GUI.
In the log panel you should see the next log, after a proper configuration:
> Writing configuration register PWMGPIO0:
NFC >> 22 C0 04 00 00 00 00 00 00 00 E0 39 00
NFC << 00 0C 00 00 00
Read configuration block 39h = 0C 00 00 00
NFC >> 22 C1 04 00 00 00 00 00 00 00 E0 39 00 04 00 00 00
NFC << 00
Write configuration block 39h = 04 00 00 00
After the configuration, you should be able to read the NTAG 5 with the PN7462 in the same NTAG 5 NFC Cockpit GUI and should get the next response at the log window.
> Reading configuration register PWMGPIO0:
NFC >> 22 C0 04 00 00 00 00 00 00 00 E0 39 00
NFC << 00 04 00 00 00
Read configuration block 39h = 04 00 00 00
With this, you will have your GPIO0 configuration.
Please notice the next table for a better understanding of the frame sent:
22 |
Flag |
C0 |
Read Config |
04 |
Manuf ID |
00 |
UID |
00 |
UID |
00 |
UID |
00 |
UID |
00 |
UID |
00 |
UID |
00 |
UID |
E0 |
UID |
39 |
PWM_GPIO_ CONFIG_0 |
00 |
|
I strongly recommend you that perform the configuration this way, before creating a full application using the PN7462
I hope this information may have been useful
Dear @Fabian_R
Thank you very much for your detailedanswers it helped me a lot configuring the GPIOs. Just another question should be the NTAG5 power supplied in this case ?
Thanks in advance.
Greetings,
Hello!!
Yes, it should.