Hi,
I have been trying to write an ISR switch de-bouncing program that will turn a LED either on or off as a result of each button press. I got my code to compile but once the hex file was loaded the led turns on and off with the button press and not as a result of it.
I am using MikroC and the target device is a 12F683.
I tried to look at the code in the debugger things seem okay but I can not get the MikroC to step into the interrupt function so that I can see that it is working properly. I set the debugger up to watch TMRO so that I can see it count up and then overflow but, the variable does not increment.
The debugger acts as though the interrupt function does not even exist.
Is there a way to get the debugger to walk thru an interrupt function?
I will gladly email or post the code if needed.
Any help would be greatly appreciated.
Dave
I have been trying to write an ISR switch de-bouncing program that will turn a LED either on or off as a result of each button press. I got my code to compile but once the hex file was loaded the led turns on and off with the button press and not as a result of it.
I am using MikroC and the target device is a 12F683.
I tried to look at the code in the debugger things seem okay but I can not get the MikroC to step into the interrupt function so that I can see that it is working properly. I set the debugger up to watch TMRO so that I can see it count up and then overflow but, the variable does not increment.
The debugger acts as though the interrupt function does not even exist.
Is there a way to get the debugger to walk thru an interrupt function?
I will gladly email or post the code if needed.
Any help would be greatly appreciated.
Dave