6 inTeRRuPT COnTROlleR
S1C63003/004/008/016 TeChniCal Manual
Seiko epson Corporation
6-7
(Rev. 1.1)
i
***
: interrupt factor flags (FFF1h–FFFFh)
These flags indicate that the interrupt factor has occurred or not.
When "1" is read: Interrupt factor has occurred
When "0" is read: Interrupt factor has not occurred
When "1" is written: Flag is reset
When "0" is written: Invalid
The interrupt factor flags are set to "1" when each interrupt factor in the peripheral circuit has occurred. From
the status of the interrupt factor flag, the software can determine if the interrupt factor has occurred. If the cor-
responding interrupt mask register has been set to "1" (interrupt enabled), an interrupt is generated to the CPU
when the interrupt factor flag is set to 1.
The interrupt factor flag is always set to "1" when the interrupt factor occurs regardless of the interrupt mask
register setting. The interrupt flag is reset to "0" by writing "1."
After an interrupt has occurred, the same interrupt will occur again if interrupts are enabled (I flag = "1") 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 enabling the interrupt.
After an initial reset, the interrupt factor flags are set to "0."
5.2 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)
Refer to the descriptions of the peripheral circuits for interrupt factor occurrence conditions.