piclist 1999\10\30\132455a >
Thread: question on RETFIE instruction.
www.piclist.com/techref/index.htm?key=question+retfie
picon face BY : Harold M Hallikainen email (remove spam text)



On Sat, 30 Oct 1999 18:07:50 +1000 Mathew Cohen <spammathewspam.....EVERYTHINGIT.NET>
writes:
> Hi All,
>
> Why when I put the RETFIE instruction after my interupt routine does
> the
> program go bak and loop through the interupt routine over and over.
> I
> thought it should return the PC back to were it was before the
> interupt.
>

       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).

Harold


___________________________________________________________________
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.

<19991030.102158.-482943.0.haroldhallikainen@juno.com> 7bit

See also: www.piclist.com/techref/index.htm?key=question+retfie
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.
Subject (change) question on RETFIE instruction.

month overview.

new search...