From 18aa477a5588eff5db1ac44e89818aa67a3cb3eb Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 14 Feb 2018 21:45:36 +0100 Subject: [PATCH] chg: 'lf cmdread' -adjustments, @marshmellow42 --- armsrc/lfops.c | 12 +++++++----- armsrc/lfsampling.c | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/armsrc/lfops.c b/armsrc/lfops.c index bebb8ce33..d140c77a3 100644 --- a/armsrc/lfops.c +++ b/armsrc/lfops.c @@ -67,15 +67,17 @@ void ModThenAcquireRawAdcSamples125k(uint32_t delay_off, uint32_t period_0, uint // use lf config settings sample_config *sc = getSamplingConfig(); - //clear read buffer + // Make sure the tag is reset + FpgaDownloadAndGo(FPGA_BITSTREAM_LF); + FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); + WaitMS(2500); + + // clear read buffer BigBuf_Clear_keep_EM(); LFSetupFPGAForADC(sc->divisor, 1); - // Trigger T55x7 in mode. - FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); - - // And a little more time for the tag to fully power up + // little more time for the tag to fully power up WaitMS(2000); // if delay_off = 0 then just bitbang 1 = antenna on 0 = off for respective periods. diff --git a/armsrc/lfsampling.c b/armsrc/lfsampling.c index 2925cefda..b66fb5243 100644 --- a/armsrc/lfsampling.c +++ b/armsrc/lfsampling.c @@ -250,7 +250,7 @@ uint32_t SnoopLF() { } /** -* acquisition of T55x7 LF signal. Similart to other LF, but adjusted with @marshmellows thresholds +* acquisition of T55x7 LF signal. Similar to other LF, but adjusted with @marshmellows thresholds * the data is collected in BigBuf. **/ void doT55x7Acquisition(size_t sample_size) {