English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (371/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 7 REAL-TIME COUNTER
Table 7-2. Displayed Time Digits
24-Hour Display (AMPM bit = 1)
Time
HOUR Register
0
00H
1
01H
2
02H
3
03H
4
04H
5
05H
6
06H
7
07H
8
08H
9
09H
10
10H
11
11H
12
12H
13
13H
14
14H
15
15H
16
16H
17
17H
18
18H
19
19H
20
20H
21
21H
22
22H
23
23H
12-Hour Display (AMPM bit = 0)
Time
HOUR Register
0 a.m.
12H
1 a.m.
01H
2 a.m.
02H
3 a.m.
03H
4 a.m.
04H
5 a.m.
05H
6 a.m.
06H
7 a.m.
07H
8 a.m.
08H
9 a.m.
09H
10 a.m.
10H
11 a.m.
11H
0 p.m.
32H
1 p.m.
21H
2 p.m.
22H
3 p.m.
23H
4 p.m.
24H
5 p.m.
25H
6 p.m.
26H
7 p.m.
27H
8 p.m.
28H
9 p.m.
29H
10 p.m.
30H
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.
(9) Day count register (DAY)
The DAY register is an 8-bit register that takes a value of 1 to 31 (decimal) and indicates the count value of days.
It counts up when the hour counter overflows.
This counter counts as follows.
• 01 to 31 (January, March, May, July, August, October, December)
• 01 to 30 (April, June, September, November)
• 01 to 29 (February, leap year)
• 01 to 28 (February, normal year)
When data is written to this register, it is written to a buffer and then to the counter up to 2 clocks (32.768 kHz) later.
Even if the hour count register overflows while this register is being written, this register ignores the overflow and is
set to the value written. Set a decimal value of 01 to 31 to this register in BCD code.
DAY can be set by an 8-bit memory manipulation instruction.
Reset signal generation clears this register to 01H.
R01UH0004EJ0501 Rev.5.01
355
Jun 20, 2011