Page 1 of 1

ATMEGA48 Timer0 Interrupt in Simulation

Posted: Fri Apr 22, 2022 4:36 pm
by iain wilkie
Just a quick query .... I am free-running the timer0 which interrupts every 16mS. Within the interrupt is a 32 bit counter that I can set which will give me a timeout in my main program. The interrupt is working fine (checked on hardware) but when I simulate the interrupt seems to operate too fast, if I set a timeout at say 3000 which should give me 48 seconds,it times out in about 1 second when simulating at full speed.
I do seem to remember that Flowcode cannot simulate timer interrupts accurately .... am I correct ?

Iain

Re: ATMEGA48 Timer0 Interrupt in Simulation

Posted: Fri Apr 22, 2022 4:49 pm
by chipfryer27
Hi

That's my understanding too.

Regards