Figure 343. Networked Time Synchronization - ST STM32F40 Series Reference Manual

Hide thumbs Also See for STM32F40 Series:
Table of Contents

Advertisement

Ethernet (ETH): media access control (MAC) with DMA controller

Figure 343. Networked time synchronization

1.
The master broadcasts PTP Sync messages to all its nodes. The Sync message
contains the master's reference time information. The time at which this message
leaves the master's system is t
MII.
2.
A slave receives the Sync message and also captures the exact time, t
timing reference.
3.
The master then sends the slave a Follow_up message, which contains the t
information for later use.
4.
The slave sends the master a Delay_Req message, noting the exact time, t
this frame leaves the MII.
5.
The master receives this message and captures the exact time, t
system.
6.
The master sends the t
7.
The slave uses the four values of t
reference to the master's timing reference.
Most of the protocol implementation occurs in the software, above the UDP layer. As
described above, however, hardware support is required to capture the exact time when
specific PTP packets enter or leave the Ethernet port at the MII. This timing information has
to be captured and returned to the software for a proper, high-accuracy implementation of
PTP.
Reference timing source
To get a snapshot of the time, the core requires a reference time in 64-bit format (split into
two 32-bit channels, with the upper 32 bits providing time in seconds, and the lower 32 bits
indicating time in nanoseconds) as defined in the IEEE 1588 specification.
The PTP reference clock input is used to internally generate the reference time (also called
the System Time) and to capture time stamps. The frequency of this reference clock must
939/1422
Master clock time
Sync message
t
1
t
2m
Follow_up message
containing value of t1
t
3m
Delay_Req message
t
4
Delay_Resp message
containing value of t4
time
. For Ethernet ports, this time has to be captured at the
1
information to the slave in the Delay_Resp message.
4
, t
1
Doc ID 018909 Rev 4
Slave clock time
Data at
slave clock
t
t
2
2
t
, t
1
2
t
t
, t
3
1
2
t
, t
1
2
, t
, and t
to synchronize its local timing
2
3
4
RM0090
, t
3
, t
, t
3
4
ai15669
, using its
2
1
, at which
3
, at which it enters its
4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F40 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Stm32f41 seriesStm32f42 seriesStm32f43 seriesRm0090

Table of Contents

Save PDF