mg84fl54b Megawin Technology, mg84fl54b Datasheet - Page 35

no-image

mg84fl54b

Manufacturer Part Number
mg84fl54b
Description
Full-speed Usb Micro-controller
Manufacturer
Megawin Technology
Datasheet
12. Interrupt
The device has a total of 12 interrupt sources. Each of the interrupt sources can be individually enabled or
disabled by setting or clearing a bit in the Interrupt Enable registers (IE, AUXIE and XICON). And, each interrupt
source can also be individually programmed to one of two priority levels by setting or clearing bit in the Interrupt
Priority registers (IP & AUXIP). The two priority level interrupt structure allows great flexibility in controlling the
handling of these interrupt sources. The following table lists all the interrupt sources.
Table: Interrupt Sources
Note1: The USB interrupt flags include:
IE (Address=A8H, Interrupt Enable Register)
EA: Global disable bit. If EA = 0, all interrupts are disabled. If EA = 1, each interrupt can be individually enabled
or disabled by setting or clearing its enable bit.
ET2: Timer 2 interrupt enable bit.
ES: Serial Port interrupt enable bit.
ET1: Timer 1 interrupt enable bit.
EX1: External interrupt 1 enable bit.
ET0: Timer 0 interrupt enable bit.
EX0: External interrupt 0 enable bit.
MEGAWIN
Source
No.
#10
#11
#12
#13
#14
#15
#16
#1
#2
#3
#4
#5
#6
#7
#8
#9
EA
7
(1) URST, URSM and USUS: contained in USB register UPCON.
(2) UTXD0, URXD0, UTXD1, UTXD2, ASOFIF and SOFIF: contained in USB register UIFLG.
(3) UTXD3, URXD3, URXD4 and UTXD5: contained in USB register UIFLG1
Two Wire Serial Interface
External Interrupt, INT2*
External Interrupt, INT3*
External Interrupt, INT0
External Interrupt, INT1
Keypad Interrupt
6
-
Serial Port
Interrupt
Timer 0
Timer 1
Timer 2
Name
USB
SPI
-
-
-
-
ET2
5
Interrupt
Enable
ETWSI
EUSB
ESPI
EKBI
EX0
ET0
EX1
ET1
ET2
EX2
EX3
Bit
ES
ES
-
-
-
-
4
MG84FL54B Data sheet
(See Note1)
TF2+ EXF2
Interrupt
RI+TI
ET1
SPIF
KBIF
Flag
TF0
TF1
IE0
IE1
IE2
IE3
Bit
3
SI
-
-
-
-
EX1
Interrupt
Priority
PTWSI
2
PUSB
PSPI
PKBI
Bits
PX0
PX1
PX2
PX3
PT0
PT1
PT2
PS
-
-
-
-
ET0
1
(Highest)
(Lowest)
Priority
Polling
.
.
.
.
.
.
.
.
.
.
.
.
.
.
EX0
0
Address
Vector
000BH
001BH
002BH
003BH
004BH
005BH
006BH
007BH
0003H
0013H
0023H
0033H
0043H
0053H
0063H
0073H
35

Related parts for mg84fl54b