![Renesas RL78/G1H Скачать руководство пользователя страница 266](http://html.mh-extra.comrl78-g1h_user-manual_1440449266.png)
CHAPTER 9 REAL-TIME CLOCK
Page 248 of 920
9.3.9
The WEEK register is an 8-bit register that takes a value of 0 to 6 (decimal) and indicates the count value of
weekdays.
It counts up in synchronization with the day counter.
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.
Set a decimal value of 00 to 06 to this register in BCD code.
The WEEK register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 9 - 11 Format of Week count register (WEEK)
Caution 1. The value corresponding to the month count register (MONTH) or the day count register (DAY) is not
stored in the week count register (WEEK) automatically. After reset release, set the week count
register as follow.
Caution 2. When it reads or writes from/to the register while the counter is in operation (RTCE = 1), follow the
procedures described in the section 9.4.3 Reading/writing real-time clock.
Address: FFF95H
After reset: 00H
Symbol
7
6
5
4
3
2
1
0
0
0
0
0
0
WEEK4
WEEK2
WEEK1
Day
WEEK
Sunday
00 H
Monday
01 H
Tuesday
02 H
Wednesday
03 H
Thursday
04 H
Friday
05 H
Saturday
06 H
Содержание RL78/G1H
Страница 941: ...R01UH0575EJ0120 RL78 G1H...