Habe da mal kurz etwas zusammengeschrieben
LED an PD3, allerdings ohne rückstellen.Code:#include <avr/interrupt.h> #include <avr/io.h> ISR(ANA_COMP_vect){ PORTD |= (1<<PD3); } int main(void){ ACSR = (1<<ACIE) | (1<<ACIS1); DDRD = 0x3f; sei(); for(;;){} }
Ich hoffe du hast ein Testboard zum ausprobieren.
Hubert
Lesezeichen