Gast
#733197
http://www.drtak.org/teaches/ARC/cisp299_bot/book/book/node46.html unten ist im code ... [ccode] volatile unsigned long get_tick_counter(void) { unsigned char oldSREG = SREG; unsigned long tmp; _CLI(); // disable interrupt tmp = tick_counter; if (SREG & (1 << SREG_I)) _SEI(); return tmp; } [/ccode] ich hätte anstatt if (SREG & (1 << SREG_I)) _SEI(); einfach sei(); aufgerufen. ausserdem wie sollte SREG_I gesetzt(1) sein, wenn cli es gelöscht hat? grüsse, daniel