From c745aca701c3eda443234e9c9eeb07580450abb8 Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Tue, 6 May 2025 08:39:52 +0800 Subject: [PATCH] =?UTF-8?q?adc=E9=87=87=E6=A0=B7=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BSP/src/bsp_adc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BSP/src/bsp_adc.c b/BSP/src/bsp_adc.c index 3283f20..79e5537 100644 --- a/BSP/src/bsp_adc.c +++ b/BSP/src/bsp_adc.c @@ -37,6 +37,9 @@ uint8_t BSP_ReadVbat(void) DelayUs(50); ADC_ExcutSingleConver(); DelayUs(50); + ADC_ExcutSingleConver(); + DelayUs(1); + ADC_ExcutSingleConver(); for (i = 0; i < 20; i++) { adcBuff[i] = ADC_ExcutSingleConver(); // 连续采样20次