LSEDRV=B_0x0, RTCEN=B_0x0, LSECSSD=B_0x0, LSESYSRDY=B_0x0, LSCOSEL=B_0x0, LSECSSON=B_0x0, LSCOEN=B_0x0, LSESYSEN=B_0x0, BDRST=B_0x0, LSEBYP=B_0x0, RTCSEL=B_0x0, LSERDY=B_0x0, LSEON=B_0x0
RTC domain control register
LSEON | LSE oscillator enable Set and cleared by software to enable LSE oscillator: 0 (B_0x0): Disable 1 (B_0x1): Enable |
LSERDY | LSE oscillator ready Set and cleared by hardware to indicate when the external 321kHz oscillator is ready (stable): After the LSEON bit is cleared, LSERDY goes low after 6 external low-speed oscillator clock cycles. 0 (B_0x0): Not ready 1 (B_0x1): Ready |
LSEBYP | LSE oscillator bypass Set and cleared by software to bypass the LSE oscillator (in debug mode). This bit can be written only when the external 321kHz oscillator is disabled (LSEON=0 and LSERDY=0). 0 (B_0x0): Not bypassed 1 (B_0x1): Bypassed |
LSEDRV | LSE oscillator drive capability Set by software to select the LSE oscillator drive capability as follows: Applicable when the LSE oscillator is in Xtal mode, as opposed to bypass mode. 0 (B_0x0): low driving capability 1 (B_0x1): medium-low driving capability 2 (B_0x2): medium-high driving capability 3 (B_0x3): high driving capability |
LSECSSON | CSS on LSE enable Set by software to enable the clock security system on LSE (321kHz) oscillator as follows: LSECSSON must be enabled after the LSE oscillator is enabled (LSEON bit enabled) and ready (LSERDY flag set by hardware), and after the RTCSEL bit is selected. Once enabled, this bit cannot be disabled, except after a LSE failure detection (LSECSSD =1). In that case the software must disable the LSECSSON bit. 0 (B_0x0): Disable 1 (B_0x1): Enable |
LSECSSD | CSS on LSE failure Detection Set by hardware to indicate when a failure is detected by the clock security system on the external 321kHz oscillator (LSE): 0 (B_0x0): No failure detected 1 (B_0x1): Failure detected |
LSESYSEN | LSE clock enable for system usage This bit must be set by software to enable the LSE clock for a system usage. 0 (B_0x0): Disabled 1 (B_0x1): Enabled, LSE distributed to peripherals including LSCO/MCO/SYSCLK. |
RTCSEL | RTC clock source selection Set by software to select the clock source for the RTC as follows: Once the RTC clock source is selected, it cannot be changed anymore unless the RTC domain is reset, or unless a failure is detected on LSE (LSECSSD is set). The BDRST bit can be used to reset this bitfield to 00. 0 (B_0x0): No clock 1 (B_0x1): LSE 2 (B_0x2): LSI 3 (B_0x3): HSE divided by 32 |
LSESYSRDY | LSE clock ready for system usage This flag is set by hardware to indicate that the LSE clock is ready for being used by the system (see LSESYSEN bit). This flag is set when LSE clock is ready (LSEON1=11 and LSERDY1=11) and two LSE clock cycles after that LSESYSEN is set. Cleared by hardware to indicate that the LSE clock is not ready to be used by the system. 0 (B_0x0): LSE clock not ready for system 1 (B_0x1): LSE clock ready for system |
RTCEN | RTC clock enable Set and cleared by software. The bit enables clock to RTC and TAMP. 0 (B_0x0): Disable 1 (B_0x1): Enable |
BDRST | RTC domain software reset Set and cleared by software to reset the RTC domain: 0 (B_0x0): No effect 1 (B_0x1): Reset |
LSCOEN | Low-speed clock output (LSCO) enable Set and cleared by software. 0 (B_0x0): Disable 1 (B_0x1): Enable |
LSCOSEL | Low-speed clock output selection Set and cleared by software to select the low-speed output clock: 0 (B_0x0): LSI 1 (B_0x1): LSE |