на в АСМе, переделаешь как хошь, мож чё забыл, сам думай. Ну и порты тоже на ввод
ADC_complete_handle:
push temporary1
in temporary1,sreg
push temporary1
... ;тут много чего
ldi temporary1,ADC_KBD_channel_1_set
out admux,temporary1 ;устанавливаю на другой канал
in temporary1,adcl
sts ADC_KBD_0_channel_state,temporary1
in temporary1,adch
sts ADC_KBD_0_channel_state+1,temporary1
rjmp exit_adc_interrupt_routine
....
exit_adc_interrupt_routine:
sbi adcsr,adsc
pop temporary1
out sreg,temporary1
pop temporary1
reti
;инициализаццЫя
;.equ ADC_set_on_command =0b10001110 ;F/64
;.equ ADC_KBD_channel_1_set =0b01000011
ldi temporary1,ADC_KBD_channel_1_set
out admux,temporary1
ldi temporary1,ADC_set_on_command
out adcsr,temporary1