Note: For details on Ethernet clocks, see the architecture TRM.
6.2 Use case of the clock calibration counter function
The clock calibration counter has two counters that can be used to compare the frequency of two clock
sources. All clock sources are available as a source for these two clocks. For details, see the architecture TRM.
Use the following procedure to calibrate using the clock calibration counter:
1. Calibration Counter1 counts clock pulses from Calibration Clock1 (the high-accuracy clock used as the
reference clock). It counts downwards.
2. Calibration Counter2 counts clock pulses from Calibration Clock2 (measurement clock). It counts upwards.
3. When Calibration Counter1 reaches 0, Calibration Counter2 stops counting upwards, and its value can be
read.
4. The frequency of Calibration Counter2 can be obtained by using its value and the following equation:
CalibrationClock2 =
Counter2value
Counter1value
× CalibrationClock1
Figure 23 shows an example of the clock calibration counter function when ILO0 and ECO are used. ILO0 and
ECO must be enabled. See ILO0 and ECO for 3.4 Configuring ILO0/ILO1 and 3.1 Setting the ECO.