This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DP83640: About DP83640,does the Synchronous Ethernet Mode mentioned in AN-1730 need running the PTP stack?

Part Number: DP83640

I want use the Synchronous Ethernet Mode ,Timestamp,Trigger and Event of 83640。I have checked the software development guide ,the C lib and some documents。

Some documents say it must running the stack, but I check the code it seems not. I'm a little confused.

I want to know whether the PTP stack shoud be running in order to implement these functions.

Thank you very much! 

 

  • Hi xiaoP,

    The PTP stack must be used in order to keep an accurate 1588 clock inside of the DP83640. The PTP stack does this by examining the time stamps of the PTP messages, and then making adjustments to the clock running inside of the DP83640.

    Synchronous Ethernet mode is a setting that runs inside of the DP83640, but it must be enabled by the host processor.

    Timestamp, triggers, and events are all generated by the DP83640, but the processor must set these up before hand.

    Best Regards,
  • thanks handsome!

    I just set the SYNC_ENET EN bit (bit13 of PHYCR2), and  two 83640 clock output is locked(default 25M). Though the phase is random, but they are locked. So I think the Synchronous Ethernet mode like you said is a

    inside function of 83640 (I dont even get a MAC doing this, just set bit13 of PHYCR2 and connect to 83640 by cable).

    But I think the rest  function maybe need the PTP stack, cause these function need transmit /receive packet paring or some frame detection(1588 pack?)

    I understand these function must be set up at 83640, what I mean ,like Synchronous Ethernet  mode it seems like I dont need to run the stack at the application layer . I just set some registers. But the Timestamp, triggers, and events, I should run the stack at the application layer.

    Am I right?

    very thanks to you guys, you help people and make the world better. 

  • Hi xiaoP,

    You are correct. To run in Synchronous Ethernet mode, you do not need the PTP stack running.

    For time stamp, triggering, and events, you need the 1588 stack running. If no stack is running, then the features will mean nothing.

    Best Regards,
  • Rob:
    So about Phase Alignment , I noticed there is a suggest or example at 3.2 in AN-1729, but I didn't find any information in software development guide V1.97 .
    I want to know is there a Phase Alignment funtion implemented in the C lib(EPL) or the stack?
    Thanks
  • There is no explicit function but there is something you can take from EPL.

    See EPL\protocol\PTP\ptpControl.c line 272 to 312.

    The function starts with the comment // Phase align CLKOUT if requested

    That function appears to implement the phase alignment procedure detailed in AN-1729
  • problem solved!
    Rob,thanks for your help !