智能车制作
标题:
AD问题
[打印本页]
作者:
hulei
时间:
2011-4-22 10:52
标题:
AD问题
void AD_Init(void)
{
ATD0DIEN=0x00;
ATD0CTL0=0x00|0x03;
ATD0CTL1=0x00|0x00;
ATD0CTL2=0x40|0x00; //start AD, fast clear,no-waiting mode,disable external trigger,disable interrupt
ATD0CTL3=0xc0|0x00; //exchange length=4, no FIFO, continue changing even in freeze mode,number of convertion per sequence:13
ATD0CTL4=0x00|0x05; //8 bit,4 clock cycle PRS=32,f(ATDCLK)<2MHZ
ATD0CTL5=0x30|0x00;; // right alled
大家帮我看一下我的8个口的AD采集有什么问题,为什么接主板内部电压就行,换接传感器电压就拉低了?
欢迎光临 智能车制作 (http://111.231.132.190/)
Powered by Discuz! X3.2