
Originally Posted by
-Dan-
Thanks for your reply
Wouldn't the microcontroller have to constantly keep looking for the event to trigger the interupt?
and which part of that code tells you the interrupt is triggered by RB0
Thanks
Dan
Hi Dan,
Real interrupts are like your alarm clock in the morning, You might like to ignore but it doesn't take no for an answer, Real interrupts will INTERRUPT whatever the pic is doing and perform the code specified, and no the other code doesn't have to keep checking. THAT SAID, PBP does not have REAL interrupts. ON INTERRUPT sets a flag on the stack and continues the command that was executing and then jumps to the interrupt routine. If you want real interrupts you must either use assembler or Darrel's Instant Interrupt routine.
<br> INTCON and OPTION_REG are used to control the interrupts and whether they occur on rising or falling edge.
Last edited by Archangel; - 24th March 2009 at 21:55.
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