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.

LAUNCHXL2-TMS57012: SPI - Signal on SOMI Pin gets distorted when connected to master

Part Number: LAUNCHXL2-TMS57012

Good day,

Scenario:

LAUNCHXL2-TMS57012 (SPI Master)
Vectornav VN-200 (SPI Slave)

SPI Clock Speed: 8 MHz
SPI Mode 3
All pins are SPI functional (not GIO)

When I'm sending a request to the slave device, say: [ 0x01 0x05, 0x00, 0x00 ], the signals look good, the slave device understands and processes the request.

The expected answer to this request is: [ 0x00, 0x01, 0x05, 0x00, 0x00,0xC2, 0x01, 0x00 ]

The oscilloscope was always connected at the side of the slave device.

First two bytes of the request with SIMO (purple signal):

Byte: 0x01

Byte: 0x05

When the master device (LAUNCHXL2-TMS57012) is connected at the SOMI (green signal) pin we got the following byte in the answer (instead of 0x01), this obviously results in a 0x00 in the receive buffer:

... and the following byte in the answer (instead of 0x05), this obviously results in a 0x04 in the receive buffer:

Now comes the interesting part. When the SOMI pin is disconnected from the master device (LAUNCHXL2-TMS57012), the response bytes are not distorted and just like expected.

Expected 0x01 byte when SOMI (green signal) pin is disconnected from the master:

Expected 0x05 byte when SOMI (green signal) pin is disconnected from the master:

What has already been tried:

* Configure SOMI pin as open drain -> no effect


* Configure SOMI pin as pull up -> no effect


* Configure SOMI pin as pull down -> no effect


* Use of another SPI module (SPI1 and SPI3) -> always the same result


* Adding external pull up resistors to the SOMI pin -> no effect
  Pull up resistors were selected according to: www.ti.com/.../slva689.pdf

* Using a different master device (LAUNCHXL2-TMS57012) of the same model -> always the same result

Good to know:

* The master and the slave device are powered by the same VCC and are using the same Ground

* The SPI cables which connect the two devices are foiled and the shield is also connected to Ground

* Cable length of the SPI cables is ~ 20 cm

Why does the master distort the SOMI signal like this?

Is this a known issue? What other SPI configurations may be selected to solve this?

Any help/advice would be much appreciated.

I look forward to reading from you.

Best regards

P.

  • Hello,
    Could you check again grounding and all cables? It looks like you have problem with signal integrity.

    Best regards,
    Miro
  • Hi Miro,

    thanks for your suggestion. I am going to check on this, when I'm back at the office. But I'm in doubt if that is the solution. We already experimented with different sorts and lengths of cables. I'll inform you guys when tested again ...

    Best regards
  • Good afternoon,

    after a while of trying and measuring the signals, I decided to exchange all the cables. So i soldered new cables, kept them as short as possible and now the data transfers seem to be stable.

    The only problem I got now is, when I connect another slave device via I^2C, I got the same issue as described above.

    I am going to exchange the cables of the I^2C connection and try to set up the I^2C communication. If it still does not work, I'll open an issue regarding I^2C.
  • Thanks for updating P L!