Functional Peripherals Registers
137
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Cortex-M4F Peripherals
2.4.5.2
ICSR Register (Offset = D04h) [reset = 00000000h]
ICSR is shown in
and described in
.
Interrupt Control State Register. Use the Interrupt Control State Register to set a pending Non-Maskable
Interrupt (NMI), set or clear a pending SVC, set or clear a pending SysTick, check for pending exceptions,
check the vector number of the highest priority pending exception, check the vector number of the active
exception.
Figure 2-52. ICSR Register
31
30
29
28
27
26
25
24
NMIPENDSET
RESERVED
PENDSVSET
PENDSVCLR
PENDSTSET
PENDSTCLR
RESERVED
R/W-0h
R/W-0h
R/W-0h
W-0h
R/W-0h
W-0h
R/W-0h
23
22
21
20
19
18
17
16
ISRPREEMPT
ISRPENDING
RESERVED
VECTPENDING
R-0h
R-0h
R/W-0h
R-0h
15
14
13
12
11
10
9
8
VECTPENDING
RETTOBASE
RESERVED
VECTACTIVE
R-0h
R-0h
R/W-0h
R-0h
7
6
5
4
3
2
1
0
VECTACTIVE
R-0h
Table 2-60. ICSR Register Field Descriptions
Bit
Field
Type
Reset
Description
31
NMIPENDSET
R/W
0h
Set pending NMI bit. NMIPENDSET pends and activates an NMI.
Because NMI is the highest-priority interrupt, it takes effect as soon
as it registers.
0b (R/W) = do not set pending NMI
1b (R/W) = set pending NMI
30-29
RESERVED
R/W
0h
28
PENDSVSET
R/W
0h
Set pending pendSV bit.
0b (R/W) = do not set pending pendSV
1b (R/W) = set pending PendSV
27
PENDSVCLR
W
0h
Clear pending pendSV bit
0b (R/W) = do not clear pending pendSV
1b (R/W) = clear pending pendSV
26
PENDSTSET
R/W
0h
Set a pending SysTick bit.
0b (R/W) = do not set pending SysTick
1b (R/W) = set pending SysTick
25
PENDSTCLR
W
0h
Clear pending SysTick bit
0b (R/W) = do not clear pending SysTick
1b (R/W) = clear pending SysTick
24
RESERVED
R/W
0h
23
ISRPREEMPT
R
0h
You must only use this at debug time. It indicates that a pending
interrupt is to be taken in the next running cycle. If C_MASKINTS is
clear in the Debug Halting Control and Status Register, the interrupt
is serviced.
0b (R/W) = a pending exception is not serviced.
1b (R/W) = a pending exception is serviced on exit from the debug
halt state
22
ISRPENDING
R
0h
Interrupt pending flag. Excludes NMI and faults.
0b (R/W) = interrupt not pending
1b (R/W) = interrupt pending
21-18
RESERVED
R/W
0h