probiers mal damit ( mal ohne Interrupts ) ... allerdings keine Gewähr das es stimmt....Code:.include "m8def.inc" .org 0x0000 rjmp reset reset: ldi r16, low(RAMEND) out SPL, r16 ldi r16, high(RAMEND) out SPH, r16 ldi r16, 0xFF out DDRD, r16 ldi r16, 0b00100000 out ADMUX, r16 ldi r16, 0b11000101 out ADCSR, r16 ldi r16, 0b11110000 out PORTD, r16 loop: sbis ADCSRA, ADIF rjmp loop in r16, ADCH out PORTD, r16 ldi r16, 0b00100000 out ADMUX, r16 sbi ADCSRA, ADSC rjmp loop
MfG Kjion
Lesezeichen