From a1115c78f4a09429434bc6176a032534f9385eb7 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Tue, 3 Nov 2020 01:52:19 -0800 Subject: [PATCH] sample faster --- firmware/analog_input.cpp | 2 +- firmware/wideband_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/analog_input.cpp b/firmware/analog_input.cpp index 2720c5d..c3dda05 100644 --- a/firmware/analog_input.cpp +++ b/firmware/analog_input.cpp @@ -16,7 +16,7 @@ ADCConversionGroup convGroup = nullptr, ADC_CFGR1_CONT | ADC_CFGR1_RES_12BIT, // CFGR1 ADC_TR(0, 0), // TR - ADC_SMPR_SMP_28P5, // SMPR + ADC_SMPR_SMP_7P5, // SMPR ADC_CHSELR_CHSEL0 | ADC_CHSELR_CHSEL1 | ADC_CHSELR_CHSEL2 }; diff --git a/firmware/wideband_config.h b/firmware/wideband_config.h index 1750602..fc1d974 100644 --- a/firmware/wideband_config.h +++ b/firmware/wideband_config.h @@ -4,7 +4,7 @@ #define VCC_VOLTS (3.3f) #define HALF_VCC (VCC_VOLTS / 2) #define ADC_MAX_COUNT (4095) -#define ADC_OVERSAMPLE 16 +#define ADC_OVERSAMPLE 24 // ******************************* // Nernst voltage & ESR sense