Interrupt Controller (8259A)
ICW Summary
In summary, three or four ICWs are required to initialize the master
and each slave PIC. Specifically:
•
Master PIC - No Slaves: ICW1, ICW2, ICW4
•
Master PIC - With Slave(s): ICW1, ICW2, ICW3, ICW4
•
Each Slave PIC: ICW1, ICW2, ICW3, ICW4
To initialize the PICs (master and slave), proceed as follows:
1.
Disable system interrupts by executing a CLI (Clear Interrupt
Flag) instruction.
2.
Initialize the master PIC by writing ICWs in the following
sequence:
a)
Write ICW1 and ICW2.
b)
If slave PICs are used, write ICW3 and ICW4. If no slave
PICs are used, omit ICW3 and write ICW4 only.
3.
Initialize each slave PIC by writing ICWs in the following
sequence: ICW1, ICW2, ICW3, and ICW4.
4.
Enable system interrupts by executing an STI (Set Interrupt
Flag) instruction.
Operation Control Words (OCW1-3)
After initialization, master and slave PICs can be programmed at any
time for various operating modes. Operation Control Word (OCW)
formats are shown in Figure 12-4.
Three OCWs are available for programming various modes and
commands. Unlike ICWs, OCWs need not be in sequential order.
Rather, they are issued by the processor as needed within a program.
12-16
Содержание ZT 8809A
Страница 15: ...Tables Table B 9 J5 Pin Assignments B 17 Table B 10 J6 Pin Assignments B 18 Table B 11 J7 Pin Assignments B 19...
Страница 334: ...Jumper Configurations W49 W48 A W47 B A B W37 W66 A W50 B C J7 W67 Figure A 11 W37 W47 50 W66 W67 Jumper Blocks A 34...
Страница 346: ...Jumper Configurations W61 W60 W62 W63 W64 A B A B W65 Figure A 13 W60 W65 Jumper Block A 46...