I2C Sequence to get tag detection working using amplitude measurement
Hi,
We are using the ST25R3916 on a custom board.
I'm trying to get the wake up mode working using amplitude measurement.
AN5320 shows the sequence to get this working.
I can measure the amplitude and everything seems to work, but when I enable the wake up mode no interrupt gets fired every 800ms.
Let me explain how I do it:
First perform C1 direct command to stop everything.
Then I write to registers 00 and 01 my hardware configuration (3V3 etc)
Next enable oscillator by writing 0x80 to register 02
Wait for interrupt and read register 16
Then direct command D3 for amplitude measurement
Wait for interrupt and read register 16
Read the ADC output register 25 (in my case 0x8A)
Write this value (0x8A) to register 34 (reference amplitude)
Next register 33 with the value 0x10 -> delta AM = 1
Next i setup register 32 with the value 0x7C (800ms and IRQ everytime + enable wam)
Last step set register 02 to value 0x04 -> osc of and Wakup on
After this I never get an interrupt (which should happen every 800ms?)
What am I missing? Will be something obvious probably...
Marvin
