mesh8266 ADC采样问题

Discussions on BLE related products, including standard BLE devices, BLE mesh, and Apple HomeKit products
Post Reply
Shining_Camwen
Posts: 13
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外围电路少了什么或者是软件还有什么是需要自己配置的吗?
AaronZhan
Posts: 5
Joined: Fri Dec 01, 2017 3:43 pm

Fri Jul 19, 2019 11:02 am

您好,透過您的描述無法直接看出問題點。請問您的應用是否已正式立案? 若是,建議可找原銷售渠道或當地技術支持團隊提供進一步協助。
Shining_Camwen
Posts: 13
Joined: Sat May 13, 2017 3:45 pm

Sun Jul 28, 2019 1:49 am

对于该问题我已经解决了,不过有个问题就是,文档里面说基准电压有外部电源电压和1.3V可选,但是我配置成外部电源电压最终还是以1.3v作为基准电压,你们有测试过这个问题吗?
TL_tigeryang0203
Posts: 29
Joined: Wed Jul 19, 2017 8:04 pm

Fri Aug 09, 2019 2:44 pm

应该是配置方法的问题,选择电源电压,表标给芯片供电的VCC必须恒定不变。
Post Reply