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.

AM2431: Regarding TRM "10.1.1 CPTS Overview", it is unclear how to use the CPTS module.

Part Number: AM2431

Tool/software:

The TRM refers to spruim2g.pdf.

Regarding the TRM "10.1.1 CPTS Overview," is there any anticipated usage of the CPTS module?

Also, could you tell me how to use the CPTS module?

If there is an example of using the CPTS module in the SDK, could you please tell me the file path of that example?

Thank you in advance for your help.

  • Hello,

    I am reassigning your thread to the LWIP owner for the MCU+ SDK to comment. Feel free to ping the thread if you do not get a response within a couple of business days.

    Regards,

    Nick

  • Hi,

    The CPTS collects time sync events and then presents them to the host for processing.

    • Host Transmit Event (CPSW CPTS)
    • Ethernet receive event (CPSW CPTS)
    • Ethernet transmit event (CPSW CPTS)
    • Time stamp push event
    • Time stamp counter rollover event (32-bit mode only)
    • Time stamp counter half-rollover event (32-bit mode only)
    • Hardware Time Stamp Push Event
    • Time Stamp Compare Event

    For CPTS in PCIe integration, see Section 12.2.2.4.9, PCIe Subsystem Precision Time Measurement (PTM) in Section 12.2.2, Peripheral Component Interconnect Express (PCIe) Subsystem. For CPTS in CPSW integration, refer to Section 12.2.1.3 in Section 12.2.1, Gigabit Ethernet Switch (CPSW0).

    10.1.3.2 CPTS Initialization

    The CPTS module must be configured as follows: 1. Reset the CPTS module 2. Clear the CPTS_EN bit in the CPTS_CONTROL_REG 3. Write the RFTCLK_SEL value in the CPTS_RFTCLK_SEL_REG with the desired reference clock selection 4. Set the CPTS_EN bit in the CPTS_CONTROL_REG 5. If using interrupts and not polling, enable the interrupt by setting the TS_PEND_EN bit in the CPTS_INT_ENABLE_REG

    Regards

    Ashwani