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.

Getting issues in using SPI mode in TSM320f28035 micro-controller

I have been using TSM320f28035 for one of my project. I have been using SPIA  for communication with 2 boards which has the same controller. The hardware connection what is used is as follows:

                   MOSIA(1st board)  - MOSIA(2nd board)

                   MISOA(1st board) - MISOA(2nd board)

                   SCLK(1st board) - SCLK(2nd board)

                   STINVE(1st board) - STINVE(2nd board) This is strobe pin.

When I transfer data from master to slave, the data is well received by slave. The waveform also seems to be fine i.e proper digital signals.

The issue is when slave transfers the data to master. The waveform is as attached.

The data what is being captured by master is not a valid data. I checked if there is some capacitor or register on the board. But the connections seem to be OK.

Please note that I have been using 4 wire SPI communication in my application.

Regards,

Kamal

  • Kamal,

    Have you configured the SPI modes to match between the master and slave? Is it possible that the Master is trying to sample the data input on the incorrect edge? Please check your Phase and Polarity settings on each MCU.

    The scope shots that you shared appear to be entire transactions. Can you zoom into a single transmission? I would like to see what your slave data out looks like on the scope.

    Thanks.
    Mark
  • Hi Mark,

    Thanx for your reply.

    Actually the issue was with the hardware. I had not removed a capacitor from MISO pin.

    After removing the capacitor it works well. 

    I am not sending the image captured in the scope as required by you as the issue is resolved.

    Regards,

    Kamal

  • Glad to hear that you have resolved it. Don't hesitate to post a new thread if you run into anything new.

    -Mark