Re: DT_instantINT 16f690 not working... what am I doing wrong?
Henrik... BINGO!
Go get yourself a doughnut... (or whatever sweet treat you good people of Sweden like to enjoy at celebrations!)
that was it...
I just added this line to my INT handler...
Code:
'---[INT - interrupt handler]---------------------------------------------------
ToggleLED1:
myvar = PortB
IOC_FLAG = 0
toggle LED0
@ INT_RETURN
And now I have 2 LED's blinking at different rates, one controlled by the rate of the INT, the other at a fixed rate controlled by the PAUSE command in the Main program loop.
I spent a couple of hours testing and troubl shooting and pulling my hair out... on this last evening. Why? was it for a special important project? NO... I just wanted to get my brain around the DT INT's and be able to use them and under stand them. My signature line really says it for me.
Last edited by Heckler; - 6th November 2011 at 14:39.
Dwight
These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.
Bookmarks