>From: Micro Eng <
.....micro_engKILLspam
@spam@HOTMAIL.COM>
>Reply-To: pic microcontroller discussion list <
PICLIST
KILLspamMITVMA.MIT.EDU>
>To:
.....PICLISTKILLspam
.....MITVMA.MIT.EDU
>Subject: [PIC]: how does this exit the ISR?
>Date: Thu, 21 Mar 2002 09:24:23 -0700
>
>Here is a snippit of code, right out of AN734
>
>ISR
><deleted the save stuff for the ISR entry>
>
> banksel PIR1
> btfss PIR1,SSPIF ; Is this a SSP interrupt?
> goto $ ; No, just trap here.
> bcf PIR1,SSPIF
> call SSP_Handler ; Yes, service SSP interrupt.
>
><deleted the recall for saved stuff>
>
> retfie ; Return from interrupt.
>
>From this...it checks the PIR1 bit to see if the I2C is the source of
>interupt and if so, clears it and handles it. Otherwise the 'goto $' makes
>it just sit and stay there, so how does it exit the ISR if the interupt is
>not from the I2C, or given that there cannot be another source, does it
>simply lock up then? Not exactly sure what is going on there.
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device:
http://mobile.msn.com
>
>--
>
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
>email
EraseMElistservspam_OUT
TakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body
>
>