Nxp Semiconductors UM10237 用户手册

下载
页码 792
UM10237_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 19 December 2008 
654 of 792
NXP Semiconductors
UM10237
Chapter 26: LPC24XX Real-Time Clock (RTC) and battery RAM
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 
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 - 0xE002 4014)
The Consolidated Time Register 0 contains the low order time values: Seconds, Minutes, 
Hours, and Day of Week.
 
6.3.2 Consolidated Time Register 1 (CTIME1 - 0xE002 4018)
The Consolidate Time Register 1 contains the Day of Month, Month, and Year values.
 
6.3.3 Consolidated Time Register 2 (CTIME2 - 0xE002 401C)
The Consolidate Time Register 2 contains just the Day of Year value.
Table 574. Consolidated Time register 0 (CTIME0 - address 0xE002 4014) bit description
Bit
Symbol
Description
Reset 
value
5:0
Seconds
Seconds value in the range of 0 to 59
NA
7:6
-
Reserved, user software should not write ones to reserved bits. 
The value read from a reserved bit is not defined.
NA
13:8
Minutes
Minutes value in the range of 0 to 59
NA
15:14
-
Reserved, user software should not write ones to reserved bits. 
The value read from a reserved bit is not defined.
NA
20:16
Hours
Hours value in the range of 0 to 23
NA
23:21
-
Reserved, user software should not write ones to reserved bits. 
The value read from a reserved bit is not defined.
NA
26:24
Day Of Week Day of week value in the range of 0 to 6
NA
31:27
-
Reserved, user software should not write ones to reserved bits. 
The value read from a reserved bit is not defined.
NA
Table 575. Consolidated Time register 1 (CTIME1 - address 0xE002 4018) bit description
Bit
Symbol
Description
Reset 
value
4:0
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).
NA
7:5
-
Reserved, user software should not write ones to reserved bits. 
The value read from a reserved bit is not defined.
NA
11:8
Month
Month value in the range of 1 to 12.
NA
15:12
-
Reserved, user software should not write ones to reserved bits. 
The value read from a reserved bit is not defined.
NA
27:16
Year
Year value in the range of 0 to 4095.
NA
31:28
-
Reserved, user software should not write ones to reserved bits. 
The value read from a reserved bit is not defined.
NA