CMS32L051 User Manual |Chapter 7 Real-Time Clock
www.mcu.com.cn 234 / 703
7.3.11 Month count register (MONTH)
This is an 8-bit register that represents the monthly count value from 1 to 12 (decimal). The count is
incremented by the overflow of the day counter.
At write time, data is first written to the buffer and to the counter after up to 2 fRTC clocks. Overflow of the
day count register is ignored during the write operation and set to a write value. The decimal 01~12 must be
set in BCD code.
The MONTH register is set via an 8-bit memory operation command. After the reset signal is generated,
the value of this register changes to 01H.
Figure 7-12 Format of month count register (MONTH)
Address: 0x40044F57H After reset: 01H R/W
Symbol
7 6 5 4 3 2 1 0
MONTH
Note To read and write this register while the counter is running (RTCE=1), you must follow the steps described in
7.4.3Read and write to the real-time clock counter.
7.3.12 Year Count Register (YEAR)
This is an 8-bit register that represents the annual count value from 0 to 99 (decimal). Increment counts
by overflow of the month counter (MONTH).
00, 04, 08, ...... 92, 96 are leap years.
At write time, data is first written to the buffer and to the counter after up to 2 fRTC clocks. Overflow of the
MONTH register is ignored during the write operation and set to the write value. The decimal 00 to 99 must be
set in BCD code. The YEAR register is set via an 8-bit memory operation command. After the reset signal is
generated, the value of this register becomes 00H.
Figure 7-13 Format of year count register (YEAR)
Address: 0x40044F58H After reset: 00H R/W
Symbol
7 6 5 4 3 2 1 0
YEAR
Note To read and write this register while the counter is running (RTCE=1), you must follow the steps described in 7.4.3
Read and write to the real-time clock counter.