EasyManua.ls Logo

Cmsemicon CMS32L051 - Page 231

Default Icon
703 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
V1.2.2
CMS32L051 User Manual |Chapter 7 Real-Time Clock
www.mcu.com.cn 231 / 703
The relationship between the config value of the AMPM bit, the value of the hour count register (HOUR),
and the time is shown in Table 7-2.
Table 7-2 Representation of the time bits
24-hour (AMPM=1)
12-hour (AMPM=0)
Time
HOUR register
Time
HOUR register
0 o'clock
00H
AM 12 o'clock
12H
1 o'clock
01H
AM 1 o'clock
01H
2 o'clock
02H
AM 2 o'clock
02H
3 o'clock
03H
AM 3 o'clock
03H
4 o'clock
04H
AM 4 o'clock
04H
5 o'clock
05H
AM 5 o'clock
05H
6 o'clock
06H
AM 6 o'clock
06H
7 o'clock
07H
AM 7 o'clock
07H
8 o'clock
08H
AM 8 o'clock
08H
9 o'clock
09H
AM 9 o'clock
09H
10 o'clock
10H
AM 10 o'clock
10H
11 o'clock
11H
AM 11 o'clock
11H
12 o'clock
12H
PM 12 o'clock
32H
13 o'clock
13H
PM 1 o'clock
21H
14 o'clock
14H
PM 2 o'clock
22H
15 o'clock
15H
PM 3 o'clock
23H
16 o'clock
16H
PM 4 o'clock
24H
17 o'clock
17H
PM 5 o'clock
25H
18 o'clock
18H
PM 6 o'clock
26H
19 o'clock
19H
PM 7 o'clock
27H
20 o'clock
20H
PM 8 o'clock
28H
21 o'clock
21H
PM 9 o'clock
29H
22 o'clock
22H
PM 10 o'clock
30H
23 o'clock
23H
PM 11 o'clock
31H
When the AMPM bit is 0, the value of the HOUR register is 12 hours; When the AMPM bit is 1, the
value of the HOUR register is 24 hours.
At 12 hours, bit5 of the HOUR register indicates morning/afternoon. The morning (AM) is 0 and the
afternoon (PM) is 1.

Table of Contents

Related product manuals