Thread 中讨论的其他器件: BLE-STACK
工具/软件:TI C/C++编译器
您好, YiKai Chen
uint16 adc=0;
P0SEL = 0x00;
P0DIR = 0x00;
P0INP = 0xFF;
APCFG = 0xC0;
ADC = HalAdcRead (HAL_ADC_CHN_VDD3、HAL_ADC_Resolution_12);//P0.7
printf ("adc:%d\n"、adc);
我将获取输出为
ADC:4.
ADC:3.
ADC:2.
ADC:1.