piclist 2001\01\02\232922a >
Thread: help please on correct Multiple Interupt handling,
face BY : Dan Michaels email (remove spam text)

Olin wrote:
>Or you could implement a priority scheme with the table entries.  For
>entries that have multiple interrupt conditions, just jump to the handler
>for the highest priority one.  In other words 7 entries but only 3 different
>handler routines.

Yeah, this "almost" seems like a clever way to prioritze interrupts:

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

It is a "very" fast filter, but it gets extremely unwieldy as
you add more interrupts 8 -> 16 -> 32 -> 64/etc table entries.
To do PIR1 this way, you need a table with 256 entries. Oops,
---> on to the next problem :).

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