CMS32L051 User Manual |Chapter 7 Real-Time Clock
www.mcu.com.cn 228 / 703
7.3.5 Clock error correction register (SUBCUD)
This is a register that can correct clock speed with high accuracy by changing the overflow value
(reference value: 7FFFH) from the internal counter (16 bits) to the second count register (SEC).
The SUBCUD register is set via a 16-bit memory operation command. After the reset signal is
generated, the value of this register becomes 00 00H.
Figure 7-6 Format of clock error correction register (SUBCUD)
Address: 0x40044F34H After reset: 0000H R/W
Symbol
15 14 13 12 11 10 9 8
SUBCUD
7 6 5 4 3 2 1 0
When (F12, F11, F10, F9, F8, F7, F6, F5, F4, F3, F2, F1, F0) = (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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) or ( 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1),
no correction of clock error is performed.
Range of correction values: (F12=0)2, 4, 6, 8, ... , 8186, 8188
(F12=1)2, 4, 6, 8, , 8186, 8188