Re: Proper /IRQ handling for multiple devices
Posted: Thu Feb 25, 2021 4:56 pm
UPDATE:
OK, so just a brief recap. I will have two VIA's, one ACIA, one TMS9918 and FOUR slots that could cause an interrupt.
One of the VIA's is wired to /NMI because it will drive the PS/2 keyboard and SD Card. I figure keyboard input should at least always have priority to allow to (possibly) recover from a crash, etc.
So that leaves 7 IRQ devices. My target speed is between 1 - 4MHz tops. I don't think the TMS chip can handle much greater than 2MHz without wait-states. Which made me think that I might want to arrange everything like the picture below.
I assumed anything approaching 2-3MHz should probably use a totem-pole arrangement but I'm not 100% on that. However, it also bothers me a little that only one device is really using that totem-pole arrangement! In fact, /VIA2_IRQ is mostly to drive audio chips and joysticks.
So I think this is a wasted effort to go totem-pole unless you guys think differently. I've already got 19 chips on this design!
It's going to be a big board.
At the end of the day, I will still be happy to restrict the machine to 1-2MHz tops. I guess my question now is, is it worth the effort to use totem-pole like I am doing?
Thanks again!
OK, so just a brief recap. I will have two VIA's, one ACIA, one TMS9918 and FOUR slots that could cause an interrupt.
One of the VIA's is wired to /NMI because it will drive the PS/2 keyboard and SD Card. I figure keyboard input should at least always have priority to allow to (possibly) recover from a crash, etc.
So that leaves 7 IRQ devices. My target speed is between 1 - 4MHz tops. I don't think the TMS chip can handle much greater than 2MHz without wait-states. Which made me think that I might want to arrange everything like the picture below.
I assumed anything approaching 2-3MHz should probably use a totem-pole arrangement but I'm not 100% on that. However, it also bothers me a little that only one device is really using that totem-pole arrangement! In fact, /VIA2_IRQ is mostly to drive audio chips and joysticks.
So I think this is a wasted effort to go totem-pole unless you guys think differently. I've already got 19 chips on this design!
At the end of the day, I will still be happy to restrict the machine to 1-2MHz tops. I guess my question now is, is it worth the effort to use totem-pole like I am doing?
Thanks again!