SN8P1700
8-bit micro-controller build-in 12-bit ADC
9INTERRUPT
OVERVIEW
1
The SN8P1700 provides 7 interrupt sources, including four internal interrupts (T0, TC0, TC1 & SIO) and three
external interrupts (INT0 ~ INT2). These external interrupts can wakeup the chip from power down mode to high-speed
normal mode. The external clock input pins of INT0/INT1/INT2 are shared with P0.0/P0.1/P0.2 pins. Once interrupt
service is executed, the GIE bit in STKP register will clear to “0” for stopping other interrupt request. When interrupt
service exits, the GIE bit will set to “1” to accept the next interrupts’ request. All of the interrupt request signals are
stored in INTRQ register. The user can program the chip to check INTRQ’s content for setting executive priority.
The interrupt trigger edge :
INT0 ~ INT2 = falling edge
INTEN Interrupt enable register
T0 time out
T0IRQ
TC0 time out
TC1 time out
TC0IRQ
TC1IRQ
Interrupt vector address (0008H)
Global interrupt request signal
INTRQ
7-bit
Latchs
Interrupt
enable
gating
SIO time out
INT0 trigger
SIOIRQ
P00IRQ
INT1 trigger
INT2 trigger
P01IRQ
P02IRQ
Figure 9-1. The 7 Interrupts of SN8P1700
ꢂ
ꢂ
Note: 1.For SN8P1702 only obtain one internal interrupt P00 and one external interrupt TC0.
Note: 2.The GIE bit must enable and all interrupt operations work.
SONiX TECHNOLOGY CO., LTD
Page 90
Revision 1.94