stm32 /stm32wb0 /STM32WB06 /RTC /RTC_CR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as RTC_CR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0WUCKSEL 0 (BYPSHAD)BYPSHAD 0 (B_0x0)FMT 0 (ALRAE)ALRAE 0 (WUTE)WUTE 0 (ALRAIE)ALRAIE 0 (WUTIE)WUTIE 0 (ADD1H)ADD1H 0 (SUB1H)SUB1H 0 (BKP)BKP 0 (COSEL)COSEL 0 (POL)POL 0OSEL 0 (COE)COE

FMT=B_0x0

Description

RTC_CR register

Fields

WUCKSEL

Wakeup clock selection 000: RTC/16 clock is selected 001: RTC/8 clock is selected 010: RTC/4 clock is selected 011: RTC/2 clock is selected 10x: ck_spre (usually 1 Hz) clock is selected 11x: ck_spre (usually 1 Hz) clock is selected and 216 is added to the WUT counter value

BYPSHAD

Bypass the shadow registers 0: Calendar values (when reading from RTC_SSR, RTC_TR, and RTC_DR) are taken from the shadow registers, which are updated once every two RTCCLK cycles. 1: Calendar values (when reading from RTC_SSR, RTC_TR, and RTC_DR) are taken directly from the calendar counters.

FMT

Hour format

0 (B_0x0): 24 hour/day format

1 (B_0x1): AM/PM hour format

ALRAE

Alarm A enable 0: Alarm A disabled 1: Alarm A enabled

WUTE

Wakeup timer enable 0: Wakeup timer disabled 1: Wakeup timer enabled

ALRAIE

Alarm A interrupt enable 0: Alarm A interrupt disabled 1: Alarm A interrupt enabled

WUTIE

Wakeup timer interrupt enable 0: Wakeup timer interrupt disabled 1: Wakeup timer interrupt enabled

ADD1H

Add 1 hour (summer time change) When this bit is set outside initialization mode, 1 hour is added to the calendar time. This bit is always read as 0. 0: No effect 1: Adds 1 hour to the current time. This can be used for summer time change

SUB1H

Subtract 1 hour (winter time change) When this bit is set outside initialization mode, 1 hour is subtracted to the calendar time if the current hour is not 0. This bit is always read as 0. Setting this bit has no effect when current hour is 0. 0: No effect 1: Subtracts 1 hour to the current time. This can be used for winter time change.

BKP

Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not.

COSEL

Calibration output selection When COE=1, this bit selects which signal is output on RTC_CALIB. 0: Calibration output is 512 Hz 1: Calibration output is 1 Hz These frequencies are valid for RTCCLK at 32.768 kHz and prescalers at their default values (PREDIV_A=127 and PREDIV_S=255).

POL

Output polarity This bit is used to configure the polarity of RTC_ALARM output 0: The pin is high when ALRAF/WUTF is asserted (depending on OSEL[1:0]) 1: The pin is low when ALRAF/WUTF is asserted (depending on OSEL[1:0]).

OSEL

Output selection These bits are used to select the flag to be routed to RTC_ALARM output 00: Output disabled 01: Alarm A output enabled 10: Reserved 11: Wakeup output enabled

COE

Calibration output enable This bit enables the RTC_CALIB output 0: Calibration output disabled 1: Calibration output enabled

Links

()