UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
932 of 1269
NXP Semiconductors
UM10503
Chapter 35: LPC43xx Real-Time Clock (RTC)
35.6.5.3 Consolidated Time Register 2
The Consolidate Time Register 2 contains just the Day of Year value.
[1]
This register value is not changed by reset.
35.6.6 Time Counter Group
The time value consists of the eight counters shown in
and
. These
counters can be read or written at the locations shown in
[1]
These values are simply incremented at the appropriate intervals and reset at the defined overflow point.
They are not calculated and must be correctly initialized in order to be meaningful.
Table 790. Consolidated Time register 2 (CTIME2 - address 0x4004 601C) bit description
Bit
Symbol
Description
Reset
value
11:0
DOY
Day of year value in the range of 1 to 365 (366 for leap years).
31:12
-
Reserved, user software should not write ones to reserved bits.
The value read from a reserved bit is not defined.
-
Table 791. Time Counter relationships and values
Counter
Size
Enabled by
Minimum value
Maximum value
Second
6
1 Hz Clock
0
59
Minute
6
Second
0
59
Hour
5
Minute
0
23
Day of Month
5
Hour
1
28, 29, 30 or 31
Day of Week
3
Hour
0
6
Day of Year
9
Hour
1
365 or 366 (for leap year)
Month
4
Day of Month
1
12
Year
12
Month or day of Year
0
4095
Table 792. Time Counter registers
Name
Size
Description
Access
Address
SEC
6
Seconds value in the range of 0 to 59
R/W
0x4004 6020
MIN
6
Minutes value in the range of 0 to 59
R/W
0x4004 6024
HRS
5
Hours value in the range of 0 to 23
R/W
0x4004 6028
DOM
5
Day of month value in the range of 1 to 28, 29, 30,
or 31 (depending on the month and whether it is a
leap year).
R/W
0x4004 602C
DOW
3
Day of week value in the range of 0 to 6
R/W
0x4004 6030
DOY
9
Day of year value in the range of 1 to 365 (366 for
leap years)
R/W
0x4004 6034
MONTH
4
Month value in the range of 1 to 12
R/W
0x4004 6038
YEAR
12
Year value in the range of 0 to 4095
R/W
0x4004 603C