Академический Документы
Профессиональный Документы
Культура Документы
{
ADCSRA=0X00; // Clear previous ADC results and status
flags
ADMUX=0X60; // 0x40 for 10 bits
ADCSRA=0X87; // We have set the ADSC bit to start a
conversion, and the
// ADPS bits are set so that the prescaler is
128
ACSRA=0X80; // ADEN is set, to enable the ADC
}