English
Language : 

UM10360 Datasheet, PDF (562/835 Pages) NXP Semiconductors – LPC17xx User manual
NXP Semiconductors
UM10360
Chapter 27: LPC17xx Real-Time Clock (RTC) and backup registers
6.3 Consolidated time registers
The values of the Time Counters can optionally be read in a consolidated format which
allows the programmer to read all time counters with only three read operations. The
various registers are packed into 32-bit values as shown in Table 27–515, Table 27–516,
and Table 27–517. The least significant bit of each register is read back at bit 0, 8, 16, or
24.
The Consolidated Time Registers are read-only. To write new values to the Time
Counters, the Time Counter addresses should be used.
6.3.1 Consolidated Time Register 0 (CTIME0 - 0x4002 4014)
The Consolidated Time Register 0 contains the low order time values: Seconds, Minutes,
Hours, and Day of Week.
Table 515. Consolidated Time register 0 (CTIME0 - address 0x4002 4014) bit description
Bit
Symbol
Description
5:0
7:6
13:8
15:14
20:16
23:21
26:24
31:27
Seconds
Seconds value in the range of 0 to 59
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Minutes
Minutes value in the range of 0 to 59
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Hours
Hours value in the range of 0 to 23
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Day Of Week Day of week value in the range of 0 to 6
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Reset
value
NC
NA
NC
NA
NC
NC
NA
NC
6.3.2 Consolidated Time Register 1 (CTIME1 - 0x4002 4018)
The Consolidate Time Register 1 contains the Day of Month, Month, and Year values.
Table 516. Consolidated Time register 1 (CTIME1 - address 0x4002 4018) bit description
Bit
Symbol
Description
4:0
7:5
11:8
15:12
27:16
31:28
Day of Month 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).
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Month
Month value in the range of 1 to 12.
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Year
Year value in the range of 0 to 4095.
-
Reserved, user software should not write ones to reserved bits. The value read from a
reserved bit is not defined.
Reset
value
NC
NA
NC
NA
NC
NA
6.3.3 Consolidated Time Register 2 (CTIME2 - 0x4002 401C)
The Consolidate Time Register 2 contains just the Day of Year value.
UM10360_1
User manual
Rev. 01 — 4 January 2010
© NXP B.V. 2010. All rights reserved.
562 of 835