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.

TMS320F28379D: SPI configuration for Multi Slaves?

Part Number: TMS320F28379D
Other Parts Discussed in Thread: TMS320F28377D

Hi, 

The TMS320F28377D is connected to two slaves using SPI modules.

I intend to use GPIOs as chip select pin instead of SPISTE.

In this case, how to set  the SPI mode? (SPIPRI.TRIWIRE bit)

If the SPI is set to 4-wire mode, What is the status of the SPISTE pin?

Can I set SPISTE pin to GPIO and 4-wire mode?

  • Remony,

    You need to configure 2 GPIOs as regular output pins and route them to your slave devices as shown below.

    From Code configuration standpoint:-

    • Configure C2000 SPI as master device in normal 4-wire SPI mode (SPIPRI.TRIWIRE = 0)
    • Configure SPICLK, SPIMOSI, SPISOMI as regular SPI pins
    • Configure GPIO pins as output pins to be used slave select pins.

    SPI slave select is done manually as shown below:-

    • When you want to talk to a particular slave, pull the corresponding GPIOx pin low.
    • When you are finished talking with particular slave, pull the corresponding GPIO pin high

  • Remony,

    Is this issue resolved? Can I close this thread?

    Regards,

    Manoj