RL78/G1H CHAPTER 9 REAL-TIME CLOCK
R01UH0575EJ0120 Rev. 1.20 Page 249 of 920
Dec 22, 2016
9.3.10 Month count register (MONTH)
The MONTH register is an 8-bit register that takes a value of 1 to 12 (decimal) and indicates the count value of
months.
It counts up when the day counter overflows.
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.
Even if the day count register overflows while this register is being written, this register ignores the overflow and
is set to the value written. Set a decimal value of 01 to 12 to this register in BCD code.
The MONTH register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 01H.
Figure 9 - 12 Format of Month count register (MONTH)
Caution 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.
9.3.11 Year count register (YEAR)
The YEAR register is an 8-bit register that takes a value of 0 to 99 (decimal) and indicates the count value of
years.
It counts up when the month count register (MONTH) overflows.
Values 00, 04, 08, …, 92, and 96 indicate a leap year.
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.
Even if the MONTH register overflows while this register is being written, this register ignores the overflow and is
set to the value written. Set a decimal value of 00 to 99 to this register in BCD code.
The YEAR register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 9 - 13 Format of Year count register (YEAR)
Caution 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: FFF97H After reset: 01H R/W
Symbol76543210
MONTH 0 0 0 MONTH10 MONTH8 MONTH4 MONTH2 MONTH1
Address: FFF98H After reset: 00H R/W
Symbol76543210
YEAR YEAR80 YEAR40 YEAR20 YEAR10 YEAR8 YEAR4 YEAR2 YEAR1