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.

TDA4VM: The problem I encountered while configuring CPTS output PPS

Part Number: TDA4VM

Hi, TI experts

I saw in the chip manual that CPTS can configure output square waves.

Configure the mux value of U2 pin to 1, write the value 0x50001 to address 0x11c230(CTRLMMR_PADCONFIG140)

Then I configured the CPTS related registers

I write value 0x4876e800 to address 0xc03d0e0(CPSW_GENF0_COMP_LOW_REG),value 0x17 to address 0xc03d0e4(CPSW_GENF0_COMP_HIGH_REG),and value 0x3b9aca00 to address 0xc03d0ec(CPSW_GENF0_LENGTH_REG).

Then I set the time for CPTS to 95 seconds

However, I was unable to observe the waveform on the oscilloscope

May I know how to correctly configure this feature?

Best Regards,

Albert

  • Hi,

    You have to follow sequence mentioned below for the configuration of GenF.

    1. Make sure Length value is 0 (set to 0 before configuration of Compare Low & High registers)
    2. Configure compare High register first followed by compare Low register.
    3. Configure Genf control register for polarity if required.
    4. configure the Length register.

    Note:
    CPTS time should be lower than the value written in GenF compare registers.

    From above I can understand you are setting GenF compare at 99Sec, and CPTS time as 95Sec.

    Above will generate GenF signal, but we need map the GenF to Sync0_OUT. Which is by configuring the TIMESYNC_INTRTR0_OUTL_34 (SYNC0_OUT) to TIMESYNC_INTRTR0_IN_14 (CPSW0_CPTS_GENF0_0)
    Which by setting TIMESYNC_INTRTR0_MUXCNTL_y Register (00A4 0004h + 4*28) [i.e. SYNC0_OUT out], with value of 0xE [i.e. CPSW0_CPTS_GENF0_0 Input].

    Please refer to below register description for more details.


    Note, Configure the router before configuring the GenF.

    Best Regards,
    Sudheer