Thaks Steve for your help.
Here is the schematic, I hope It'll help.
And the modified program.
What I notice is that if I press the 2 buttons at the same time then it returns to the main program in aprox. 3 sec. instead of 20.
It's a bike speedometer, you help me before with this. It works great, beside the slow return.
I also tried putting all the vars to word sized but it never return from the subrutine (at least I got tired of pressing the button)
Perhaps when this works ok the write command will too.
Bookmarks