Tool/software:
Greetings,
I'd like to clarify some details I've gathered:
Q1-) Regarding the DP83640's internal IEEE 1588 clock/timer, my understanding is that it starts either from zero or another predefined value, but it's not automatically updated by the PTP master. To put it differently, we must still adhere to the PTP protocol through host software (such as MCU or CPU), correct? However, the relative timestamps T1, T2, T3, and T4 are taken from the DP83640 itself, correct? My point is that the internal IEEE 1588 timer of the DP83640 doesn’t provide direct UTC time; instead, it only offers relative timing in a 64-bit format—32 bits for seconds, 30 bits for nanoseconds, and 2 bits for fractional nanoseconds—without being able to synchronize with a PTP master on its own, is that correct?
Q-2) I'm curious about how the IEEE 1588 timer's timestamps correspond with the DP83640's internal 250 MHz clock, as mentioned in the AN-1730 DP83640 Synchronous Ethernet Mode document. What I'm trying to get at is, if the IEEE 1588 timer's smallest unit of time is fractional nanoseconds, shown in the first two bits, and the DP83640 clock operates at 250 MHz (equating to 4 ns increments), how does it handle these smaller units? Are the fractional bits always set to zero?
"PTP Clock: A PTP clock is the source of an output clock signal which is locked to a PTP counter. In the DP83640, the local PTP clock operates at 250 MHz, and can be configured to control the CLK_OUT signal. This PTP CLK_OUT signal is programmable to frequencies which are integral divisions of the 250 MHz PTP clock in the range of 2 and 255 (125 MHz to 0.98 MHz).
PTP Counter: A PTP counter contains time information, and is locked to the PTP clock. In a master node, the PTP counter is the source of data used in the Precision Time Protocol for the purpose of synchronizing counters in PTP slave nodes. The PTP counter is incremented every 8 ns. Local Reference Clock: A local reference clock is used for generating network traffic. The local reference clock is embedded into the transmit network packet traffic and is recovered from the network packet traffic at the receiver node. All Ethernet Physical Layer devices use