MG87FE/L2051/4051/6051
MAKE YOU WIN
Preliminary Ver 1.00
9.2.Interrupt Register
IE: Interrupt Enable Register
Address=E8H, read/write, Power On + RESET=00X0-0000
7
6
5
4
3
2
1
0
EA
EAC
--
ES
ET1
EX1
ET0
EX0
Bit 7: EA, All interrupts enable register.
0: Global disables all interrupts.
1: Global enables all interrupts.
Bit 6: EAC, Analog Comparator interrupt Enable register.
0: Disable analog comparator interrupt and reserve the interrupt vector (33H) to /INT2.
1: Enable analog comparator interrupt and occupy the /INT2 interrupt vector (33H) for analog comparator event.
In this mode, IE2 still maintains its original function but it will not generate an interrupt whether EX2 is set or
not.
Bit 5: Reserved.
Bit 4: ES, Serial port interrupt enable register.
0: Disable serial port interrupt.
1: Enable serial port interrupt.
Bit 3: ET1, Timer 1 interrupt enable register.
0: Disable Timer 1 interrupt.
1: Enable Timer 1 interrupt.
Bit 2: EX1, External interrupt 1 enable register.
0: Disable external interrupt 1.
1: Enable external interrupt 1.
Bit 1: ET0, Timer 0 interrupt enable register.
0: Disable Timer 0 interrupt.
1: Enable Timer 1 interrupt.
Bit 0: EX0, External interrupt 0 enable register.
0: Disable external interrupt 0.
1: Enable external interrupt 1.
XICON: External Interrupt Control Register
Address=C0H, read/write, Power On + RESET=0000-0000
7
6
5
4
3
2
1
0
PX3/PTC
EX3
IE3
IT3
PX2
EX2
IE2
IT2
Bit 7: PX3, External interrupt 3 priority-L register.
0: Lower priority, setting with PX3H to select priority level.
1: Higher priority, setting with PX3H to select priority level.
Bit 7: PTC, PWM-Timer interrupt priority-L register. PX3 has an alternated function, PTC, that is switched by ECF.
When ECF is set, this bit is PTC function. If cleared, this bit is PX3 function.
0: Lower priority, setting with PTCH to select priority level.
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2009 All rights reserved.
QP-7300-03D
19/56