hi, the counter3 has not to be the problem. It is incremended everytime it go's to the ISR. If you look at the top of the ISR you see:
So it stays in stat loop until the ISR is called for 'counter3' time's.Code:if counter3=>200 then 'number of shiftouts counter3=0 else counter3=counter3+1 endif
So it's a kind of delayloop.
Is there an other wat to go to the ISR at the timerinterrupt then ON INTERRUPT?
I go to try comment the code to a minimize is left and use 'return' at th end of the ISR.
To make clear that there are no mistakes: I tried to make the program work in loops and every time the timerinterrupt sets it's flag jumps it to the ISR to shiftout the displayvalues, afther that it go's back to twere it was en finish the loop so it can start again waiting for a buttonpress.
I'm sorry, I thing it will be tomorrow that this is finished. It's buzy over here...![]()
Bookmarks