2020-03-13 19:23发布
tda1875 发表于 2015-4-26 11:42 我是用mc96f6432的,AD转换转失败,我配置ADCCRH = 0X13;(CKSEL 1:0)=0x03、(TRIG 2:0)=0x02,ADCCRL = 0X81 ...
最多设置5个标签!
P0FSRL|= B01000000; //P04:AN2
ADCCRH = B00000011; //左对齐 fx/8
ADCCRL = B10000010; //Select CHN2
ADCCRL |=B01000000; //Start
t=ADCCRL;
if ((t&0x10)>0)
{//convert end.
ADC=ADCDRH;
一周热门 更多>