Description: unsigned char i
ADMUX = 0x67 /*基准AVCC、左对齐、通道7*/
ADCSRA = 0xC2 /*使能、开启、4分频*/
while(!(ADCSRA & (1 << ADIF))) /*等待*/
i = ADCH
ADCSRA &= ~(1 << ADIF) /*清标志*/
ADCSRA &= ~(1 << ADEN) /*关闭转换*/
To Search:
File list (Check if you may need any files):
AD.hex