Hallo,
habe da grad mal ein Problem, verstehe nicht warum folgender Code nicht funktioniert. Die Variable soll einfach nur runtergezählt werde, bleibt aber immer gleich.
Code:volatile uint8_t current_time;
ISR(WDT_OVERFLOW_vect)
{
PORTD = current_time;
current_time--;
if(current_time == 0)
{
current_time = 60;
}
}