Room !!!
Hi,
Instant interrupts need some ( let's say ...much ) room.
So, If It's possible ( the resume line MUST be known ...) try this :
Code:
'INTTEST
DEFINE INTHAND _ToggleLED1
DEFINE OSCCAL_1K 1
LED1 VAR GPIO.1
ADCON0 = 0
ANSEL = 0
CMCON = 7
VRCON = 0
T1CON = %00110001
INTCON = %11000000
PIE1 = %00000001
TRISIO = %000000
GPIO = 0
Main:
While 1
WEND
END
'---[INT - interrupt handler]---------------------------------------------------
ToggleLED1:
TOGGLE LED1
PIR1.0 = 0
RESUME Main
A bit " off the Manual " ... but doesn't need room ... nor assembler !!!
And it is even faster than " Instant " interrupts ... ( assembler speed !!! no more ...)
Alain
Last edited by Acetronics2; - 23rd January 2008 at 14:52.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks