EasyManua.ls Logo

Cmsemicon CMS32L051 - Day Count Register (DAY)

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 7 Real-Time Clock
www.mcu.com.cn 232 / 703
7.3.9 Day count register (DAY)
This is an 8-bit register that represents the daily count value from 1 to 31 (decimal). The count is
incremented by the overflow of the hour counter. The counter performs the following counts.
01 to 31 (January, March, May, July, August, October, December)
01 to 30 (April, June, September, November)
01 to 29 (February, leap year)
01 to 28 (February, normal year)
When data is written to this register, it is written to a buffer and then to the counter up to two cycles of F
RTC
later. Even if the hour count register overflows while this register is being written, this register ignores the overflow
and is set to the value written. Set a decimal value of 01 to 31 to this register in BCD code.
The DAY register is set by an 8-bit memory manipulation instruction. After a reset signal is generated, the value
of this register becomes 01H.
Figure 7-10 Format of day count register (DAY)
Address: 0x40044F56H After reset: 01H R/W
Symbol
7 6 5 4 3 2 1
0
DAY
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.
0
0
DAY20
DAY10
DAY8
DAY4
DAY2
DAY1

Table of Contents

Related product manuals