Quote Originally Posted by Joe S. View Post
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.

Hi Joe,

thanks i get the general idea now, but how does the pic know that the event which should trigger the interupt has happened if it isn't looking for it.

in the little code example i posted it says:

On Interrupt Goto myint ' Define interrupt handler



i understand that it would jump to an interrupt handler call myint but there are no parameters specified as to when it should jump to the interrupt handler, this is what i'm finding confusing.