• NVICIPR2
• To determine the particular IRQ's field location within these particular registers:
• NVICIPR2 field starting location = 8 * (IRQ mod 4) + 6 = 22
Since the NVICIPR fields are 2-bit wide (4 priority levels), the NVICIPR2 field
range is 22–23.
Therefore, the following field locations are used to configure the SPI0 interrupts:
• NVICIPR2[23:22]
3.3 AWIC introduction
The primary function of the AWIC block is to detect asynchronous wake-up events in
stop modes and signal to clock control logic to resume system clocking. After clock
restart, the NVIC observes the pending interrupt and performs the normal interrupt or
event processing.
3.3.1 Wake-up sources
The device uses the following internal and external inputs to the AWIC module.
Table 3-4. AWIC stop wake-up sources
Wake-up source
Description
Available system resets
RESET pin when LPO is its clock source
Low-voltage detect
Power management controller—functional in Stop mode
Low-voltage warning
Power management controller—functional in Stop mode
Pin interrupts
Port control module—any enabled pin interrupt is capable of waking the system
ADC
The ADC is functional when using internal clock source or external crystal clock
CMP0
Interrupt in normal or trigger mode
I
2
C
Address match wakeup
LPUART0 , LPUART1
Any enabled interrupt can be a source as long as the module remains clocked
UART2
Active edge on RXD
RTC
Alarm or seconds interrupt
NMI
NMI pin
TPMx
Any enabled interrupt can be a source as long as the module remains clocked
LPTMR
Any enabled interrupt can be a source as long as the module remains clocked
SPIx
Slave mode interrupt
FlexIO
Any enabled interrupt can be a source as long as the module remains clocked
Chapter 3 Core Overview
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
Freescale Semiconductor, Inc.
53