![Cmsemicon BAT32G1 9 Series Скачать руководство пользователя страница 447](http://html1.mh-extra.com/html/cmsemicon/bat32g1-9-series/bat32g1-9-series_user-manual_2627609447.webp)
BAT32G1x9 user manual | Chapter 11 Real-time clock
447 / 1149
Rev.1.02
11.3.6
Seconds Count Register (SEC).
This is an 8-bit register that represents the second count value from 0 to 59 (decimal). The count is
incremented by the overflow of the internal counter (16 bits). At write time, the data is first written to the buffer
and to the counter after passing through up to 2 fRTC clocks. The decimal value must be set to 00~59 in the
BCD code.
Set the SEC registers via the 8-bit memory operation instructions. After generating a reset
signal, the value of this register changes to "00H".
Figure 11-6 sec count register (SEC) format
Address: 0x40044F52
After reset:
00H R/W
Symbol
7 6 5 4 3 2 1 0
SEC
Note that to read and write this register during counter operation (
RTCE=1), it must be done
according to the steps described in "11.4.3 Reading and Writing of Real-Time Clock Counters". Note If the
Write Second Count Register (SEC) clears the internal counter (16 bits).
11.3.7
Minute Count Register (MIN).
This is an 8-bit register that represents the minute count value in 0 to 59 (decimal). The count is
incremented by the overflow of the second counter. At write time, the data is first written to the buffer and to
the counter after passing through up to 2 fRTC clocks. The overflow of the second count register is ignored
during the write operation and is set to the write value. The decimal value must be set to 00~59 in the BCD
code.
Set the MIN register via the 8-bit memory operation instruction. After generating a reset signal, the value
of this register changes to "00H".
Figure 11-7 min count register (MIN) format
Address: 0x40044F53
After reset:
00H R/W
Symbol
7 6 5 4 3 2 1 0
MIN
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
SEC40
SEC20
SEC10
SEC8
SEC4
SEC2
SEC1
0
MANDN40
MIN20
MANDN1
0
MIN8
MIN4
MIN2
MIN1