From 621e6a6cf64b0f72a9dbf0c93304c156aba889ae Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Sat, 18 Nov 2023 05:47:22 +0000 Subject: [PATCH] MHP30 ADC Mode change --- source/Core/BSP/MHP30/Setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Core/BSP/MHP30/Setup.c b/source/Core/BSP/MHP30/Setup.c index 8eaaaf35..d0afb61c 100644 --- a/source/Core/BSP/MHP30/Setup.c +++ b/source/Core/BSP/MHP30/Setup.c @@ -123,12 +123,12 @@ static void MX_ADC1_Init(void) { /**Configure the ADC multi-mode */ - multimode.Mode = ADC_DUALMODE_REGSIMULT_INJECSIMULT; + multimode.Mode = ADC_MODE_INDEPENDENT; HAL_ADCEx_MultiModeConfigChannel(&hadc1, &multimode); /**Configure Regular Channel */ - sConfig.SamplingTime = ADC_SAMPLETIME_239CYCLES_5; + sConfig.SamplingTime = ADC_SAMPLETIME_71CYCLES_5; sConfig.Channel = TMP36_ADC1_CHANNEL; sConfig.Rank = ADC_REGULAR_RANK_1;