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
ATMEGA48 Timer0 Interrupt in Simulation
Moderator: Benj
-
- Posts: 97
- Joined: Tue Jul 14, 2009 4:37 pm
- Has thanked: 13 times
- Been thanked: 9 times
- Contact:
-
- Valued Contributor
- Posts: 740
- Joined: Fri Jun 06, 2014 3:53 pm
- Has thanked: 185 times
- Been thanked: 204 times
- Contact: