
Reset and clock control (RCC)
RM0351
262/1830
DocID024597 Rev 5
6.4.26
APB1 peripheral clocks enable in Sleep and Stop modes register 2
(RCC_APB1SMENR2)
Address offset: 0x7C
Reset value: 0x0000 0027 (for STM32L496xx/4A6xx devices)
0x0000 0025 (for STM32L475xx/476xx/486xx devices)
Access: no wait state, word, half-word and byte access
Bit 4
TIM6SMEN
: TIM6 timer clocks enable during Sleep and Stop modes
Set and cleared by software.
0: TIM6 clocks disabled by the clock gating
during Sleep and Stop modes
1: TIM6 clocks enabled by the clock gating
during Sleep and Stop modes
Bit 3
TIM5SMEN
: TIM5 timer clocks enable during Sleep and Stop modes
Set and cleared by software.
0: TIM5 clocks disabled by the clock gating
during Sleep and Stop modes
1: TIM5 clocks enabled by the clock gating
during Sleep and Stop modes
Bit 2
TIM4SMEN
: TIM4 timer clocks enable during Sleep and Stop modes
Set and cleared by software.
0: TIM4 clocks disabled by the clock gating
during Sleep and Stop modes
1: TIM4 clocks enabled by the clock gating
during Sleep and Stop modes
Bit 1
TIM3SMEN
: TIM3 timer clocks enable during Sleep and Stop modes
Set and cleared by software.
0: TIM3 clocks disabled by the clock gating
during Sleep and Stop modes
1: TIM3 clocks enabled by the clock gating
during Sleep and Stop modes
Bit 0
TIM2SMEN
: TIM2 timer clocks enable during Sleep and Stop modes
Set and cleared by software.
0: TIM2 clocks disabled by the clock gating
during Sleep and Stop modes
1: TIM2 clocks enabled by the clock gating
during Sleep and Stop modes
1. This register only configures the clock gating, not the clock source itself. Most of the peripherals are clocked by a single
clock (AHB or APB clock), which is always disabled in Stop mode. In this case setting the bit has no effect in Stop mode.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
LPTIM
2SMEN
Res.
Res.
SWP
MI1
SMEN
I2C4S
MEN
LP
UART1
SMEN
rw
rw
rw
rw
Bits 31:6 Reserved, must be kept at reset value.
Bit 5
LPTIM2SMEN
Low power timer 2 clocks enable during Sleep and Stop modes
Set and cleared by software.
0: LPTIM2 clocks disabled by the clock gating
(1)
during Sleep and Stop modes
1: LPTIM2 clocks enabled by the clock gating
during Sleep and Stop modes
Bits 4:3 Reserved, must be kept at reset value.