在STC 12C5201AD中,AD转换有段这样的话,求注解
时间:10-02
整理:3721RD
点击:
void adc_isr() interrupt 5
{ADC_CONTR &= !ADC_FLAG;
SendData(ch);
SendData(ADC_RES);
if (++ch > 7) ch = 0;
ADC _CONTR = ADC_POWER | ADC_SPEEDLL | ADC_START | ch;}
void InitADC()
{ P1ASF=0xff;
ADC_RES=0;
ADC _CONTR = ADC_POWER | ADC_SPEEDLL | ADC_START | ch;
Delay(2);
}
{ADC_CONTR &= !ADC_FLAG;
SendData(ch);
SendData(ADC_RES);
if (++ch > 7) ch = 0;
ADC _CONTR = ADC_POWER | ADC_SPEEDLL | ADC_START | ch;}
void InitADC()
{ P1ASF=0xff;
ADC_RES=0;
ADC _CONTR = ADC_POWER | ADC_SPEEDLL | ADC_START | ch;
Delay(2);
}
我也在看12单片机AD相关的程序,跟小编的一样,其中 ADC_CONTR = ADC_POWER | ADC_SPEEDLL | ADC_START | 0x07; 这一句很理解, 求大哥指点……