Forum / MIFARE and NFC Reader IC`s / RC522 tag detection interrupt
Tagged: RC522 RFIC Interrupt
-
Hi everyone,
I have been struggling for the better part of the day on getting the interrupt working properly on the RC522 for card detection...
If I understand the datasheet properly the MFIN (MIFARE Signal Input) should be set high when a card is detected, therefore the code I have written is as shown below (based on MFRC522 Mbed library). I have tried to change the registers and I can get interrupts to be triggered (the AlertLo for instance is high if I enable all the interrupts in ComIEnReg).
RfChip.PCD_Init();
RfChip.PCD_WriteRegister(MFRC522::ComIEnReg, 0b10110000);
RfChip.PCD_WriteRegister(MFRC522::DivIEnReg, 0b10010000);
RfChip.PCD_WriteRegister(MFRC522::ComIrqReg, 0x7F); // Clear interrupts
RfChip.PCD_WriteRegister(MFRC522::DivIrqReg, 0x7F);
Would anyone have any suggestions on how to trigger an interrupt when a card is detected next to the reader? I might have been missing something but the datasheet contains little useful information regarding the handling of interrupts. Any code sample showing this working would be appreciated (whatever microcontroller it has been coded for)
Best regards,
Simon
+ 0 | - 0
Hi, did you find a solution?
+ 0 | - 0
Hi,
No I didn't, I haven't worked this in a while but I was still hoping for someone to reply to this. I've seen many people online trying to get the interrupts to work but I don't think i've seen one person succeeding ...
Best,
Simon
+ 0 | - 0
By the way. I believe you have to write 0x00 into ComIrqReg and DivIrqReg inorder to clear interrupts.
+ 0 | - 0
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.