Expand description
RTC control register
Structs§
- CRrs
- RTC control register
Enums§
- ADD1HW
- 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.
- ALRAE
- Alarm %s enable
- ALRAIE
- Alarm %s interrupt enable
- BKP
- Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not.
- BYPSHAD
- Bypass the shadow registers Note: If the frequency of the APB1 clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1.
- COE
- Calibration output enable This bit enables the CALIB output
- COSEL
- Calibration output selection When COE = 1, this bit selects which signal is output on 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 .
- FMT
- Hour format
- ITSE
- timestamp on internal event enable
- OSEL
- Output selection These bits are used to select the flag to be routed to TAMPALRM output.
- OUT2EN
- RTC_OUT2 output enable Setting this bit permits to remap the RTC outputs on RTC_OUT2 as follows: OUT2EN = 0: RTC output 2 disable If OSEL different 00 or TAMPOE = 1: TAMPALRM is output on RTC_OUT1 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT1 OUT2EN = 1: RTC output 2 enable If (OSEL different 00 or TAMPOE = 1) and COE = 0: TAMPALRM is output on RTC_OUT2 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT2 If (OSEL different 00 or TAMPOE = 1) and COE = 1: CALIB is output on RTC_OUT2 and TAMPALRM is output on RTC_OUT1.
- POL
- Output polarity This bit is used to configure the polarity of TAMPALRM output.
- REFCKON
- RTC_REFIN reference clock detection enable (50 or 60 Hz) Note: BIN must be 0x00 and PREDIV_S must be 0x00FF.
- SUB1HW
- 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.
- TAMPALRM_
PU - TAMPALRM pull-up enable
- TAMPALRM_
TYPE - TAMPALRM output type
- TAMPOE
- Tamper detection output enable on TAMPALRM
- TAMPTS
- Activate timestamp on tamper detection event TAMPTS is valid even if TSE = 0 in the RTC_CR register. Timestamp flag is set up to 3 ck_apre cycles after the tamper flags.
- TSE
- timestamp enable
- TSEDGE
- Timestamp event active edge TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting.
- TSIE
- Timestamp interrupt enable
- WUCKSEL
- ck_wut wakeup clock selection 10x: ck_spre (usually 1 Hz) clock is selected in BCD mode. In binary or mixed mode, this is the clock selected by BCDU. 11x: ck_spre (usually 1 Hz) clock is selected in BCD mode. In binary or mixed mode, this is the clock selected by BCDU. Furthermore, 216 is added to the WUT counter value.
- WUTE
- Wakeup timer enable Note: When the wakeup timer is disabled, wait for WUTWF = 1 before enabling it again.
- WUTIE
- Wakeup timer interrupt enable
Type Aliases§
- ADD1H_W
- Field
ADD1Hwriter - 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. - ALRAFCLR_
R - Field
ALRAFCLRreader - Alarm A flag automatic clear - ALRAFCLR_
W - Field
ALRAFCLRwriter - Alarm A flag automatic clear - ALRBFCLR_
R - Field
ALRBFCLRreader - Alarm B flag automatic clear - ALRBFCLR_
W - Field
ALRBFCLRwriter - Alarm B flag automatic clear - ALRE_R
- Field
ALRE(A,B)reader - Alarm %s enable - ALRE_W
- Field
ALRE(A,B)writer - Alarm %s enable - ALRIE_R
- Field
ALRIE(A,B)reader - Alarm %s interrupt enable - ALRIE_W
- Field
ALRIE(A,B)writer - Alarm %s interrupt enable - BKP_R
- Field
BKPreader - Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not. - BKP_W
- Field
BKPwriter - Backup This bit can be written by the user to memorize whether the daylight saving time change has been performed or not. - BYPSHAD_
R - Field
BYPSHADreader - Bypass the shadow registers Note: If the frequency of the APB1 clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1. - BYPSHAD_
W - Field
BYPSHADwriter - Bypass the shadow registers Note: If the frequency of the APB1 clock is less than seven times the frequency of RTCCLK, BYPSHAD must be set to 1. - COE_R
- Field
COEreader - Calibration output enable This bit enables the CALIB output - COE_W
- Field
COEwriter - Calibration output enable This bit enables the CALIB output - COSEL_R
- Field
COSELreader - Calibration output selection When COE = 1, this bit selects which signal is output on 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 . - COSEL_W
- Field
COSELwriter - Calibration output selection When COE = 1, this bit selects which signal is output on 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 . - FMT_R
- Field
FMTreader - Hour format - FMT_W
- Field
FMTwriter - Hour format - ITSE_R
- Field
ITSEreader - timestamp on internal event enable - ITSE_W
- Field
ITSEwriter - timestamp on internal event enable - OSEL_R
- Field
OSELreader - Output selection These bits are used to select the flag to be routed to TAMPALRM output. - OSEL_W
- Field
OSELwriter - Output selection These bits are used to select the flag to be routed to TAMPALRM output. - OUT2EN_
R - Field
OUT2ENreader - RTC_OUT2 output enable Setting this bit permits to remap the RTC outputs on RTC_OUT2 as follows: OUT2EN = 0: RTC output 2 disable If OSEL different 00 or TAMPOE = 1: TAMPALRM is output on RTC_OUT1 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT1 OUT2EN = 1: RTC output 2 enable If (OSEL different 00 or TAMPOE = 1) and COE = 0: TAMPALRM is output on RTC_OUT2 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT2 If (OSEL different 00 or TAMPOE = 1) and COE = 1: CALIB is output on RTC_OUT2 and TAMPALRM is output on RTC_OUT1. - OUT2EN_
W - Field
OUT2ENwriter - RTC_OUT2 output enable Setting this bit permits to remap the RTC outputs on RTC_OUT2 as follows: OUT2EN = 0: RTC output 2 disable If OSEL different 00 or TAMPOE = 1: TAMPALRM is output on RTC_OUT1 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT1 OUT2EN = 1: RTC output 2 enable If (OSEL different 00 or TAMPOE = 1) and COE = 0: TAMPALRM is output on RTC_OUT2 If OSEL = 00 and TAMPOE = 0 and COE = 1: CALIB is output on RTC_OUT2 If (OSEL different 00 or TAMPOE = 1) and COE = 1: CALIB is output on RTC_OUT2 and TAMPALRM is output on RTC_OUT1. - POL_R
- Field
POLreader - Output polarity This bit is used to configure the polarity of TAMPALRM output. - POL_W
- Field
POLwriter - Output polarity This bit is used to configure the polarity of TAMPALRM output. - R
- Register
CRreader - REFCKON_
R - Field
REFCKONreader - RTC_REFIN reference clock detection enable (50 or 60 Hz) Note: BIN must be 0x00 and PREDIV_S must be 0x00FF. - REFCKON_
W - Field
REFCKONwriter - RTC_REFIN reference clock detection enable (50 or 60 Hz) Note: BIN must be 0x00 and PREDIV_S must be 0x00FF. - SSRUIE_
R - Field
SSRUIEreader - SSR underflow interrupt enable - SSRUIE_
W - Field
SSRUIEwriter - SSR underflow interrupt enable - SUB1H_W
- Field
SUB1Hwriter - 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. - TAMPALRM_
PU_ R - Field
TAMPALRM_PUreader - TAMPALRM pull-up enable - TAMPALRM_
PU_ W - Field
TAMPALRM_PUwriter - TAMPALRM pull-up enable - TAMPALRM_
TYPE_ R - Field
TAMPALRM_TYPEreader - TAMPALRM output type - TAMPALRM_
TYPE_ W - Field
TAMPALRM_TYPEwriter - TAMPALRM output type - TAMPOE_
R - Field
TAMPOEreader - Tamper detection output enable on TAMPALRM - TAMPOE_
W - Field
TAMPOEwriter - Tamper detection output enable on TAMPALRM - TAMPTS_
R - Field
TAMPTSreader - Activate timestamp on tamper detection event TAMPTS is valid even if TSE = 0 in the RTC_CR register. Timestamp flag is set up to 3 ck_apre cycles after the tamper flags. - TAMPTS_
W - Field
TAMPTSwriter - Activate timestamp on tamper detection event TAMPTS is valid even if TSE = 0 in the RTC_CR register. Timestamp flag is set up to 3 ck_apre cycles after the tamper flags. - TSEDGE_
R - Field
TSEDGEreader - Timestamp event active edge TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting. - TSEDGE_
W - Field
TSEDGEwriter - Timestamp event active edge TSE must be reset when TSEDGE is changed to avoid unwanted TSF setting. - TSE_R
- Field
TSEreader - timestamp enable - TSE_W
- Field
TSEwriter - timestamp enable - TSIE_R
- Field
TSIEreader - Timestamp interrupt enable - TSIE_W
- Field
TSIEwriter - Timestamp interrupt enable - W
- Register
CRwriter - WUCKSEL_
R - Field
WUCKSELreader - ck_wut wakeup clock selection 10x: ck_spre (usually 1 Hz) clock is selected in BCD mode. In binary or mixed mode, this is the clock selected by BCDU. 11x: ck_spre (usually 1 Hz) clock is selected in BCD mode. In binary or mixed mode, this is the clock selected by BCDU. Furthermore, 216 is added to the WUT counter value. - WUCKSEL_
W - Field
WUCKSELwriter - ck_wut wakeup clock selection 10x: ck_spre (usually 1 Hz) clock is selected in BCD mode. In binary or mixed mode, this is the clock selected by BCDU. 11x: ck_spre (usually 1 Hz) clock is selected in BCD mode. In binary or mixed mode, this is the clock selected by BCDU. Furthermore, 216 is added to the WUT counter value. - WUTE_R
- Field
WUTEreader - Wakeup timer enable Note: When the wakeup timer is disabled, wait for WUTWF = 1 before enabling it again. - WUTE_W
- Field
WUTEwriter - Wakeup timer enable Note: When the wakeup timer is disabled, wait for WUTWF = 1 before enabling it again. - WUTIE_R
- Field
WUTIEreader - Wakeup timer interrupt enable - WUTIE_W
- Field
WUTIEwriter - Wakeup timer interrupt enable