piclist 2002\04\11\080137a
>
Thread:
Interrupt on change
www.piclist.com/techref/microchip/ints.htm?key=interrupt
BY
:
Thomas McGahee email (remove spam text)
What you want to do is clear the interrupt flag right after you
save the registers at the beginning of the ISR and determine that
the source of the interrupt was the interrupt-on-change. As soon
as you finish processing the interrupt check the flag again to
see if ANOTHER interrupt occured during processing. If so, handle
it by doing a GOTO to the place where you initially cleared the
flag in the interrupt before. If the flag is NOT set, then
you exit the ISR in the usual way. This will catch as many
interrupts as possible, but ANY method is going to fail if
the interrupts come in so fast you can't process them!
Fr. Thomas McGahee
{Original Message removed}
<003401c1e151$97ca4260$843867a8@sigmanet> 7bit
See also: www.piclist.com/techref/microchip/ints.htm?key=interrupt
Reply
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the
piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
month overview.
new search...