SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
FILE: ethernet_ex4_ptp_basic_master.c
This example configures the device in IEEE PTPv2 Master mode and then periodically sends Sync packets to the slave. On receiving the DelayReq packets from the slave, the master also sends out the DelayResp packets.
External Connections
This example programs the Ethernet module in PTP Basic Master mode. The example project Ethernet PTP Basic Slave is intended to be used along with this project to see the whole PTP Protocol state in action. The second device is configured as Slave 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