I am programming a 16F88 with the interrupt TMR0 active. In the INTERRUPT_TMR0 macro, I have programmed (with the flowcharts)the following calculation: counter=counter + 1
Then a decision: if counter = 60 then seconds = seconds + 1
counter = 0
else do nothing
In the main menu I just use the LCD display to display the seconds
in the simulation mode, everything works fine for a couple of iterations, but then after some time, it doesn't go into the TMR interrupt anymore. It just keeps going through the main menu, but because the TMR interrupt doesn't work anymore, the seconds doesn't add up.
When I program it on the development board, everything works correctly.
I have tried playing with the clock speed, prescaler etc., but it doesn't solve it.
For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.
2 posts • Page 1 of 1
- Matrix Staff
- Posts: 3073
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 87 times
- Been thanked: 387 times