UM10462
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 5.5 — 21 December 2016
434 of 523
NXP Semiconductors
UM10462
Chapter 24: LPC11U3x/2x/1x Appendix ARM Cortex-M0
System timer —
The system timer, SysTick, is a 24-bit count-down timer. Use this as a
Real Time Operating System (RTOS) tick timer or as a simple counter.
24.3 Processor
24.3.1 Programmers model
This section describes the Cortex-M0 programmers model. In addition to the individual
core register descriptions, it contains information about the processor modes and stacks.
24.3.1.1 Processor modes
The processor
modes
are:
Thread mode —
Used to execute application software. The processor enters Thread
mode when it comes out of reset.
Handler mode —
Used to handle exceptions. The processor returns to Thread mode
when it has finished all exception processing.
24.3.1.2 Stacks
The processor uses a full descending stack. This means the stack pointer indicates the
last stacked item on the stack memory. When the processor pushes a new item onto the
stack, it decrements the stack pointer and then writes the item to the new memory
location. The processor implements two stacks, the main stack and the process stack,
with independent copies of the stack pointer, see
In Thread mode, the CONTROL register controls whether the processor uses the main
stack or the process stack, see
. In Handler mode, the processor
always uses the main stack. The options for processor operations are:
24.3.1.3 Core registers
The processor core registers are:
Table 412. Summary of processor mode and stack use options
Processor
mode
Used to
execute
Stack used
Thread
Applications
Main stack or process stack
Handler
Exception
handlers
Main stack