SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
FILE: ethernet_ex4_ptp_basic_slave.c
This example configures the device in IEEE PTPv2 Slave mode and then waits for the Sync packets from the slave. On receiving configurable number of Sync packets from the master, the slave also sends out the DelayReq packets. In response to the DelayReq packets, the Master also sends out the DelayResp packets which is then received by the Slave. The slave parallely maintains the internal state of the PTP in terms of Master to Slave Delay and Slave to Master Delay. Consequently, the slave also calculates Offset From Master and Mean Path Delay.
External Connections
This example programs the Ethernet module in PTP Basic Slave mode. The example project Ethernet PTP Basic Master is intended to be used along with this project to see the whole PTP Protocol state in action. The second device is configured as Master and both devices in conjunction exchange Sync, DelayReq and DelayResp packets.
Refer to the C28x CPU1 code of ethernet_config_c28x project for configuring the PTP clock that drives the system time counter on the Ethernet module.
Watch Variables