mesh8266 ADC采样问题

Discussions on BLE related products, including standard BLE devices, BLE mesh, and Apple HomeKit products
Post Reply
Shining_Camwen
Posts: 12
Joined: Sat May 13, 2017 3:45 pm

Sun Jul 14, 2019 9:09 pm

问题描述:
1:源码中的宏已打开,代码如下:
#define ADC_SET_CHN_ENABLE 1
#if ADC_SET_CHN_ENABLE

#define ADC_CHNM_ANA_INPUT FLD_ADC_CHN_C7
#define ADC_CHNM_REF_SRC ADC_REF_AVDD

#define PC7_INPUT_ENABLE 1
#define PC7_OUTPUT_ENABLE 0
#define PC7_FUNC AS_GPIO
#define PC7_DATA_OUT 0

#ifdef PULL_WAKEUP_SRC_PC7
#undef PULL_WAKEUP_SRC_PC7
#endif
2.ad采样读取到的数值换算和用万用表测量的值不一样,而且读取到的数值变化范围特别大,我想知道是什么原因造成的,是io外围电路少了什么或者是软件还有什么是需要自己配置的吗?
Post Reply