ATMEGA48 Timer0 Interrupt in Simulation

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
iain wilkie
Posts: 97
Joined: Tue Jul 14, 2009 4:37 pm
Has thanked: 13 times
Been thanked: 9 times
Contact:

ATMEGA48 Timer0 Interrupt in Simulation

Post 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

chipfryer27
Valued Contributor
Valued Contributor
Posts: 740
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 185 times
Been thanked: 204 times
Contact:

Re: ATMEGA48 Timer0 Interrupt in Simulation

Post by chipfryer27 »

Hi

That's my understanding too.

Regards

Post Reply