> From: Mike Keitz <
spamBeGonemkeitzspamBeGone
JUNO.COM>
> To:
TakeThisOuTPICLISTEraseME
spam_OUTMITVMA.MIT.EDU
> Subject: Re: PIC interrupts
> Date: Thursday, August 27, 1998 11:24 AM
>
> On Thu, 27 Aug 1998 15:59:04 +0100 Stefan Sczekalla-Waldschmidt
> <
RemoveMEssw
TakeThisOuTOIKOSSW.DE> writes:
> >Hi Folks,
> >
> >> > But, what flags are changed upon an interrupt call, and which
> >flags are
> >> > recovered after the int call?
> >
> >I think this question is misunderstood.
> >
> >I think Pedro likes to know, what irq-flag is set if e.g.
> >tmr0-irq appears, what flags ar reset/cleared with the retfie
> >instructions.
>
> The GIE flag is the only one that is automatically operated. It is
> always cleared when an interrupt starts (after the last instruction in
> the interrupted program executes, but before the first instruction in the
> ISR executes). This prevents the ISR from being interrupted. The RETFIE
> instruction sets GIE before returning. (The set of GIE is the only
> difference between RETFIE and RETURN.) If an interrupt is still pending
> when the RETFIE executes, the PIC will start again at the top of the ISR
> before executing any of the main program.
>
>
> _____________________________________________________________________
> You don't need to buy Internet access to use free Internet e-mail.
> Get completely free e-mail from Juno at
http://www.juno.com
> Or call Juno at (800) 654-JUNO [654-5866]