
Originally Posted by
Joe S.
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.
Bookmarks