Gast
#144522
Hallo, Basis: mega128 und AVR-GCC an Port D 0 horcht der Oszi bei dem ISR-Aufruf wird Pin 0 getoggelt: ISR: //------------------------------------------------------------------ SIGNAL (SIG_OVERFLOW0) { // signal handler for tcnt0 overflow task_nr++; PORTD=(PIND^0x01); if (teiler_ae1==Tmax1) { // teiler_ae2=0; //zählt modulo Tmax1 flag_ae2=1; //Flag setzten } else teiler_ae2++; } //------------------------------------------------------------------ Das sollte jetzt doch wohl regelmäßig stattfinden L-Zeit = H-Zeit? Oder? Jedenfalls unabhängig vom Programm in der main, das kein DI/EI beinhaltet. Bei mir leider nicht. (Andere Int.-Quellen sind nicht enabled.) Gruß joh