智能车制作
标题:
这个AD函数到底怎么调用啊!!
[打印本页]
作者:
zhouzuodong
时间:
2012-11-16 22:17
标题:
这个AD函数到底怎么调用啊!!
初始化我就不写了,这个函数我调用不出来啊???到底该怎么调用他????急!!!坐等!!!!!!!!!
unsigned char AD_value[8];
void AD_Getvalue(unsigned char *AD_value)
{
while(!ATD0STAT2L_CCF0);
*AD_value = ATD0DR0L;
AD_value ++;
while(!ATD0STAT2L_CCF1);
*AD_value = ATD0DR1L;
AD_value ++;
while(!ATD0STAT2L_CCF2);
*AD_value = ATD0DR2L;
AD_value ++;
while(!ATD0STAT2L_CCF3);
*AD_value = ATD0DR3L;
AD_value ++;
while(!ATD0STAT2L_CCF4);
*AD_value = ATD0DR4L;
AD_value ++;
while(!ATD0STAT2L_CCF5);
*AD_value = ATD0DR5L;
AD_value ++;
while(!ATD0STAT2L_CCF6);
*AD_value = ATD0DR6L;
AD_value ++;
while(!ATD0STAT2L_CCF7);
*AD_value = ATD0DR7L;
AD_value ++;
}
欢迎光临 智能车制作 (http://dns.znczz.com/)
Powered by Discuz! X3.2