Expand description

RTC control register

Structs

RTC control register
Register CR reader
Register CR writer

Enums

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.
Alarm A enable
Alarm A interrupt enable
Alarm B enable
Alarm B interrupt enable
Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not.
Bypass the shadow registers Note: If the frequency of the APB clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1.
Calibration output enable This bit enables the RTC_CALIB output
Calibration output selection When COE=1, this bit selects which signal is output on RTC_CALIB. These frequencies are valid for RTCCLK at 32.768 kHz and prescalers at their default values (PREDIV_A=127 and PREDIV_S=255). Refer to Section24.3.15: Calibration clock output
Hour format
timestamp on internal event enable
Output selection These bits are used to select the flag to be routed to RTC_ALARM output
Output polarity This bit is used to configure the polarity of RTC_ALARM output
RTC_REFIN reference clock detection enable (50 or 60Hz) Note: PREDIV_S must be 0x00FF.
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.
Time-stamp event active edge TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting.
timestamp enable
Time-stamp interrupt enable
Wakeup clock selection
Wakeup timer enable
Wakeup timer interrupt enable

Type Definitions

Field ADD1H writer - 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.
Field ALRAE reader - Alarm A enable
Field ALRAE writer - Alarm A enable
Field ALRAIE reader - Alarm A interrupt enable
Field ALRAIE writer - Alarm A interrupt enable
Field ALRBE reader - Alarm B enable
Field ALRBE writer - Alarm B enable
Field ALRBIE reader - Alarm B interrupt enable
Field ALRBIE writer - Alarm B interrupt enable
Field BKP reader - Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not.
Field BKP writer - Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not.
Field BYPSHAD reader - Bypass the shadow registers Note: If the frequency of the APB clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1.
Field BYPSHAD writer - Bypass the shadow registers Note: If the frequency of the APB clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1.
Field COE reader - Calibration output enable This bit enables the RTC_CALIB output
Field COE writer - Calibration output enable This bit enables the RTC_CALIB output
Field COSEL reader - Calibration output selection When COE=1, this bit selects which signal is output on RTC_CALIB. These frequencies are valid for RTCCLK at 32.768 kHz and prescalers at their default values (PREDIV_A=127 and PREDIV_S=255). Refer to Section24.3.15: Calibration clock output
Field COSEL writer - Calibration output selection When COE=1, this bit selects which signal is output on RTC_CALIB. These frequencies are valid for RTCCLK at 32.768 kHz and prescalers at their default values (PREDIV_A=127 and PREDIV_S=255). Refer to Section24.3.15: Calibration clock output
Field FMT reader - Hour format
Field FMT writer - Hour format
Field ITSE reader - timestamp on internal event enable
Field ITSE writer - timestamp on internal event enable
Field OSEL reader - Output selection These bits are used to select the flag to be routed to RTC_ALARM output
Field OSEL writer - Output selection These bits are used to select the flag to be routed to RTC_ALARM output
Field POL reader - Output polarity This bit is used to configure the polarity of RTC_ALARM output
Field POL writer - Output polarity This bit is used to configure the polarity of RTC_ALARM output
Field REFCKON reader - RTC_REFIN reference clock detection enable (50 or 60Hz) Note: PREDIV_S must be 0x00FF.
Field REFCKON writer - RTC_REFIN reference clock detection enable (50 or 60Hz) Note: PREDIV_S must be 0x00FF.
Field SUB1H writer - 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.
Field TSEDGE reader - Time-stamp event active edge TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting.
Field TSEDGE writer - Time-stamp event active edge TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting.
Field TSE reader - timestamp enable
Field TSE writer - timestamp enable
Field TSIE reader - Time-stamp interrupt enable
Field TSIE writer - Time-stamp interrupt enable
Field WUCKSEL reader - Wakeup clock selection
Field WUCKSEL writer - Wakeup clock selection
Field WUTE reader - Wakeup timer enable
Field WUTE writer - Wakeup timer enable
Field WUTIE reader - Wakeup timer interrupt enable
Field WUTIE writer - Wakeup timer interrupt enable