Datasheet

Table Of Contents
...........continued
Frame Segment Value
Control (Octet 74) 01
Other stuff (Octets 75–168)
For 1588 version 1 messages, sync and delay request frames are indicated by the GMAC if the frame
type field indicates TCP/IP, UDP protocol is indicated, the destination IP address is 224.0.1.129/130/131
or 132, the destination UDP port is 319 and the control field is correct.
The control field is 0x00 for sync frames and 0x01 for delay request frames.
For 1588 version 2 messages, the type of frame is determined by looking at the message type field in the
first byte of the PTP frame. Whether a frame is version 1 or version 2 can be determined by looking at the
version PTP field in the second byte of both version 1 and version 2 PTP frames.
In version 2 messages sync frames have a message type value of 0x0, delay_req have 0x1, Pdelay_Req
have 0x2 and Pdelay_Resp have 0x3.
Table 24-7. Example of Sync Frame in 1588 Version 2 (UDP/IPv4) Format
Frame Segment Value
Preamble/SFD 55555555555555D5
DA (Octets 0–5)
SA (Octets 6–11)
Type (Octets 12–13) 0800
IP stuff (Octets 14–22)
UDP (Octet 23) 11
IP stuff (Octets 24–29)
IP DA (Octets 30–33) E0000181
Source IP port (Octets 34–35)
Dest IP port (Octets 36–37) 013F
Other stuff (Octets 38–41)
Message type (Octet 42) 00
Version PTP (Octet 43) 02
Table 24-8. Example of Pdelay_Req Frame in 1588 Version 2 (UDP/IPv4) Format
Frame Segment Value
Preamble/SFD 55555555555555D5
DA (Octets 0–5)
SA (Octets 6–11)
Type (Octets 12–13) 0800
SAM D5x/E5x Family Data Sheet
GMAC - Ethernet MAC
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 500