Core peripherals
4.5.1
SysTick control and status register (STK_CTRL)
Address offset: 0x00
Reset value: 0x0000 0000
Required privilege: Privileged
The SysTick CTRL register enables the SysTick features.
31
30
29
28
15
14
13
12
Bits 31:17 Reserved, must be kept cleared.
Bit 16 COUNTFLAG:
Returns 1 if timer counted to 0 since last time this was read.
Bits 15:3 Reserved, must be kept cleared.
Bit 2 CLKSOURCE: Clock source selection
Selects the clock source.
0: AHB/8
1: Processor clock (AHB)
Bit 1 TICKINT: SysTick exception request enable
0: Counting down to zero does not assert the SysTick exception request
1: Counting down to zero to asserts the SysTick exception request.
Note: Software can use COUNTFLAG to determine if SysTick has ever counted to zero.
Bit 0 ENABLE: Counter enable
Enables the counter. When ENABLE is set to 1, the counter loads the RELOAD value from the
LOAD register and then counts down. On reaching 0, it sets the COUNTFLAG to 1 and
optionally asserts the SysTick depending on the value of TICKINT. It then loads the RELOAD
value again, and begins counting.
0: Counter disabled
1: Counter enabled
246/260
27
26
25
24
Reserved
11
10
9
8
Reserved
DocID022708 Rev 6
23
22
21
20
7
6
5
4
PM0214
19
18
17
16
COUNT
FLAG
rw
3
2
1
0
CLKSO
TICK
EN
URCE
INT
ABLE
rw
rw
rw
Need help?
Do you have a question about the STM32F4 Series and is the answer not in the manual?
Questions and answers