6 inTeRRuPT COnTROlleR
S1C63003/004/008/016 TeChniCal Manual
Seiko epson Corporation
6-3
(Rev. 1.1)
interrupt Factors
6.2
Table 6.2.1 shows the factors for generating interrupt requests. The interrupt flags are set to "1" depending on the
corresponding interrupt factors. The CPU operation is interrupted when an interrupt factor flag is set to "1" if the
following conditions are established.
• The corresponding mask register is "1" (enabled)
• The interrupt flag is "1" (EI)
The interrupt factor flag is reset to "0" when "1" is written.
At initial reset, the interrupt factor flags are reset to "0."
*
Since the watchdog timer's interrupt is NMI, the interrupt is generated regardless of the setting above, and no inter-
rupt factor flag is provided.
2.1 Interrupt factors
Table 6.
Interrupt factor
Interrupt factor flag
Interrupt mask register
S1C63xxx
016
008
004
003
R/F converter (error)
IRFE
(FFF1H•D2) EIRFE
(FFE1H•D2)
R/F converter (end of reference conversion)
IRFR
(FFF1H•D1) EIRFR
(FFE1H•D1)
R/F converter (end of sensor conversion)
IRFS
(FFF1H•D0) EIRFS
(FFE1H•D0)
Programmable timer 0 (underflow)
IPT0
(FFF2H•D1) EIPT0
(FFE2H•D1)
Programmable timer 0 (compare match)
ICTC0
(FFF2H•D0) EICTC0
(FFE2H•D0)
–
Programmable timer 1 (underflow)
IPT1
(FFF3H•D1) EIPT1
(FFE3H•D1)
–
Programmable timer 1 (compare match)
ICTC1
(FFF3H•D0) EICTC1
(FFE3H•D0)
–
Programmable timer 2 (underflow)
IPT2
(FFF4H•D1) EIPT2
(FFE4H•D1)
–
Programmable timer 2 (compare match)
ICTC2
(FFF4H•D0) EICTC2
(FFE4H•D0)
–
Programmable timer 3 (underflow)
IPT3
(FFF5H•D1) EIPT3
(FFE5H•D1)
–
–
–
Programmable timer 3 (compare match)
ICTC3
(FFF5H•D0) EICTC3
(FFE5H•D0)
–
–
–
Serial interface (8-bit data input/output completion)
ISIF
(FFFAH•D0) EISEIF
(FFEAH•D0)
–
Key input interrupt <P03>
IK03
(FFFBH•D3) EIK03
(FFEBH•D3)
Key input interrupt <P02>
IK02
(FFFBH•D2) EIK02
(FFEBH•D2)
Key input interrupt <P01>
IK01
(FFFBH•D1) EIK01
(FFEBH•D1)
Key input interrupt <P00>
IK00
(FFFBH•D0) EIK00
(FFEBH•D0)
Key input interrupt <P13>
IK13
(FFFCH•D3) EIK13
(FFECH•D3)
–
Key input interrupt <P12>
IK12
(FFFCH•D2) EIK12
(FFECH•D2)
–
Key input interrupt <P11>
IK11
(FFFCH•D1) EIK11
(FFECH•D1)
–
Key input interrupt <P10>
IK10
(FFFCH•D0) EIK10
(FFECH•D0)
–
Stopwatch timer (Direct RUN)
IRUN
(FFFDH•D3) EIRUN
(FFEDH•D3)
–
Stopwatch timer (Direct LAP)
ILAP
(FFFDH•D2) EILAP
(FFEDH•D2)
–
Stopwatch timer (1 Hz)
ISW1
(FFFDH•D1) EISW1
(FFEDH•D1)
Stopwatch timer (10 Hz)
ISW10
(FFFDH•D0) EISW10
(FFEDH•D0)
Clock timer 16 Hz (falling edge)
IT3
(FFFEH•D3) EIT3
(FFEEH•D3)
–
Clock timer 32 Hz (falling edge)
IT2
(FFFEH•D2) EIT2
(FFEEH•D2)
Clock timer 64 Hz (falling edge)
IT1
(FFFEH•D1) EIT1
(FFEEH•D1)
–
Clock timer 128 Hz (falling edge)
IT0
(FFFEH•D0) EIT0
(FFEEH•D0)
–
Clock timer 1 Hz (falling edge)
IT7
(FFFFH•D3) EIT7
(FFEFH•D3)
Clock timer 2 Hz (falling edge)
IT6
(FFFFH•D2) EIT6
(FFEFH•D2)
Clock timer 4 Hz (falling edge)
IT5
(FFFFH•D1) EIT5
(FFEFH•D1)
–
Clock timer 8 Hz (falling edge)
IT4
(FFFFH•D0) EIT4
(FFEFH•D0)
Note: After an interrupt occurs, the same interrupt will occur again if the interrupt enabled state (I flag =
"1") is set or the RETI instruction is executed unless the interrupt factor flag is reset. Therefore, be
sure to reset (write "1" to) the interrupt factor flag in the interrupt handler routine before shifting to
the interrupt enabled state.
interrupt Mask
6.3
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 6.2.1 shows
the correspondence between interrupt mask registers and interrupt factor flags.