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.

CCS/AM5718: SPI transfer issue

Part Number: AM5718
Other Parts Discussed in Thread: ADC102S051

Tool/software: Code Composer Studio

Hiii,

We are using a custom board of AM5718 in which we have an ADC (ADC102s051) which we are configuring through MCSPI3.

Data word size : 16 bit

Mode : mode2 (POL = 1 PHA =0)

Bit Rate configuration : 400ksps

CCS version : CCS 7.4

PSDK Version : 4_03_00_05

For configuration we are using MCSPI driver function codes.

While probing we are able to see some output on Dout pin but while reading using McSPI_Transfer function, we always get the output as 0x00.

Can anyone please help us to resolve the issue ?

Thanks and regards

Arpita Jena

  • Arpita,

    Have you checked if all the MCSPI3 pins are functional and clocking and pinmux are setup as expected. Can you also describe the Chip Select and Clock behavior when there is valid data and no data on the lines. Are you using driver in blocking mode or callback mode. Does the data on observed on the Dout pin match with data provided to the driver ? This will confirm data is valid when you see that pin active.  Can you confirm if the clock observed matches with the 400 kbps setting when you initialized MCSPI. I am assuming AM571x McSPI is the mater side and ADC is the slave and that you are using A15 core for this experiment so please indicate if these assumptions are incorrect.

    Regards,

    Rahul 

  • Hi Rahul,

    Thanks for your response.

    I am able to get the expected output from ADC now after configuring the pin mux properly and providing mode3(POL=1 and PHA=1).

    Thanks and regards

    Arpita Jena