CSC270 Homework #2
Assume that four peripherals, a mouse, a printer, a floppy drive, and a hard disk generate interrupt signals that are fed to a processor.
The processor has only three inputs (because of pin limitation), and receives an interrupt signal on its INT input, and two code bits, labeled C0 and C1.
The four interrupt signals from the peripherals are fed to a circuit (priority encoder, or PIC) that outputs the three signals described above to the processor.
PIC | +--------+ | | | INT +-------------+ +--------- mouse | | | C0 +-------------+ +--------- printer | | | C1 +-------------+ +--------- floppy | | | | | +--------- hard disk | | | | +--------+The PIC uses the rules below to generate INT, C0 and C1, responding to the interrupt signals it receives from the four peripherals: