Table 3-2. Interrupt vector assignments (continued)
Address
Vector
NVIC
IPR
register
number
Source module
Source description
0x0000_007C
31
15
3
ADC0
Conversion complete
0x0000_0080
32
16
4
CMP0
Rising or falling edge of comparator output
0x0000_0084
33
17
4
TPM0
Overflow or channel interrupt
0x0000_0088
34
18
4
TPM1
Overflow or channel interrupt
0x0000_008C
35
19
4
TPM2
Overflow or channel interrupt
0x0000_0090
36
20
5
RTC
Alarm interrupt
0x0000_0094
37
21
5
RTC
Seconds interrupt
0x0000_0098
38
22
5
PIT
Single interrupt vector for all channels
0x0000_009C
39
23
5
I
2
S0
Single interrupt vector for all sources
0x0000_00A0
40
24
6
USB
—
0x0000_00A4
41
25
6
DAC0
—
0x0000_00A8
42
26
6
—
—
0x0000_00AC
43
27
6
—
—
0x0000_00B0
44
28
7
LPTMR0
LP Timer compare match
0x0000_00B4
45
29
7
—
—
0x0000_00B8
46
30
7
Port control module
Pin detect (Port A)
0x0000_00BC
47
31
7
Port control module
Pin detect (Single interrupt vector for Port C,
Port D)
1. Indicates the NVIC's interrupt source number.
2. Indicates the NVIC's IPR register number used for this IRQ. The equation to calculate this value is: IRQ div 4
3.2.3.1 Determining the bitfield and register location for configuring a
particular interrupt
Suppose you need to configure the SPI0 interrupt. The following table is an excerpt of the
SPI0 row from
.
Table 3-3. Interrupt vector assignments
Address
Vector
NVIC IPR
register
Source module
Source description
0x0000_0068
26
10
2
SPI0
Single interrupt vector for all sources
1. Indicates the NVIC's interrupt source number.
2. Indicates the NVIC's IPR register number used for this IRQ. The equation to calculate this value is: IRQ div 4.
• The NVIC registers you would use to configure the interrupt are:
Nested vectored interrupt controller (NVIC)
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
52
Freescale Semiconductor, Inc.
Содержание MKL27Z128VFM4
Страница 2: ...KL27 Sub Family Reference Manual Rev 5 01 2016 2 Freescale Semiconductor Inc...
Страница 54: ...AWIC introduction KL27 Sub Family Reference Manual Rev 5 01 2016 54 Freescale Semiconductor Inc...
Страница 100: ...Module operation in low power modes KL27 Sub Family Reference Manual Rev 5 01 2016 100 Freescale Semiconductor Inc...
Страница 142: ...Functional description KL27 Sub Family Reference Manual Rev 5 01 2016 142 Freescale Semiconductor Inc...
Страница 248: ...Memory map and register descriptions KL27 Sub Family Reference Manual Rev 5 01 2016 248 Freescale Semiconductor Inc...
Страница 256: ...Memory map register descriptions KL27 Sub Family Reference Manual Rev 5 01 2016 256 Freescale Semiconductor Inc...
Страница 262: ...Initialization application information KL27 Sub Family Reference Manual Rev 5 01 2016 262 Freescale Semiconductor Inc...
Страница 292: ...Functional description KL27 Sub Family Reference Manual Rev 5 01 2016 292 Freescale Semiconductor Inc...
Страница 324: ...Functional Description KL27 Sub Family Reference Manual Rev 5 01 2016 324 Freescale Semiconductor Inc...
Страница 390: ...Application information KL27 Sub Family Reference Manual Rev 5 01 2016 390 Freescale Semiconductor Inc...
Страница 422: ...Functional description KL27 Sub Family Reference Manual Rev 5 01 2016 422 Freescale Semiconductor Inc...
Страница 432: ...Initialization Application Information KL27 Sub Family Reference Manual Rev 5 01 2016 432 Freescale Semiconductor Inc...
Страница 442: ...Functional description KL27 Sub Family Reference Manual Rev 5 01 2016 442 Freescale Semiconductor Inc...
Страница 512: ...Functional description KL27 Sub Family Reference Manual Rev 5 01 2016 512 Freescale Semiconductor Inc...
Страница 610: ...Initialization application information KL27 Sub Family Reference Manual Rev 5 01 2016 610 Freescale Semiconductor Inc...
Страница 646: ...Initialization application information KL27 Sub Family Reference Manual Rev 5 01 2016 646 Freescale Semiconductor Inc...
Страница 744: ...Application information KL27 Sub Family Reference Manual Rev 5 01 2016 744 Freescale Semiconductor Inc...
Страница 784: ...Application Information KL27 Sub Family Reference Manual Rev 5 01 2016 784 Freescale Semiconductor Inc...
Страница 830: ...Functional description KL27 Sub Family Reference Manual Rev 5 01 2016 830 Freescale Semiconductor Inc...
Страница 850: ...Application information KL27 Sub Family Reference Manual Rev 5 01 2016 850 Freescale Semiconductor Inc...
Страница 886: ...Functional description KL27 Sub Family Reference Manual Rev 5 01 2016 886 Freescale Semiconductor Inc...