#define HAL_ADC_CHN_TEMP 0x0e /* Temperature sensor */
#define HAL_ADC_CHN_VDD3 0x0f /* VDD/3 */
以上两个ADC转换的通道,分别是CC2541上的哪两个引脚啊?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
// Configure ADC and perform a read
HalAdcSetReference( HAL_ADC_REF_125V );
adc = HalAdcRead( battServiceAdcCh, HAL_ADC_RESOLUTION_10 );
// ADC channel to be used for reading
static uint8 battServiceAdcCh = HAL_ADC_CHANNEL_VDD;
#define HAL_ADC_CHANNEL_VDD HAL_ADC_CHN_VDD3
你好Martin,这是我跟踪到的battMeasure中的代码,如果HAL_ADC_CHN_VDD3 没有外接引脚,这里的HalAdcRead是通过哪个外部引脚读取到的battery的电量信息的?