BIN=B_0x0, SHPF=B_0x0, RSF=B_0x0, WUTWF=B_0x0, BCDU=B_0x0, INIT=B_0x0, INITF=B_0x0, INITS=B_0x0
RTC initialization control and status register
WUTWF | Wake-up timer write flag This bit is set by hardware when WUT value can be changed, after the WUTE bit has been set to 0 in RTC_CR. It is cleared by hardware in initialization mode. 0 (B_0x0): Wake-up timer configuration update not allowed except in initialization mode 1 (B_0x1): Wake-up timer configuration update allowed |
SHPF | Shift operation pending This flag is set by hardware as soon as a shift operation is initiated by a write to the RTC_SHIFTR register. It is cleared by hardware when the corresponding shift operation has been executed. Writing to the SHPF bit has no effect. 0 (B_0x0): No shift operation is pending 1 (B_0x1): A shift operation is pending |
INITS | Initialization status flag This bit is set by hardware when the calendar year field is different from 0 (Backup domain reset state). 0 (B_0x0): Calendar has not been initialized 1 (B_0x1): Calendar has been initialized |
RSF | Registers synchronization flag This bit is set by hardware each time the calendar registers are copied into the shadow registers (RTC_SSR, RTC_TR and RTC_DR). This bit is cleared by hardware in initialization mode, while a shift operation is pending (SHPF = 1), or when in bypass shadow register mode (BYPSHAD = 1). This bit can also be cleared by software. It is cleared either by software or by hardware in initialization mode. 0 (B_0x0): Calendar shadow registers not yet synchronized 1 (B_0x1): Calendar shadow registers synchronized |
INITF | Initialization flag When this bit is set to 1, the RTC is in initialization state, and the time, date and prescaler registers can be updated. 0 (B_0x0): Calendar registers update is not allowed 1 (B_0x1): Calendar registers update is allowed |
INIT | Initialization mode 0 (B_0x0): Free running mode 1 (B_0x1): Initialization mode used to program time and date register (RTC_TR and RTC_DR), and prescaler register (RTC_PRER), plus BIN and BCDU fields. Counters are stopped and start counting from the new value when INIT is reset. |
BIN | Binary mode 0 (B_0x0): Free running BCD calendar mode (Binary mode disabled). 1 (B_0x1): Free running Binary mode (BCD mode disabled) 2 (B_0x2): Free running BCD calendar and Binary modes 3 (B_0x3): Free running BCD calendar and Binary modes |
BCDU | BCD update (BIN = 10 or 11) In mixed mode when both BCD calendar and binary extended counter are used (BIN = 10 or 11), the calendar second is incremented using the SSR Least Significant Bits. 0 (B_0x0): 1s calendar increment is generated each time SS[7:0] = 0 1 (B_0x1): 1s calendar increment is generated each time SS[8:0] = 0 2 (B_0x2): 1s calendar increment is generated each time SS[9:0] = 0 3 (B_0x3): 1s calendar increment is generated each time SS[10:0] = 0 4 (B_0x4): 1s calendar increment is generated each time SS[11:0] = 0 5 (B_0x5): 1s calendar increment is generated each time SS[12:0] = 0 6 (B_0x6): 1s calendar increment is generated each time SS[13:0] = 0 7 (B_0x7): 1s calendar increment is generated each time SS[14:0] = 0 |
RECALPF | Recalibration pending Flag The RECALPF status flag is automatically set to 1 when software writes to the RTC_CALR register, indicating that the RTC_CALR register is blocked. When the new calibration settings are taken into account, this bit returns to 0. Refer to Re-calibration on-the-fly. |