sample faster

This commit is contained in:
Matthew Kennedy 2020-11-03 01:52:19 -08:00
parent 3d80ff1d8b
commit a1115c78f4
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ ADCConversionGroup convGroup =
nullptr, nullptr,
ADC_CFGR1_CONT | ADC_CFGR1_RES_12BIT, // CFGR1 ADC_CFGR1_CONT | ADC_CFGR1_RES_12BIT, // CFGR1
ADC_TR(0, 0), // TR ADC_TR(0, 0), // TR
ADC_SMPR_SMP_28P5, // SMPR ADC_SMPR_SMP_7P5, // SMPR
ADC_CHSELR_CHSEL0 | ADC_CHSELR_CHSEL1 | ADC_CHSELR_CHSEL2 ADC_CHSELR_CHSEL0 | ADC_CHSELR_CHSEL1 | ADC_CHSELR_CHSEL2
}; };

View File

@ -4,7 +4,7 @@
#define VCC_VOLTS (3.3f) #define VCC_VOLTS (3.3f)
#define HALF_VCC (VCC_VOLTS / 2) #define HALF_VCC (VCC_VOLTS / 2)
#define ADC_MAX_COUNT (4095) #define ADC_MAX_COUNT (4095)
#define ADC_OVERSAMPLE 16 #define ADC_OVERSAMPLE 24
// ******************************* // *******************************
// Nernst voltage & ESR sense // Nernst voltage & ESR sense