Philips LPC2194 User Manual page 255

Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
Prescaler Operation
The Prescaler block labelled "Combination Logic" in Figure 45 determines when the 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 (???).
For example, if PREFRAC bit 14 is a one (representing the fraction 1/2), then half of the cycles counted by the 13-bit counter
need to be longer. When there is a 1 in the LSB of the Fraction Counter, the logic causes every alternate count (whenever the
LSB of the Fraction Counter=1) to be extended by one pclk, evenly distributing the pulse widths. Similarly, a one in PREFRAC
bit 13 (representing the fraction 1/4) will cause every fourth cycle (whenever the two LSBs of the Fraction Counter=10) counted
by the 13-bit counter to be longer.
Table 192: Prescaler cases where the Integer Counter reload value is incremented
Fraction Counter
--- ---- ---- ---1
--- ---- ---- --10
--- ---- ---- -100
--- ---- ---- 1000
--- ---- ---1 0000
--- ---- --10 0000
--- ---- -100 0000
--- ---- 1000 0000
--- ---1 0000 0000
--- --10 0000 0000
--- -100 0000 0000
--- 1000 0000 0000
--1 0000 0000 0000
-10 0000 0000 0000
100 0000 0000 0000
Real Time Clock
PREFRAC Bit
14 13 12 11 10
9
1
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
255
LPC2119/2129/2194/2292/2294
8
7
6
5
4
3
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Preliminary User Manual
2
1
0
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
1
-
-
-
1
-
-
-
1
May 03, 2004

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2119Lpc2292Lpc2294

Table of Contents