Swordfish has whatever interrupts you code it to have, just like C.Does sword fish have a on change interrupt?
You pretty much have to do the exact same steps you would do using XC8.
An ISR won't interrupt itself unless you're dumb enough to reenable GIE before returning, which you should NEVER do.I don't know what happens when you are paused in the ISR and another interrupt occurs
If you have interrupt priorities enabled (you're using both ISRLOW and ISRHIGH) then a high-priority interrupt can override/interrupt a low-priority one,
but otherwise the ISR will run until it hits the end and it executes a RETFIE which reenables interrupts and returns.
If a pending interrupt request flag (xxxxIF) is set (and its xxxxIE bit is enabled) you'll immediately jump back into the ISR.
MrDEB- two things...
Code:
INPUT(portb.4)
portb.4 = 1
and second-
Remove all your interrupt code. Forget about using interrupts. The monkeys will complete the Bible, Gone with the Wind, and all 32 volumes of the Encyclopedia Britannica before you ever code this properly. It's not an IF-THEN statement.