Datasheet
RL78/L12    CHAPTER 7 REAL-TIME CLOCK 
R01UH0330EJ0200 Rev.2.00      301 
Dec 13, 2013 
Here is an example of setting the alarm. 
Time of Alarm  Day  12-Hour Display  24-Hour Display 
Sunday
W 
W 
0 
Monday 
W 
W 
1 
Tuesday 
W 
W 
2 
Wednesday
W
W
3 
Thursday
W
W
4 
Friday
W
W
5 
Saturday
W
W
6 
Hour 
10
Hour 
1 
Minute
10
Minute 
1 
Hour 
10 
Hour 
1 
Minute
10
Minute
1 
Every day, 0:00 a.m.  1 1 1 1 1 1 1 1 2 0 0 0 0 0 0 
Every day, 1:30 a.m.  1 1 1 1 1 1 1 0 1 3 0 0 1 3 0 
Every day, 11:59 a.m. 1 1 1 1 1 1 1 1 1 5 9 1 1 5 9 
Monday through 
Friday, 0:00 p.m. 
0 1 1 1 1 1 0 3 2 0 0 1 2 0 0 
Sunday, 1:30 p.m.  1 0 0 0 0 0 0 2 1 3 0 1 3 3 0 
Monday, Wednesday, 
Friday, 11:59 p.m. 
0 1 0 1 0 1 0 3 1 5 9 2 3 5 9 
7.3.16 Port mode register 3 (PM3) 
The PM3 register can be set by a 1-bit or 8-bit manipulation instruction. 
Reset signal generation sets this register to FFH. 
When using the port 3 as the RTC1HZ pin for output of 1 Hz, set the PM30 bit to 0. 
Figure 7-17. Format of Port Mode Register 3 (PM3) 
Address: FFF23H After reset: FFH R/W 
Symbol 7 6 5 4 3 2 1 0 
PM3 1 1 1 1 1 1 PM31 PM30 
7.3.17 Port register 3 (P3) 
The PM3 register can be set by a 1-bit or 8-bit manipulation instruction. 
Reset signal generation sets this register to 00H. 
When using the port 3 as 1-Hz output to the RTC1Hz pin, set the P30 bit to 0. 
Figure 7-18. Format of Port Register 3 (P3) 
Address: FFF03H After reset: 00H R/W 
Symbol 7 6 5 4 3 2 1 0 
P3  P37 P36 P35 P34 P33 P32 P31 P30 
Caution  Be sure to set bits that are not mounted to their initial values. 
<R> 
<R> 










