void ATD0Init(void){
//用来采集图像
ATD0CTL1=0x00;
ATD0CTL2=0X60; //ATD Power Up, need 10us to stable ATD system 0x40
// and ATD Fast Clear ALL
ATD0CTL3=0X88; //Conversion sequence length is one
ATD0CTL4=0X01; //8 bit resolution,Sample time is 2A/D conversion
//clock periods, ATDclock=[BusClock]*0.5/[PRS+1],
//herr PR1=1;
ATD0CTL5=0X20; //Right justified data in the result register
//Unsigned data representation in the result registers
//Continuous conversion sequence(scan mod
//Analog input channel is AN0 of ATD1
ATD0DIEN=0X00; //Disable digital input