S1C63808 TECHNICAL MANUAL
EPSON
119
CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (Interrupt and HALT)
4.15.2 Interrupt mask
The interrupt factor flags can be masked by the corresponding interrupt mask registers.
The interrupt mask registers are read/write registers. They are enabled (interrupt authorized) when "1" is
written to them, and masked (interrupt inhibited) when "0" is written to them.
At initial reset, the interrupt mask register is reset to "0".
Table 4.15.2.1 shows the correspondence between interrupt mask registers and interrupt factor flags.
Table 4.15.2.1 Interrupt mask registers and interrupt factor flags
IPT1
IPT0
ISER1
ISTR1
ISRC1
ISER2
ISTR2
ISRC2
IK0
IK1
IT3
IT2
IT1
IT0
IRUN
ILAP
ISW1
ISW10
(FFF2HD1)
(FFF2HD0)
(FFF1HD2)
(FFF1HD1)
(FFF1HD0)
(FFF0HD2)
(FFF0HD1)
(FFF0HD0)
(FFF4HD0)
(FFF5HD0)
(FFF6HD3)
(FFF6HD2)
(FFF6HD1)
(FFF6HD0)
(FFF8HD3)
(FFF8HD2)
(FFF8HD1)
(FFF8HD0)
Interrupt factor flag
EIPT1
EIPT0
EISER1
EISTR1
EISRC1
EISER2
EISTR2
EISRC2
EIK0
EIK1
EIT3
EIT2
EIT1
EIT0
EIRUN
EILAP
EISW1
EISW10
(FFE2HD1)
(FFE2HD0)
(FFE1HD2)
(FFE1HD1)
(FFE1HD0)
(FFE0HD2)
(FFE0HD1)
(FFE0HD0)
(FFE4HD0)
(FFE5HD0)
(FFE6HD3)
(FFE6HD2)
(FFE6HD1)
(FFE6HD0)
(FFE8HD3)
(FFE8HD2)
(FFE8HD1)
(FFE8HD0)
Interrupt mask register
4.15.3 Interrupt vector
When an interrupt request is input to the CPU, the CPU begins interrupt processing. After the program
being executed is terminated, the interrupt processing is executed in the following order.
1
The content of the flag register is evacuated, then the I flag is reset.
2
The address data (value of program counter) of the program to be executed next is saved in the stack
area (RAM).
3
The interrupt request causes the value of the interrupt vector (0100H–010CH) to be set in the program
counter.
4
The program at the specified address is executed (execution of interrupt processing routine by
software).
Table 4.15.3.1 shows the correspondence of interrupt requests and interrupt vectors.
Table 4.15.3.1 Interrupt request and interrupt vectors
Interrupt vector
0100H
0102H
0104H
0106H
0108H
010AH
010CH
010EH
Interrupt factor
Watchdog timer
–
Programmable timer
Serial interface
K00–K03, K10–K13 input
Clock timer
Stopwatch timer
–
Priority
High
Low
The four low-order bits of the program counter are indirectly addressed through the interrupt request.