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.

TMS320F28388D: How to connect Multiple slave via SPI

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Hello,

Hope your doing well.

I need input on how to connect multiple slave (motor drivers) to single SPIA  by configuring GPIOs as Chip Select.

Is there any example code that i can refer for the this?

Thanks

Navya Anna Prince

  • Navya,

    CS (Chip select) pins shown as SSx below needs to be configured as GPIO output pin and connected to individual slaves as shown. Other CLK, MOSI, MISO signals are connected to all the slaves. When you want to transmit / receive to a particular slave, you need to pull the corresponding chipselect pin low.

    In the existing C2000Ware SPI example code, you just needs to assign other GPIO (CS) pins as output pins. There is no separate example for this use case as it is a very basic and simple modification.

    Please video presentation helps you getting started with SPI where these concepts are discussed.

    https://training.ti.com/ti-precision-labs-adcs-spi-serial-modes-clock-data

    Regards,

    Manoj