
S1C88348/317/316/308 TECHNICAL HARDWARE
EPSON
I-57
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Input Ports)
5.5.3 Interrupt function and input
comparison register
Input port K00–K07, K10 and K11 (K11 is not
available in the S1C88308) are all equipped with an
interrupt function. These input ports are divided
into three groupings: K00–K03 (K0L), K04–K07
(K0H) and K10–K11 (K1). Furthermore, the inter-
rupt generation condition for each series of termi-
nals can be set by software.
When the interrupt generation condition set for each
series of terminals is met, the interrupt factor flag
FK0L, FK0H or FK1 corresponding to the applicable
series is set at "1" and an interrupt is generated.
Interrupt can be prohibited by setting the interrupt
enable registers EK0L, EK0H and EK1 for the
corresponding interrupt factor flags.
Furthermore, the priority level for input interrupt
can be set at the desired level (0–3) using the
interrupt priority registers PK00–PK01 and PK10–
PK11 corresponding to each of two groups K0x
(K00–K07) and K1x (K10–K11).
For details on the interrupt control registers for the
above and on operations subsequent to interrupt
generation, see "5.16 Interrupt and Standby Status".
The exception processing vectors for each interrupt
factor are set as follows:
K10 and K11 input interrupt:
00000AH
K04–K07 input interrupt:
00000CH
K00–K03 input interrupt:
00000EH
Figure 5.5.3.1 shows the configuration of the input
interrupt circuit.
Data
bus
K00
Input comparsion
register KCP00
Address
K01
K02
K03
Input port
K00D
Interrupt factor
flag FK0L
Address
K04
Input comparsion
register KCP04
Address
K05
K06
K07
Input port
K04D
Address
K10
Input comparsion
register KCP10
Interrupt selection
register SIK00
Interrupt selection
register SIK04
Interrupt selection
register SIK10
Address
K11
Input port
K10D
Interrupt priority
level judgement
circuit
Interrupt
priority
register
PK00, PK01
Interrupt priority
level judgement
circuit
Interrupt
priority
register
PK10, PK11
Interrupt
request
Interrupt
request
Interrupt enable
register EK0L
Address
Interrupt factor
flag FK1
Address
Interrupt enable
register EK1
Address
Interrupt factor
flag FK0H
Interrupt enable
register EK0H
K10
S1C88308
Address
S1C88348/317/316
Fig. 5.5.3.1
Configuration of input
interrupt circuit