![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 452](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609452.webp)
BAT32G1x9 user manual | Chapter 11 Real-time clock
452 / 1149
Rev.1.02
11.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 daily counter.
At write time, the data is first written to the buffer and to the counter after passing through up to 2 f
RTC
clocks. The overflow of the day count register is ignored during the write operation and set to the write value.
The decimal 01~12 must be set in the BCD code.
The MONTH register is set by the 8-bit memory operation instruction. After generating a reset
signal, the value of this register changes to "01H".
Figure 11-11 Format of the Month Count Register (MONTH).
Address: 0x40044F57H
After reset:
01HR/W
Symbol
7 6 5 4 3 2 1 0
MONTH
Note That to read and write this register
while the counter is running (
RTCE=1
), it must follow the steps described
in
"11.4.3 Reading and Writing to a Real-Time Clock Counter".
11.3.12
Year Count Register (YEAR).
This is an 8-bit register representing the annual count value from 0 to 99 (decimal). The count is
incremented by the overflow of the month counter (MONTH). 00, 04, 08, ...... , 92, 96 are leap years.
At write time, the data is first written to the buffer and to the counter after passing through up to 2 f
RTC
clocks. The overflow of the MONTH register is ignored during the write operation and is set to the write
value. The decimal value must be set to 00~99 in the BCD code. Set the YEAR register with an 8-bit
memory operation instruction. After generating a reset signal, the value of this register changes to "00H".
Figure 11-12 Format of the Year Count Register (YEAR).
Address: 0x40044F58H
after reset:
00H R/W
Symbol
7 6 5 4 3 2 1 0
YEAR
Note That to read and write this register
while the counter is running (
RTCE=1
), it must follow the steps described
in
"11.4.3 Reading and Writing to a Real-Time Clock Counter".
0
0
0
MONTH10
MONTH8
MONTH4
MYTH2
MONTH1
YEAR80
YEAR40
ANDEAR20
YEAR10
YEAR8
ANDEAR4
YEAR2
YEAR1