BAT32G1x9 user manual | Chapter 11 Real-time clock
451 / 1149
Rev.1.02
11.3.10
Week Count Register (WEEK).
This is an 8-bit register that represents the week count value in 0 to 6 (decimal). Increment
the count synchronously with the daily 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 decimal value must be set to 00~06 in the BCD code.
Set the WEEK register via the 8-bit memory operation instructions. After generating a reset
signal, the value of this register changes to "00H".
Figure 11-10 Format of the Week Count Register (WEEK).
Address: 0x40044F55H
after reset:
00HR/W
Symbol
7 6 5 4 3 2 1 0
WEEK
Note 1
The corresponding values of the
month count register (MONTH) and the day count register (DAY) are not
automatically saved to the week register
(WEEK). The following settings must be made after the reset is lifted:
Week day
WEEK
Sunday
00H
Monday
01H
Tuesday
02H
Wednesday
03H
Thursday
04H
Friday
05H
Saturday
06H
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
0
0
0
WEEK4
WEEK2
WEEK1