mpc82g516a Megawin Technology, mpc82g516a Datasheet - Page 89

no-image

mpc82g516a

Manufacturer Part Number
mpc82g516a
Description
8-bit Microcontroller
Manufacturer
Megawin Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mpc82g516aE
Manufacturer:
MEGAWIN
Quantity:
1 200
Part Number:
mpc82g516aF
Manufacturer:
MEGAWIN
Quantity:
20 000
19 Interrupt System
The MPC82G516A has 14 interrupt sources with a four-level interrupt structure. There are several SFRs
associated with the four-level interrupt. They are the IE, IP, IPH, AUXIE, AUXIP, AUXIPH, XICON and TCON.
The IPH (Interrupt Priority High) and AUXIPH (Auxiliary Interrupt Priority High) registers make the four-level
interrupt structure possible. The four priority level interrupt structure allows great flexibility in handling these
interrupt sources.
19.1 Interrupt Sources
Table 19-1 lists all the interrupt sources. The ‘Request Bits’ are the interrupt flags that will generate an interrupt if
it is enabled by setting the ‘Enable Bit’. Of course, the global enable bit EA (in IE register) should have been set
previously. The ‘Request Bits’ can be set or cleared by software, with the same result as though it had been set
or cleared by hardware. That is, interrupts can be generated or pending interrupts can be cancelled in software.
The ‘Priority Bits’ determine the priority level for each interrupt. The ‘Priority within Level’ is the polling sequence
used to resolve simultaneous requests of the same priority level. The ‘Vector Address’ is the entry point of an
interrupt service routine in the program memory.
Figure 19-1 shown the interrupt system. Each of these interrupts will be briefly described in the following sections.
Table 19-1. Interrupt Sources
89
#10
#11
#12
#13
#14
No
#1
#2
#3
#4
#5
#6
#7
#8
#9
External Interrupt, INT0
External Interrupt, INT1
External Interrupt, INT2
External Interrupt, INT3
Brownout Detection
Keypad Interrupt
Serial Port
Source
Timer 0
Timer 1
Timer 2
UART2
Name
ADC
PCA
SPI
Enable
EADC
EPCA
ESPI
EBD
EKB
EX0
EX1
EX2
EX3
ES2
ET0
ET1
ET2
Bit
ES
MPC82G516A Data Sheet
S2RI, S2TI
TF2, EXF2
OPF, CPF
CF, CCFn
Request
(n=0~5)
RI, TI
ADCI
SPIF
KBIF
Bits
TF0
TF1
IE0
IE1
IE2
IE3
PADCH, PADC
PPCAH, PPCA
PSPIH, PSPI
PBDH, PBD
PKBH, PKB
PX0H, PX0
PX1H, PX1
PX2H, PX2
PX3H, PX3
PS2H, PS2
PT0H, PT0
PT1H, PT1
PT2H, PT2
PSH, PS
Priority
Bits
within Level
(Highest)
(Lowest)
Priority
.
.
.
.
.
.
.
.
.
.
.
.
MEGAWIN
Address
Vector
000BH
001BH
002BH
003BH
004BH
005BH
006BH
0003H
0013H
0023H
0033H
0043H
0053H
0063H

Related parts for mpc82g516a