RL78/G1H CHAPTER 9 REAL-TIME CLOCK
R01UH0575EJ0120 Rev. 1.20 Page 246 of 920
Dec 22, 2016
Table 9 - 2 shows the relationship between the setting value of the AMPM bit, the hour count register (HOUR)
value, and time.
The HOUR register value is set to 12-hour display when the AMPM bit is “0” and to 24-hour display when the
AMPM bit is “1”.
In 12-hour display, the fifth bit of the HOUR register displays 0 for AM and 1 for PM.
Table 9 - 2 Displayed Time Digits
24-Hour Display (AMPM = 1) 12-Hour Display (AMPM = 0)
Time HOUR Register Time HOUR Register
0 00 H 12 a.m. 12 H
1 01 H 1 a.m. 01 H
2 02 H 2 a.m. 02 H
3 03 H 3 a.m. 03 H
4 04 H 4 a.m. 04 H
5 05 H 5 a.m. 05 H
6 06 H 6 a.m. 06 H
7 07 H 7 a.m. 07 H
8 08 H 8 a.m. 08 H
9 09 H 9 a.m. 09 H
10 10 H 10 a.m. 10 H
11 11 H 11 a.m. 11 H
12 12 H 12 p.m. 32 H
13 13 H 1 p.m. 21 H
14 14 H 2 p.m. 22 H
15 15 H 3 p.m. 23 H
16 16 H 4 p.m. 24 H
17 17 H 5 p.m. 25 H
18 18 H 6 p.m. 26 H
19 19 H 7 p.m. 27 H
20 20 H 8 p.m. 28 H
21 21 H 9 p.m. 29 H
22 22 H 10 p.m. 30 H
23 23 H 11 p.m. 31 H