Interrupt TMR0 simulation hangs

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

Moderators: Benj, Mods

Post Reply
Posts: 6
Joined: Sun Mar 12, 2006 1:31 pm
Location: Belgium

Interrupt TMR0 simulation hangs

Post by bns »

the situation:

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

the problem:

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.

Any ideas?


User avatar
Matrix Staff
Posts: 3198
Joined: Tue Jan 03, 2006 3:59 pm

Post by Steve »

Hi Bart,

Yes, I have just been able to replicate this problem. Unfortunately, I cannot see a simple fix. I will put it onto my bugs list and hopefully solve it in v3.

Thanks for pointing it out.

Post Reply