BAT32G1x9 user manual | Chapter 11 Real-time clock
448 / 1149
Rev.1.02
11.3.8
Hour Count Register (HOUR).
This is 8 of the hour count value expressed in 00 to 23 or 01 to 12, 21 to 32 (decimal). Bit registers. The
count is incremented by the overflow of the minute 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 minute count register is ignored during the write operation and is set to the write
value.
The time system must be set according to the bit3 (AMPM) of the real-time clock control register 0
(RTCC0), and the decimal 00~ in BCD code 23 or 01~12, 21~32.
If you change the value of the AMPM bit, the value of the HOUR register becomes the corresponding
value of the time system set. Set the HOUR register via the 8-bit memory operation instruction. After
generating a reset signal, the value of this register changes to "12H".
However, if the AMPM position is "1" after reset, the value of this register becomes "00H".
Figure 11-8 Format of the Hour Count Register (HOUR).
Address: 0x40044F54
After reset:
12H R/W
Symbol
7 6 5 4 3 2 1 0
HOUR
Note 1 When the AMPM bit is selected as "0" (12-hour system), the BIT5 (HOUR20) representation of the
HOUR register is indicated AM (0) /PM (1)
。
2. To read and write this register in the run of the counter (RTCE=1), it must be carried out according to
the steps described in "1 1.4.3 Reading and Writing of the Real-Time Clock Counter".
0
0
HOUR20
HOUR10
HOUR8
HOUR4
HOUR2
HOUR1