piclist 2001\01\02\070957a >
Thread: help please on correct Multiple Interupt handling,
face BY : Michael Rigby-Jones email (remove spam text)

{Quote hidden}

I presume that BRIF=RBIF?  If so then you are using the lowest three bits in
INTCON so I guess you could branch dependant on the value of these three
bits e.g.

movwf   INTCON
andlw   0x07
addwf   PCL
goto    test1
goto    test2
goto    test3

but to be honest I don't see the problem with the original method.  Whether
you re-test the flags after servicing an interrupt depends if you want to
have the minimum latency.  By exiting the ISR and imediately re-entering it,
you have all the overhead of saving and restoring the W and STATUS



http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


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) help please on correct Multiple Interupt handling,

month overview.

new search...