Forum / MIFARE and NFC Reader IC`s / PN512 / PN512 EXPLORE BOARD cannot read MIFARE CARD
-
Dear all.
I am write a C library using SPI communication for interface the Board NFC EXPLORE PN512 with a micocrontroller from 8 bit, 16 bit or 32 bit.
I do this because lot of pleople don't has Raspeberry or prefere use this Board with another MCU, like in my case.
After one week working in this projects I can manager the NFC EXPLORE register, for example, write and read the FIFO BUFFER, clear the configuration, transmitte data to RF anntena.
But I cannot send data to MIFARE card to read the UID or other data that is store in the card EEPROM.
Below is my code:
// THIS LINES OF CODE CONFIGURE THE DEVICE TO ENABLE RF ANTENA AND
EXPLORE_NFC_PN512_ControlReg(0x05);
EXPLORE_NFC_PN512_TxAutoReg();
EXPLORE_NFC_PN512_RxThresholdReg();
EXPLORE_NFC_PN512_RFCfgReg();
EXPLORE_NFC_PN512_GsNOnReg();
EXPLORE_NFC_PN512_TxControlReg();
// CLEAR THE FIFO BUFFER BEFORE WRITE THE COMMAND DO BE SEND TO RF
EXPLORE_NFC_PN512_Clear_Fifo_Buffer();
EXPLORE_NFC_PN512_WRITE_MB_INTO_FIFO_BUFFER(0x26); // value write 0x26h command do quest card
// NOW SEND THE FIFO CONTENT TO ANNTENA AND WAIT FOR MIFARE CARD RESPONSE
// IN THIS PARTICULAR CASE I WAITING FOR 04h 00h
EXPLORE_NFC_PN512_Start_Send();
EXPLORE_NFC_PN512_Transmit();
EXPLORE_NFC_PN512_Transceive();
_delay_cycles (50000);
nBytes=EXPLORE_NFC_PN512_GetFifoLevel(); // Get FiFo level
_delay_cycles (50000);
Please help...
+ 0 | - 0
Hi Nuno,
to support you on this topic we need to know which µC board you are using. When you are using a NXP µC this side might help you:
http://www.lpcware.com/content/project/lpcopen-platform-nxp-lpc-microcontrollers
Kind regards
Andreas
+ 0 | - 0
Dear Nuno,
I'm trying to use the PN512 with a AtMega16. For this I'm searching a library (I only want to read the UId).
Is it possible to use yours?
From where can I get it?
Kind Regards
Riccardo
+ 0 | - 0
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.