![](http://datasheet.mmic.net.cn/290000/Z86319_datasheet_16189712/Z86319_16.png)
Z86319
PS/2 Mouse Controller
Zilog
16
P R E L I M I N A R Y
DS97KEY1605
FUNCTIONAL DESCRIPTION
(Continued)
Interrupts.
The Z86319 features four interrupts from
four different sources. These interrupts are maskable and
prioritized (Figure 17). The four sources are divided as fol-
lows: the falling edge of P31, P33, and the two
counter/timers. The Interrupt Mask Register globally or in-
dividually enables or disables the four interrupt requests
(Table 5).
When more than one interrupt is pending, priorities are re-
solved by a programmable priority encoder that is con-
trolled by the Interrupt Priority register. All Z86319 inter-
rupts are vectored through locations in program memory.
When an interrupt machine cycle is activated, an interrupt
request is granted, thereby disabling all subsequent inter-
rupts, saving the Program Counter and Status Flags, and
branching to the program memory vector location reserved
for that interrupt. This memory location and the next byte
contain the 16-bit starting address of the Interrupt Service
Routine for that particular interrupt request.
To accommodate polled interrupt systems, interrupt inputs
are masked and the Interrupt Request Register is polled to
determine which of the interrupt requests requires service.
Table 5. Interrupt Types, Sources, and Vectors
Source
P33
P31
T0
T1
Name
IRQ1
IRQ2
IRQ4
IRQ5
Vector
2,3
4,5
8,9
10,11
Location Comments
External
Falling Edge
External
Falling Edge
Internal
Internal
Figure 17. Interrupt Block Diagram
IRQ
IMR
IPR
Priority
Logic
6
Vector Select
Global
Interrupt
Enable
Interrupt
Request
IRQ1 - IRQ5