Renesas rl78 User Manual

Page of 1004
 
RL78/G1A 
 
CHAPTER  7   REAL-TIME  CLOCK 
Table 7-2 shows the relationship between the setting value of the AMPM bit, the hour count register (HOUR) value, and 
time. 
 
Table 7-2.  Displayed Time Digits 
24-Hour Display (AMPM = 1) 
12-Hour Display (AMPM = 1) 
Time HOUR 
Register Time HOUR 
Register 
00H 12 
a.m. 12H 
1 01H 
a.m. 
01H 
2 02H 
a.m. 
02H 
3 03H 
a.m. 
03H 
4 04H 
a.m. 
04H 
5 05H 
a.m. 
05H 
6 06H 
a.m. 
06H 
7 07H 
a.m. 
07H 
8 08H 
a.m. 
08H 
9 09H 
a.m. 
09H 
10 
10H 10 
a.m. 10H 
11 
11H 11 
a.m. 11H 
12 
12H 12 
p.m. 32H 
13 13H 
p.m. 
21H 
14 14H 
p.m. 
22H 
15 15H 
p.m. 
23H 
16 16H 
p.m. 
24H 
17 17H 
p.m. 
25H 
18 18H 
p.m. 
26H 
19 19H 
p.m. 
27H 
20 20H 
p.m. 
28H 
21 21H 
p.m. 
29H 
22 
22H 10 
p.m. 30H 
23 
23H 11 
p.m. 31H 
 
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.  
 
R01UH0305EJ0200  Rev.2.00 
 
 
303  
Jul 04, 2013