RFID-interrupt pin setup


building project using 2 arduinos, bough of them read rfid-tag , send uid-code other card threw nrf24l01 radio antenna. @ first, programmed in loop sequence started reading rfid, sending rfid on radio , @ last looking received radio. bough sending radio , reading rfid takes while. therefore, want use irq-pin on rfid-module bough of arduinos listening on radio until rfid-module interrupt , send uid-code. there knows how set irq-pin on rfid-module? use mrfc522 card reader , library github. code examples appreciated  :)

on datasheet:

quote
the mfrc522 indicates events setting status1reg register's irq bit and, if
activated, pin irq.
so irq must enabled:

quote
the mfrc522 can generate interrupt signal when:
• comienreg register's loalertien bit set logic 1. activates pin irq when
status1reg register's loalert bit changes logic 1.
• comienreg register's hialertien bit set logic 1. activates pin irq when
status1reg register's hialert bit changes logic 1.
if there isn't library activate irq need manually, writing in correct mfrc register


Arduino Forum > Community > Gigs and Collaborations > RFID-interrupt pin setup


arduino

Comments