
CMT2380F17
Rev0.1 | 117/347
www.cmostek.com
15.3
Interrupt Enable
Table 15-3. Interrupt Enable
No
Source Name
Enable Bit
Bit Location
#0
External Interrupt 0,nINT0
EX0
IE.0
#1
Timer 0
ET0
IE.1
#2
External Interrupt 1,nINT1
EX1
IE.2
#3
Timer 1
ET1
IE.3
#4
Serial Port 0
ES0
IE.4
#5
Timer 2
ET2
IE.5
#6
External Interrupt 2,nINT2
EX2
XICON.2
#7
SPI
ESPI
EIE1.0
#8
ADC
EADC
EIE1.1
#9
PCA
EPCA
EIE1.2
#10
System Flag
ESF
EIE1.3
#11
Keypad Interrupt
EKB
EIE1.5
#12
TWI0/I2C0
ETWI0
EIE1.6
#13
Reserved
--
--
#14
Serial Port 1
ES1
EIE1.4
#15
Reserved
--
--
#16
Timer 3
ET3
EIE2.0
#17
Reserved
--
--
#18
DMA
EDMA
IE.6
There are 16 interrupt sources available in CMT2380F17. Each of these interrupt sources can be
individually enabled or disabled by setting or clearing an interrupt enable bit in the registers IE, EIE1, EIE2
and XICON. IE also contains a global disable bit, EA, which can be cleared to disable all interrupts at once. If
EA is set to ‘1’, the interrupts are individually enabled or disabled by their corresponding enable bits. If EA is
cleared to ‘0’, all interrupts are disabled.
15.4
Interrupt Priority
The priority scheme for servicing the interrupts is the same as that for the 80C51, except there are four
interrupt levels rather than two as on the 80C51. The Priority Bits (see Table 15
–1) determine the priority level
of each interrupt. IP0L, IP0H, EIP1L, EIP1H, EIP2L and EIP2H are combined to 4-level priority interrupt. Table
15
–4 shows the bit values and priority levels associated with each combination.
Table 15
–4. Interrupt Priority
{IPnH.x , IPnL.x}
Priority Level
11
1 (highest)
10
2
01
3
00
4
Each interrupt source has two corresponding bits to represent its priority. One is located in SFR named
IPnH and the other in IPnL register. Higher-priority interrupt will be not interrupted by lower-priority interrupt
request. If two interrupt requests of different priority levels are received simultaneously, the request of higher
priority is serviced. If interrupt requests of the same priority level are received simultaneously, an internal
polling sequence determine which request is serviced. Table 15
–2 shows the internal polling sequence in the
Содержание CMT2380F17
Страница 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Страница 111: ...CMT2380F17 Rev0 1 111 347 www cmostek com INT2IS 1 0 Selected Port Pin of nINT2 00 P4 4 01 P3 0 10 P1 1 11 P1 6...
Страница 131: ...CMT2380F17 Rev0 1 131 347 www cmostek com Figure 16 1 Timer 0 Mode 0 Structure Figure15 2 Timer 1 Mode 0 Structure...
Страница 161: ...CMT2380F17 Rev0 1 161 347 www cmostek com Figure 16 32 Split Timer 3 Mode 1 Structure AR with Ex INT...
Страница 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Страница 239: ...CMT2380F17 Rev0 1 239 347 www cmostek com Figure 19 5 8 bit Timer Mode Configuration for S1BRG S1TME 1...
Страница 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...
Страница 289: ...CMT2380F17 Rev0 1 289 347 www cmostek com...