stm32 /stm32wl3 /STM32WL33 /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 (TSEDGE)TSEDGE 0 (BYPSHAD)BYPSHAD 0 (B_0x0)FMT 0 (ALRAE)ALRAE 0 (WUTE)WUTE 0 (TSE)TSE 0 (ALRAIE)ALRAIE 0 (WUTIE)WUTIE 0 (B_0x0)TSIE 0 (ADD1H)ADD1H 0 (SUB1H)SUB1H 0 (BKP)BKP 0 (COSEL)COSEL 0 (POL)POL 0OSEL 0 (COE)COE 0 (ITSE)ITSE

TSIE=B_0x0, 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

TSEDGE

Time-stamp event active edge 0: RTC_TS input rising edge generates a time-stamp event 1: RTC_TS input falling edge generates a time-stamp event TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting.

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

TSE

Timestamp enable 0: Timestamp disable 1: Timestamp enable

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

TSIE

Time-stamp interrupt enable

0 (B_0x0): Time-stamp Interrupt disable

1 (B_0x1): Time-stamp Interrupt enable

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

ITSE

Timestamp on internal event enable 0: Internal event timestamp disable 1: Internal event timestamp enable

Links

()