Has any tried any kind of IRQ expansion system??
What I want to do is provide a 'seperate' IRQ for each expansion slot - up to 8 maximum. Then some how (this being the bit Im stuck on
) catch the IRQ's in a 8-3 encoder and also trigger the uP IRQ\ line. The uP would then read the 8-3 encoder and get a byte value indicating which lines were active and execute the routines for each interrupt handler.
It would work fine if only one interrupt could ever occur at once, but I expect that more than one interrupt could occur within a clock cycle. So how could I go about 'latching' the 8-3 inputs so it doesnt lose any interrupts??
It needs some kind of resetable buffering so that once an interrupt occurs, it stays active-low until the uP has handled it and reset the line.