DocID025202 Rev 7
144/1080
RM0365
Reset and clock control (RCC)
154
9.4.9 RTC
domain
control register (RCC_BDCR)
Address offset: 0x20
Reset value: 0x0000 0018h reset by RTC domain Reset.
Access: 0
≤
wait state
≤
3, word, half-word and byte access
Wait states are inserted in case of successive accesses to this register.
Note:
The LSEON, LSEBYP, RTCSEL and RTCEN bits of the
are in the RTC domain. As a result, after Reset, these bits are write-protected
and the DBP bit in the
Power control register (PWR_CR)
has to be set before these can be
modified. These bits are only reset after a RTC domain Reset (see
). Any internal or external Reset will not have any effect on these bits.
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
BDRST
rw
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RTC
EN
Res
Res
Res
Res
Res
RTCSEL[1:0]
Res
Res
Res
LSEDRV[1:0]
LSE
BYP
LSE
RDY
LSEON
rw
rw
rw
rw
rw
rw
r
rw
Bits 31:17 Reserved, must be kept at reset value.
Bit 16
BDRST:
RTC domain software reset
Set and cleared by software.
0: Reset not activated
1: Resets the entire RTC domain
Bit 15
RTCEN:
RTC clock enable
Set and cleared by software.
0: RTC clock disabled
1: RTC clock enabled
Bits 14:10 Reserved, must be kept at reset value.
Bits 9:8
RTCSEL[1:0]:
RTC clock source selection
Set by software to select the clock source for the RTC. Once the RTC clock source has been
selected, it cannot be changed anymore unless the RTC domain is reset. The BDRST bit can
be used to reset them.
00: No clock
01: LSE oscillator clock used as RTC clock
10: LSI oscillator clock used as RTC clock
11: HSE oscillator clock divided by 32 used as RTC clock
Bits 7:5 Reserved, must be kept at reset value.
Bits 4:3
LSEDRV[1:0]:
LSE oscillator drive capability
Set and reset by software to modulate the LSE oscillator’s drive capability. A reset of the RTC
domain restores the default value.
00: ‘Xtal mode’ lower driving capability
01: ‘Xtal mode’ medium high driving capability
10: ‘Xtal mode’ medium low driving capability
11: ‘Xtal mode’ higher driving capability (reset value)
Note: The oscillator is in Xtal mode when it is not in bypass mode.