From cb67feee197b17c7ca6e9f4316122598b9518c3d Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 17 Jan 2020 17:06:46 +0100 Subject: [PATCH] documentation --- armsrc/hitag2.c | 1 + armsrc/lfadc.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/armsrc/hitag2.c b/armsrc/hitag2.c index 158ffa095..0e56918a5 100644 --- a/armsrc/hitag2.c +++ b/armsrc/hitag2.c @@ -1326,6 +1326,7 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) { } LED_D_ON(); + hitag2_init(); // init as reader diff --git a/armsrc/lfadc.c b/armsrc/lfadc.c index eaaa38631..3e15fdc0b 100644 --- a/armsrc/lfadc.c +++ b/armsrc/lfadc.c @@ -155,7 +155,11 @@ void lf_init(bool reader) { FpgaSetupSsc(); // When in reader mode, give the field a bit of time to settle. - if (reader) SpinDelay(50); + // 313T0 = 313 * 8us = 2504us = 2.5ms Hitag2 tags needs to be fully powered. + if (reader) { + // 50 ms + SpinDelay(50); + } // Steal this pin from the SSP (SPI communication channel with fpga) and use it to control the modulation AT91C_BASE_PIOA->PIO_PER = GPIO_SSC_DOUT;