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.

  • TI Thinks Resolved

RTOS/TDA2HV: IN TDA2x soc SPI mode is not affecting in the output

Part Number: TDA2HV

Tool/software: TI-RTOS

Hi,

We are working on ADAS TDA2x SOC. We configured the TDA2x's SPI0 in the slave mode.We get the data on the MOSI line.But when we transmitted the data on the MISO line of TDA2x soc the data left shifted data by the one on the master side.So, for correcting this we tried the SPI's mode(0,1,2,3)But we cant get the effect in the MISO line and we cant see the effect on the CRO.

we are changing in the " mcspiPrms.spiHWCfgData.configChfmt[0].clockMode           = MCSPI_MODE2; "parameter in the code.But it cannot be reflected in the CRO

1) Does above change is reflected in the code for changing the SPI mode? 

2) Do we change the correct parameter for SPI mode?

Please suggest us the possible solution to resolve this.

Thanks,

Parth

  • Hi Parth,

    As informed earlier MCSPI expert is not in office due to holidays. Please wait for him to return and reply.
    Kindly don't start a new thread for the same issue. Thanks.

    Regards,
    Rishabh
  • Hi Parth,

    Did you also change the mode on the master side? Can you please post a scope screen snapshot or draw the waveform and highlight the issue?

    Regards,

    Stan

  • In reply to Stanislav Stilyanov:

    Hi Stan,

    We can not able to change on the master side SPI Mode.I am sending the 112 on the  MISO line.

    My actual issue is posted on below link e2e link.

    For resolving this I am changing the SPI mode on the slave side(TDA2x Soc ).But it not affected in output. I have attached different SPI modes DSO screenshots for your information.

    Please let me know if you need more information on our side.

    Thanks,

    Parth

  • In reply to parth Modi:

    Hi,
    Can you please dump MCSPI registers? To see if mode (PHA/POL) is really changed in the register, in the other hand something else may show up.

    Thanks,
    Stan
  • In reply to Stanislav Stilyanov:

    Hi Harshal,

    We haven’t heard back from you, I’m assuming you were able to resolve your issue. If not, just post a reply below (or create a new thread if the thread has locked due to time-out)

    Regards,
    Rishabh

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.