
Originally Posted by
retepsnikrep
I'm probably being a bit thick but do the instant interrupts preserve all the variables and return to exactly the same place in program after execution?
Yes it does.
Also i have some serin2 code that i don't want interrupting, i can't find the command that enables/disables the interrupts temporarily?
Code:
INTCON.7 = 0
SERIN2 Bcm, 8276, 250, Main, [WAIT($87), STR BCM87\11] 'Receive $87 (12) byte data packet on BCM Bus
INTCON.7 = 1
But that will throw off your 4hz timing.
If possible, use the USART with HSERIN, and you won't need to disable anything.
Bookmarks