SM59R16A5/SM59R09A5/SM59R05A5
8-Bit Micro-controller
64KB/36KB/20KB with ISP Flash
& 2KB RAM embedded
IEKBI = 1 – Enable KBI interrupt.
IEADC: A/D converter interrupt enable
IEADC = 0 – Disable ADC interrupt.
IEADC = 1 – Enable ADC interrupt.
IESPI: SPI interrupt enable.
IESPI = 0 – Disable SPI interrupt.
IESPI = 1 – Enable SPI interrupt.
IEPWM: PWM interrupt enable.
IEPWM = 0 – Disable PWM interrupt.
IEPWM = 1 – Enable PWM interrupt.
Interrupt Enable 2 register(IEN2)
Mnemonic: IEN2
Address: 9Ah
7
-
6
-
5
-
4
-
3
-
2
1
0
ES1
Reset
00h
ECmpI ERTC
ECmpI: ECmpI =0 – Disable Comparator interrupt.
ECmpI =1 – Enable Comparator interrupt(include comparator_0 and comparator_1).
ERTC: ERTC =0 – Disable RTC interrupt.
ERTC =1 – Enable RTC interrupt(include Periodical and Alarm Int).
ES1: ES1=0 – Disable Serial channel 1 interrupt.
ES1=1 – Enable Serial channel 1 interrupt.
Interrupt request register(IRCON)
Mnemonic: IRCON
Address: C0h
7
6
TF2
5
IICIF
4
3
2
1
0
Reset
00H
EXF2
LVIIF
KBIIF ADCIF
SPIIF PWMIF
EXF2: Timer 2 external reloads flag. Must be cleared by software.
TF2: Timer 2 overflows flag. Must be cleared by software.
IICIF: IIC interrupt flag.
LVIIF: LVI interrupt flag.
KBIIF: KBI interrupt flag.
ADCIF: A/D converter end interrupt flag.
SPIIF: SPI interrupt flag.
PWMIF: PWM interrupt flag. Must be cleared by software.
Interrupt request register 2(IRCON2)
Mnemonic: IRCON2
Address: 97h
7
-
6
-
5
-
4
-
3
-
2
1
0
-
Reset
00H
CmpIF RTCIF
RTCIF RTC interrupt flag(include Periodical and Alarm Int).
HW will clear this flag automatically when enter interrupt vector.
SW can clear this flag also.(in case RTC INT disable)
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)
Specifications subject to change without notice contact your sales representatives for the most recent information.
ISSFD-M047 53 Ver.G SM59R16A5 01/2014