Interrupt Enable Register; Interrupt Priority Register And Interrupt Priority Level - Epson 0C88832 Technical Manual

Cmos 8-bit single chip microcomputer
Table of Contents

Advertisement

Interrupt factor flag that has been set to "1" is reset
to "0" by writing "1".
At initial reset, the interrupt factor flags are reset to "0".
Note: When executing the RETE instruction
without resetting the interrupt factor flag after
an interrupt has been generated, the same
interrupt will be generated. Consequently,
the interrupt factor flag corresponding to that
routine must be reset (writing "1") in the
interrupt processing routine.

5.14.3 Interrupt enable register

The interrupt enable register has a 1 to 1 corre-
spondence with each interrupt factor flag and
enable/disable of interrupt requests can be set.
When "1" is written to the interrupt enable register,
an interrupt request is enabled, and is disabled
when "0" is written. This register also permits
reading, thus making it possible to confirm that a
status has been set.
At initial reset, the interrupt enable registers are set
to "0" and shifts to the interrupt disable status.
Table 5.14.3.1 shows the correspondence between the
interrupt enable registers and the interrupt factor flags.
Table 5.14.3.1 Interrupt enable registers and interrupt factor flags
Interrupt
Programmable timer 1
Programmable timer 0
K10 input
K04–K07 input
K00–K03 input
Serial interface receiving error
Serial interface receiving completion
Serial interface transmitting completion
Stopwatch timer 100 Hz
Stopwatch timer 10 Hz
Stopwatch timer 1 Hz
Clock timer 32 Hz
Clock timer 8 Hz
Clock timer 2 Hz
Clock timer 1 Hz
Interrupt
Programmable timer interrupt
K10 input interrupt
K00–K07 input interrupt
Serial interface interrupt
Stopwatch timer interrupt
Clock timer interrupt
E0C88832/88862 TECHNICAL MANUAL
5 PERIPHERAL CIRCUITS AND THEIR OPERATION (Interrupt and Standby Status)
Interrupt factor flag
FPT1
FPT0
FK1
FK0H
FK0L
FSERR
FSREC
FSTRA
FSW100
FSW10
FSW1
FTM32
FTM8
FTM2
FTM1
Table 5.14.4.1 Interrupt priority register
EPSON
5.14.4 Interrupt priority register and
interrupt priority level
The interrupt priority registers shown in Table
5.14.4.1 are set to each system of interrupts and the
interrupt priority levels for the CPU can be set to
the optional priority level (0–3). As a result, it is
possible to have multiple interrupts that match the
system's interrupt processing priority levels.
The interrupt priority level between each system
can optionally be set to three levels by the interrupt
priority register. However, when more than one
system is set to the same priority level, they are
processed according to the default priority level.
Table 5.14.4.2 Setting of interrupt priority level
P*1
P*0
1
1
1
0
0
1
0
0
Interrupt enable register
(00FF25 D7)
EPT1
(00FF25 D6)
EPT0
(00FF25 D5)
EK1
(00FF25 D4)
EK0H
(00FF25 D3)
EK0L
(00FF25 D2)
ESERR
(00FF25 D1)
ESREC
(00FF25 D0)
ESTRA
(00FF24 D6)
ESW100
(00FF24 D5)
ESW10
(00FF24 D4)
ESW1
(00FF24 D3)
ETM32
(00FF24 D2)
ETM8
(00FF24 D1)
ETM2
(00FF24 D0)
ETM1
Interrupt priority register
PPT0, PPT1
(00FF21 D2, D3)
PK10, PK11
(00FF21 D0, D1)
PK00, PK01
(00FF20 D6, D7)
PSIF0, PSIF1
(00FF20 D4, D5)
PSW0, PSW1
(00FF20 D2, D3)
PTM0, PTM1
(00FF20 D0, D1)
Interrupt priority level
Level 3
(IRQ3)
Level 2
(IRQ2)
Level 1
(IRQ1)
Level 0
(non)
(00FF23 D7)
(00FF23 D6)
(00FF23 D5)
(00FF23 D4)
(00FF23 D3)
(00FF23 D2)
(00FF23 D1)
(00FF23 D0)
(00FF22 D6)
(00FF22 D5)
(00FF22 D4)
(00FF22 D3)
(00FF22 D2)
(00FF22 D1)
(00FF22 D0)
115

Advertisement

Table of Contents
loading

This manual is also suitable for:

88862

Table of Contents