Prescaler Operation; User Manual - Philips LPC2101 User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
PREINT = int (PCLK / 32768) − 1 = 304 and
PREFRAC = PCLK − ([PREINT + 1] × 32768) = 5,760.
In this case, 5,760 of the prescaler output clocks will be 306 (305 + 1) PCLKs long, the
rest will be 305 PCLKs long.
In a similar manner, any PCLK rate greater than 65.536 kHz (as long as it is an even
number of cycles per second) may be turned into a 32 kHz reference clock for the RTC.
The only caveat is that if PREFRAC does not contain a zero, then not all of the 32,768 per
second clocks are of the same length. Some of the clocks are one PCLK longer than
others. While the longer pulses are distributed as evenly as possible among the remaining
pulses, this "jitter" could possibly be of concern in an application that wishes to observe
the contents of the Clock Tick Counter (CTC)
Register (CTC - 0xE002 4004)" on page

17.6.4 Prescaler operation

The Prescaler block labelled "Combination Logic" in
decrement of the 13-bit PREINT counter is extended by one PCLK. In order to both insert
the correct number of longer cycles, and to distribute them evenly, the combinatorial Logic
associates each bit in PREFRAC with a combination in the 15-bit Fraction Counter. These
associations are shown in the following

User manual

UNDERFLOW
CLK
13 BIT INTEGER COUNTER
(DOWN COUNTER)
RELOAD
13
13 BIT RELOAD INTEGER
REGISTER
(PREINT)
13
Fig 58. RTC prescaler block diagram
Rev. 01 — 12 January 2006
directly(Section 17.4.4 "Clock Tick Counter
216).
to clock tick counter
15 BIT FRACTION COUNTER
COMBINATORIAL LOGIC
extend
reload
15 BIT FRACTION REGISTER
(PREFRAC)
APB bus
Figure 58
determines when the
Table
200.
© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
UM10161
Chapter 17: RTC
PCLK
(APB clock)
CLK
15
15
15
222

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2103Lpc2102

Table of Contents