piclist 2002\03\21\124211a >
Thread: how does this exit the ISR?
face picon face BY : Bob Blick email (remove spam text)

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

Yes, it just locks up if not an I2C interrupt. This is an example, and
they didn't have any other sources of interrupt, but put the stub there
for you to use if you have other sources of interrupt, just change the

Cheerful regards,


http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email spam_OUTlistservKILLspamspamspammitvma.mit.edu with SET PICList DIGEST in the body


In reply to: <F13PDVniSnRMWuLn5U900003b9c@hotmail.com>
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
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) how does this exit the ISR?

month overview.

new search...