The RTC and UART allow turning off interrupts at the source, right? But the VIA's CA1, CA2, CB1, and CB2 are only edge-triggered for interrupts, not level-sensitive, probably meaning you won't want to put more than one interrupt source on each of these pins. There might be a good reason to run the peripherals' interrupt output lines into IRQ\ instead. Additional hardware can be used to read what the source of the interrupt is, if you don't want to poll each device in software. The software polling is often done taking a lot more cycles than necessary though, checking all interrupt sources even if most of them aren't even enabled at the moment, and not going in the best order ("best order" being that you first poll the devices that are most likely to cause an interrupt, or the ones that would be most urgent to service).
_________________ http://WilsonMinesCo.com/ lots of 6502 resources The "second front page" is http://wilsonminesco.com/links.html . What's an additional VIA among friends, anyhow?
|