
Philips Semiconductors
PNX15xx Series
Volume 1 of 1
Chapter 5: The Clock Module
PNX15XX_SER_3
Koninklijke Philips Electronics N.V. 2006. All rights reserved.
Product data sheet
Rev. 3 — 17 March 2006
5-16
A write with a 0 value stops the clock stretching circuit.
2.7 Clock Frequency Determination
This feature allows the measuring of the internal PLL’s and DDS’s. This is used for
basic test mode only. The enable bits of the CLK_FREQ_CTL choose which of the 12
clocks to test (PLL0 - PLL2, DDS2 - DDS8). The count bits choose a count that is
based on the Xtal clock. While the counting proceeds another counter counts the
number of clocks of the chosen clock. When the xtal count ends the done bit in the
CLK_FREQ_CTL will be set. At this point the CLK_COUNT_RESULTS register can
be read. Knowing the pre-programmed value of xtal clocks and the number of clocks
of the chosen clock then the frequency of the chosen clock can be determined.
Example:
Program the CLK_FREQ_CTL register for a count of 0x7F. The
CLK_COUNT_RESULTS register is read after seeing the DONE bit in the
CLK_FREQ_CTL set. The value is 0x24B.
if xtal is 27 MHz (37ns) then the total period of count time is
So 0x24B clocks were counted in 4699 ns. Therefore the period of the measured
clock is:
which is approximately 125 MHz. A simpler formula is:
where:
CountResult is the value read from the CLK_COUNT_RESULTS register,
Programmed is the value programmed in the CLK_FREQ_CTL register and
XtalPeriod is the period in ns of the input crystal clock.
Figure 5:
Clock Stretcher
turn_off
stretcher count
clk_out
turn_off_ack
clk_out blocked
clk_tm
3
0
2
1
0
3
2
clk_out blocked
0x7F
37
×
4699ns
=
4699
0x24B
-----------------
8.01ns
=
Frequency
CountResult
XtalPeriod
Programmed
×
---------------------------------------------------------------------
=