CMS32L051 User Manual |Chapter 7 Real-Time Clock
www.mcu.com.cn 229 / 703
7.3.6 Second count register (SEC)
This is an 8-bit register that represents the second count value from 0 to 59 (decimal). Increment counting
is performed by overflow of the internal counter (16-bit).
At write time, data is first written to the buffer and to the counter after up to 2 FRTC clocks. The decimal
00 to 59 must be set in BCD code.
The SEC registers are set via 8-bit memory operation instructions. After the reset signal is generated, the
value of this register becomes 00H.
Figure 7-7 Format of second count register (SEC)
Address: 0x40044F52 After reset: 00H R/W
Symbol
7 6 5 4 3 2 1
0
SEC
Note To read and write this register while the counter is running (RTCE=1), you must follow the steps described in 7.4.3.
Note If you write the seconds count register (SEC), the internal counter (16 bits) is cleared.
7.3.7 Minute count register (MIN)
This is an 8-bit register that represents the minute count value from 0 to 59 (decimal). The count is
incremented by the overflow of the seconds counter.
During writing, data is first written to the buffer and to the counter after up to 2 f
RTC
clocks. Overflow of the
seconds count register is ignored during a write operation and set to a write value. The decimal 00 to 59 must
be set in BCD code.
MIN registers are set via 8-bit memory operation instructions. After the reset signal is generated, the value
of this register becomes 00H.
Figure 7-8 Format of minute count register (MIN)
Address: 0x40044F53 After reset: 00HR/W
Symbol
7 6 5 4 3 2 1 0
MIN
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.