RL78/G1A CHAPTER 7 REAL-TIME CLOCK
Here is an example of setting the alarm.
Jul 04, 2013
Day 12-Hour Display 24-Hour Display Time of Alarm
Hour
10
Hour
1
Minute
1
Hour
10
Hour
1
Monday
W
W
1
Tuesday
W
W
2
Sunday
W
W
0
Friday
W
W
5
Minute
10
Minute
10
Minute
1
Saturday
W
W
6
Thursday
W
W
4
Wednesday
W
W
3
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)
<R>
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)
<R>
The P3 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 0 0 0 0 0 0 P31 P30
R01UH0305EJ0200 Rev.2.00 309