Visitor II
October 2, 2018
Question
RFID EM4095 - Can't read
- October 2, 2018
- 0 replies
- 1000 views
I'm using RFID EM4095 with my STM32 microprocessor, i'm trying to read the RFID card but i always get bad synch
STM32 Clocks -> 16MHZ ,32KHZ
DMOD_OUT ->PB3, rdyclk -> PA15
I'm using 2 interrupts for DMOUD_OUT, RDY_CLK signal
Algorithm
1.wait for falling edge on DMOD_OUT and disable DMOD_out interrupts and enable RDYCLCK interrupts.
- wait for 16 rising edges on RDYCLK.
- get 1 bit from dmod out
- wait for 32 rising edges on RDYCLK.
- get 1 bit from dmodout (check this bit with it's predecessor (bit==predessor? bad_sync=1))
- repeat 4 and 5 for 127 bits.
