SM59A16U1
8-Bit Micro-controller
64KB with ISP Flash
& 6K+256B RAM embedded
LVIIF: LVI interrupt flag.
KBIIF: KBI interrupt flag.
ADCIF: A/D converter end interrupt flag.
SPIIF: SPI interrupt flag.
PWMIF: PWM interrupt flag.
11.5
Interrupt Request Register 2( IRCON2 )
Mnemonic:IRCON2
Address: 97h
7
-
6
-
5
-
4
-
3
-
2
1
0
-
Reset
00H
CmpIF
WDTIF
CmpIF Comparator interrupt flag
HW will clear this flag automatically when enter interrupt vector.
SW can clear this flag also.(in case analog comparator INT disable)
WDTIF: Watch dog interrupt flag
11.6
Priority Level Structure
All interrupt sources are combined in groups, As given in Table 11-2.
Table 11-2: Priority level groups
Groups
External interrupt 0
Timer 0 interrupt
Serial channel 1 interrupt
Watchdog interrupt
Comparator interrupt
USB interrupt
PWM interrupt
SPI interrupt
ADC interrupt
KBI interrupt
LVI interrupt
IIC interrupt
External interrupt 1
Timer 1 interrupt
Serial channel 0 interrupt
Timer 2 interrupt
USBRSM interrupt
-
Each group of interrupt sources can be programmed individually to one of four priority levels by setting or clearing one
bit in the special function register ip0 and one in ip1. If requests of the same priority level will be received
simultaneously, an internal polling sequence determines which request is serviced first. As given in Table 11-3 and
Table 11-4 and Table 11-5.
Mnemonic: IP0
Address: A9h
7
-
6
-
5
4
3
2
1
0
Reset
00h
IP0.5
IP0.4
IP0.3
IP0.2
IP0.1
IP0.0
Mnemonic: IP1
Address: B9h
7
-
6
-
5
4
3
2
1
0
Reset
00h
IP1.5
IP1.4
IP1.3
IP1.2
IP1.1
IP1.0
Table 11-3: Priority levels
IP1.x
IP0.x
Priority Level
Level0 (lowest)
0
0
1
0
1
0
Level1
Level2
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M071 Ver A SM59A16U1 04/12/2013
- 78 -