EasyManua.ls Logo

NXP Semiconductors KL25 Series - Page 54

NXP Semiconductors KL25 Series
807 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Table 3-7. Interrupt vector assignments (continued)
Address Vector IRQ
1
NVIC
IPR
register
number
2
Source module Source description
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
0x0000_00A0 40 24 6 USB OTG
0x0000_00A4 41 25 6 DAC0
0x0000_00A8 42 26 6 TSI0
0x0000_00AC 43 27 6 MCG
0x0000_00B0 44 28 7 LPTMR0
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 ( 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.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 Interrupt priority levels.
Table 3-8. Interrupt vector assignments
Address Vector IRQ
1
NVIC IPR
register
number
2
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:
NVICIPR2
To determine the particular IRQ's bitfield location within these particular registers:
NVICIPR2 bitfield starting location = 8 * (IRQ mod 4) + 6 = 22
Since the NVICIPR bitfields are 2-bit wide (4 priority levels), the NVICIPR2 bitfield
range is 22-23
Therefore, the following bitfield locations are used to configure the SPI0 interrupts:
Core Modules
KL25 Sub-Family Reference Manual, Rev. 3, September 2012
54 Freescale Semiconductor, Inc.

Table of Contents

Related product manuals