how does this exit the ISR?
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
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
In reply to: <F13PDVniSnRMWuLn5U900003b9c@hotmail.com>
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the