This repository contains the Microchip sample application for LAN8650/1 Time Sync source code and example applications. The Implementation includes a Clock Source implemenation and Clock Follower Implementation.
The code synchronizes the slave's clock with the master's clock using Sync and Follow-up messages. It calculates the time differences and rate ratios between the master and slave clocks. Based on the calculated offset and the current synchronization status, it adjusts the slave clock incrementally, applying various filters to ensure stability and accuracy. The code handles different synchronization states (UNINIT, MATCHFREQ, HARDSYNC, COARSE, FINE) to gradually achieve precise time synchronization.
Our comprehensive 10BASE-T1S portfolio has the technology to meet your range, data rate, interoperability, frequency and topology needs. Please contact the Microchip support in case of issues and questions.
Those applications have no deep integration of the TC6 protocol driver into MPLAB® Harmony 3. If this is desired, please refer to the official LAN865x MPLAB Harmony v3 driver and example applications in the corresponding repository:
Note: Please refer to AN4964 provided on the Microchip LAN865x product websites: