OK lets beat this subject into shim stock . . . INTERRUPTS are TRIGGERED by hardware events, They are handled by software. Assembly will start working on the interrupt within 2 to 4 cycles of the Oscillater. PBP On Interrupt, puts a pointer on the stack, like it does with a subroutine, and executes it right after it finishes what it is doing.
Consider this:
Code:
start:
on interrupt goto Emergency<font color=red><b>_</b></font color>stop ':D thanks mister_e
main:
PortB.3 = 1 ' motor runs for 1 minute, stops for 1 minute
pause 60000
PortB.1 = 0
Pause 60000
goto main
Emergency_Stop:
PortB.3 = 0
sleep
end
In the example above ASM interrupts will shut the motor off right now, PBP might have you wait 59 seconds
Last edited by Archangel; - 26th March 2009 at 05:26.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks