RL78/G1H CHAPTER 9 REAL-TIME CLOCK
R01UH0575EJ0120 Rev. 1.20 Page 251 of 920
Dec 22, 2016
9.3.13 Alarm minute register (ALARMWM)
This register is used to set minutes of alarm.
The ALARMWM register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Caution Set a decimal value of 00 to 59 to this register in BCD code. If a value outside the range is set,
the alarm is not detected.
Figure 9 - 15 Format of Alarm minute register (ALARMWM)
9.3.14 Alarm hour register (ALARMWH)
This register is used to set hours of alarm.
The ALARMWH register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 12H.
However, the value of this register is 00H if the AMPM bit is set to 1 after reset.
Caution Set a decimal value of 00 to 23, 01 to 12, or 21 to 32 to this register in BCD code. If a value
outside the range is set, the alarm is not detected.
Figure 9 - 16 Format of Alarm hour register (ALARMWH)
Caution Bit 5 (WH20) of the ALARMWH register indicates AM(0)/PM(1) if AMPM = 0 (if the 12-hour system is
selected).
9.3.15 Alarm week register (ALARMWW)
This register is used to set date of alarm.
The ALARMWW register can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 00H.
Figure 9 - 17 Format of Alarm week register (ALARMWW)
Address: FFF9AH After reset: 00H R/W
Symbol76543210
ALARMWM
0 WM40 WM20 WM10 WM8 WM4 WM2 WM1
Address: FFF9BH After reset: 12H R/W
Symbol76543210
ALARMWH
0 0 WH20 WH10 WH8 WH4 WH2 WH1
Address: FFF9CH After reset: 00H R/W
Symbol76543210
ALARMWW
0 WW6 WW5 WW4 WW3 WW2 WW1 WW0