piclist 2001\01\02\065701a >
Thread: help please on correct Multiple Interupt handling,
www.piclist.com/techref/microchip/devices.htm?key=pic
flavicon
face BY : 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?

Paul Erkiert

TakeThisOuTpaulspamspamEraseMEg4bks.fsnet.co.uk

http://www.g4bks.fsnet.co.uk/

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


<001401c074b1$c88a15a0$a86143d4@tb2> quoted-printable

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