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: Procedure for outputting PPS from GPIO4

Part Number: DP83640

I want to output PPS from GPIO4 of the DP83640. 
Upon reviewing the DP83640 datasheet, I found the statement, "The DP83640 can be programmed to output a Pulse-Per-Second (PPS) signal using the trigger functions," but it did not provide specific configuration instructions. 
I would like to know the detailed setup procedure, including which registers to write which values ​​to. 

  • Hi Takahashi-san,

    Please use the below register to configure:


    I apologize for the vague documentation. This is an old device so we do not have any other information that goes beyond the datasheet. 

    Best,
    J

  • Thank you for your reply.

    I am using the DP83640T-EVK/NOPB-ND evaluation board.
    I set PTP_TRIG as follows, but I cannot output PPS.

    ・TRIG_PULSE 1
    ・TRIG_PER 1
    ・TRIG_IF_LATE 1
    ・TRIG_GPIO 4
    ・TRIG_WR 1

    Is it unnecessary to set PTP_TDR or PTP_CTL?

    The following site seems to set them: github.com/.../dp83640.c

  • Hi Takahashi-san, 

    You are correct. You also need to enable and load trigger using PTP_CTL register and then set PTP_TDR register after loading the trigger. I think these registers and setting the trigger GPIO pin on PTP_TRIG should output pps pulse. 

    Best,
    J