Philips LPC213 Series User Manual page 207

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
Table 180: Alarm registers
Name
ALSEC
ALMIN
ALHOUR
ALDOM
ALDOW
ALDOY
ALMON
ALYEAR
18.5 RTC usage notes
If the RTC is used, V
supply (external battery). Otherwise, V
is made in the LPC2131/2/4/6/8 to retain RTC status upon the V
maintain time incrementation if the clock source is lost, interrupted, or altered.
Since the RTC operates using one of two available clocks (the VPB clock (PCLK) or the
32 kHz signal coming from the RTCX1-2pins), any interruption of the selected clock will
cause the time to drift away from the time value it would have provided otherwise. The
variance could be to actual clock time if the RTC was initialized to that, or simply an error
in elapsed time since the RTC was activated.
While the signal from RTCX1-2 pins can be used to supply the RTC clock at anytime,
selecting the PCLK as the RTC clock and entering the Power-down mode will cause a
lapse in the time update. Also, feeding the RTC with the PCLK and altering this timebase
during system operation (by reconfiguring the PLL, the VPB divider, or the RTC prescaler)
will result in some form of accumulated time error. Accumulated time errors may occur in
case RTC clock source is switched between the PCLK to the RTCX pins, too.
Once the 32 kHz signal from RTCX1-2 pins is selected as a clock source, the RTC can
operate completely without the presence of the VPB clock (PCLK). Therefore, power
sensitive applications (i.e. battery powered application) utilizing the RTC will reduce the
power consumption by using the signal from RTCX1-2 pins, and writing a 0 into the
PCRTC bit in the PCONP power control register (see
33).
18.6 Reference clock divider (prescaler)
The reference clock divider (hereafter referred to as the prescaler) allows generation of a
32.768 kHz reference clock from any peripheral clock frequency greater than or equal to
65.536 kHz (2 × 32.768 kHz). This permits the RTC to always run at the proper rate
regardless of the peripheral clock rate. Basically, the Prescaler divides the peripheral
clock (PCLK) by a value which contains both an integer portion and a fractional portion.
The result is not a continuous output at a constant frequency, some clock periods will be
one PCLK longer than others. However, the overall result can always be 32,768 counts
per second.
User manual
Size
Description
6
Alarm value for Seconds
6
Alarm value for Minutes
5
Alarm value for Hours
5
Alarm value for Day of Month
3
Alarm value for Day of Week
9
Alarm value for Day of Year
4
Alarm value for Months
12
Alarm value for Years
must be connected to either pin V
BAT
Rev. 01 — 24 June 2005
Access
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
or an independent power
3
should be tied to the ground (V
BAT
Section 3.8 "Power control" on page
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
UM10120
Chapter 18: RTC
Address
0xE002 4060
0xE002 4064
0xE002 4068
0xE002 406C
0xE002 4070
0xE002 4074
0xE002 4078
0xE002 407C
). No provision
SS
power loss, or to
BAT
207

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents