cancel
Showing results for 
Search instead for 
Did you mean: 

RFID EM4095 - Can't read

mbara
Associate

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.

  1. wait for 16 rising edges on RDYCLK.
  2. get 1 bit from dmod out
  3. wait for 32 rising edges on RDYCLK.
  4. get 1 bit from dmodout (check this bit with it's predecessor (bit==predessor? bad_sync=1))
  5. repeat 4 and 5 for 127 bits.

0 REPLIES 0