UM10429
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2010. All rights reserved.
User manual
Rev. 1 — 20 October 2010
228 of 258
NXP Semiconductors
UM10429
Chapter 19: Appendix LPC1102 ARM Cortex-M0 reference
•
A programmable priority level of 0-3 for each interrupt. A higher level corresponds to a
lower priority, so level 0 is the highest interrupt priority.
•
Level and pulse detection of interrupt signals.
•
Interrupt tail-chaining.
•
An external
Non-maskable interrupt
(NMI). The NMI is not implemented on the
LPC1102.
The processor automatically stacks its state on exception entry and unstacks this state on
exception exit, with no instruction overhead. This provides low latency exception handling.
The hardware implementation of the NVIC registers is:
19.5.2.1 Accessing the Cortex-M0 NVIC registers using CMSIS
CMSIS functions enable software portability between different Cortex-M profile
processors.
To access the NVIC registers when using CMSIS, use the following functions:
[1]
The input parameter IRQn is the IRQ number, see
for more information.
19.5.2.2 Interrupt Set-enable Register
The ISER enables interrupts, and shows which interrupts are enabled. See the register
summary in
for the register attributes.
The bit assignments are:
Table 213. NVIC register summary
Address
Name
Type
Reset value
Description
0xE000E100
ISER
RW
0x00000000
0xE000E180
ICER
RW
0x00000000
0xE000E200
ISPR
RW
0x00000000
0xE000E280
ICPR
RW
0x00000000
0xE000E400
-
0x
E000E41C
IPR0-7
RW
0x00000000
Table 214. CMISIS access NVIC functions
CMSIS function
Description
void NVIC_EnableIRQ(IRQn_Type IRQn)
Enables an interrupt or exception.
void NVIC_DisableIRQ(IRQn_Type IRQn)
Disables an interrupt or exception.
void NVIC_SetPendingIRQ(IRQn_Type IRQn)
Sets the pending status of interrupt or exception to 1.
void NVIC_ClearPendingIRQ(IRQn_Type IRQn)
Clears the pending status of interrupt or exception to 0.
uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn)
Reads the pending status of interrupt or exception.
This function returns non-zero value if the pending status is set
to 1.
void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
Sets the priority of an interrupt or exception with configurable
priority level to 1.
uint32_t NVIC_GetPriority(IRQn_Type IRQn)
Reads the priority of an interrupt or exception with configurable
priority level. This function returns the current priority level.