question on RETFIE instruction.
Harold M Hallikainen email (remove spam text)
On Sat, 30 Oct 1999 18:07:50 +1000 Mathew Cohen <EVERYTHINGIT.NET> mathew
> Hi All,
> Why when I put the RETFIE instruction after my interupt routine does
> program go bak and loop through the interupt routine over and over.
> thought it should return the PC back to were it was before the
Did you remember to clear the interrupt flag on the device that caused
the interrupt? There may also be some OTHER device causing an interrupt
that you are not looking at. Make sure you enable interrupts only on
devices you are actually using, and to clear the flag in the routine
(except on some devices that clear automatically, such as the USART that
clears when you read the data or status register, as I recall).
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: dl.http://www.juno.com/dynoget/tagj.
See also: www.piclist.com/techref/index.htm?key=question+retfie
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the