DP83TC1104x-Q1 has an in-built PPM monitor to calculate frequency offset between any two internal clock sources or between an external clock source and any internal clock source. The PPM monitor is a continuous monitor which provides real-time frequency offset between the two clock sources.
PPM Monitor takes in a reference clock and
compares the frequency offset with a monitor clock. Select both reference clock and monitor
clock from options of:
- 25MHz XI clock input
- Internal Leader transmit clock of
200MHz
- MDI Recovered clock of 200MHz
- PTP Trigger 0 Output
- SGMII Recovered Clock
- PLL clock of 250MHz
Note:
Highest Frequency Clock out of the two clock sources used for comparison, must be chosen
as monitor clock. Max ratio between monitor clock frequency and reference clock frequency
can be 5 (lesser the ratio, higher the accuracy). Minimum allowed frequency for Monitor
CLK is 12.5Mhz.
Use the following software sequence to read out
the frequency offset:
- Disable PPM monitor before configuring
settings in below steps, by programming 0x01AF[13]= 0
- Select Reference Clock and Monitor Clock
by programming register fields 0x01AF[12:9] and 0x01AF[8:5]
- Select refresh period of the ppm monitor
(for example, 1ms, 10ms, 100ms and so forth.) Monitor accuracy increases with refresh
period. Refresh period must be Common Multiple of monitor clock period and reference clock
period.
- Program monitor clock count and reference
clock count
- {0x01A4, 0x01A3} = refresh
period/monitor clock period
- {0x01A6, 0x01A5} = refresh
period/reference clock period
- Enable PPM monitor by programming
0x01AF[13] = 1
- Wait for at least one refresh period to
complete and read status registers {0x01AE, 0x01AD}
- If 0x01AE[15] = 0, ppm offset is
negative, if 0x01AE[15] = 1, ppm offset is positive
- PPM offset of monitor clock =
{0x01AE[14:0],0x01AD[15:0]}/ {0x01A4, 0x01A3}