help please on correct Multiple Interupt handling,
Paul Erkiert email (remove spam text)
Hi I am trying to test multiple interupts (T0IF BRIF and INTF)
I need to btfss INTCON,TOIF
goto test_next ;THIS Doesn't seem very elegant!
goto toifint ;handle toif int
test_next btfss INTCON,BRIF ;test for next
is there a more elegant way?
Also after handling (say)toif and clearing toiFlag
should I jump back and continue testing flags or just RETFIE and if multiple flags were set
is it ok to then just re-enter as a new inturupt as the other flag would cause it re interupt?
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
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the