Real-Time Clock
7-182
Table 7–139. RTC Control Register (RTC_CTRL_REG)
Bit
Name
Reset
Value
Function
R/W
7
Reserved
R
6
RTC_DISABLE
†
0
RTC enabled
R/W
1
RTC disabled (no 32-kHz clock)
5
SET_32_COUNTER
‡
0
No action
R/W
1
Sets the 32-kHz counter with COMP_REG (14:0) val-
ue
4
TEST_MODE
0
Functional mode
R/W
1
Test mode (autocompensation is enabled when
32-kHz counter reaches its end)
3
MODE_12_24
§
0
24-hour mode
R/W
1
12-hour mode (PM/AM mode)
2
AUTO_COMP
0
Autocompensation disabled
R/W
1
Autocompensation enabled
1
ROUND_30S
¶
0
No update
R/W
1
Rounding enabled
0
STOP_RTC
0
RTC is frozen
R/W
1
RTC is running
† RTC_DISABLE can be written to 1 to disable RTC clock. Behavior is unpredictable if this bit is reset to 0 after having been
set to 1.
‡ SET_32_COUNTER must only be used when the RTC is frozen. The set operation is asynchronous, which means the RTC
counter is frozen to the compensation value as long as this bit is set. The correct sequence: reset STOP_RTC (freezes RTC),
set SET_32_COUNTER bit, set STOP_RTC (launches RTC), then reset SET_32_COUNTER bit (3 register writes).
§ You can switch between the two modes at any time without disturbing the RTC. Read or write is always performed using the
current mode.
¶ ROUND_30S is a toggle bit: MPU can only write 1, RTC clears it. If the MPU sets this bit and then reads it, the MPU reads
1 until the rounding to the closet minute is performed at the next second.