UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 19 December 2013 559 of 841
27.1 Basic configuration
The RTC is configured using the following registers:
1. Power: In the PCONP register (Table 46
), set bits PCRTC.
Remark: On reset, the RTC is enabled. See Section 27.7
for power saving options.
2. Clock: The RTC uses the 1 Hz clock output from the RTC oscillator as the only clock
source. The peripheral clock rate for accessing registers is CCLK/8.
3. Interrupts: See Section 27.6.1
for RTC interrupt handling. Interrupts are enabled in
the NVIC using the appropriate Interrupt Set Enable register. The RTC interrupt can
wake up the device from deep-sleep, power-down, or deep power-down modes. See
Section 27.6.1
.
27.2 Features
• Measures the passage of time to maintain a calendar and clock. Provides seconds,
minutes, hours, day of month, month, year, day of week, and day of year.
• Ultra-low power design to support battery powered systems. Less than 1 microamp
required for battery operation. Uses power from the CPU power supply when it is
present.
• 20 bytes of Battery-backed storage and RTC operation when power is removed from
the CPU.
• Dedicated 32 kHz ultra low power oscillator.
• Dedicated battery power supply pin.
• RTC power supply is isolated from the rest of the chip.
• Calibration counter allows adjustment to better than 1 sec/day with 1 sec resolution.
• Periodic interrupts can be generated from increments of any field of the time registers.
• Alarm interrupt can be generated for a specific date/time.
27.3 Description
The Real Time Clock (RTC) is a set of counters for measuring time when system power is
on, and optionally when it is off. It uses very little power when its registers are not being
accessed by the CPU, especially reduced power modes. On the LPC176x/5x, the RTC is
clocked by a separate 32 kHz oscillator that produces a 1 Hz internal time reference. The
RTC is powered by its own power supply pin, VBAT, which can be connected to a battery,
externally tied to a 3V supply, or left floating.
The RTC power domain is shown in conceptual form in Figure 130
. A detailed view of the
time keeping portion of the RTC is shown in Figure 131
.
UM10360
Chapter 27: LPC176x/5x Real-Time Clock (RTC) and backup
registers
Rev. 3 — 19 December 2013 User manual