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/TMS320F28335: Could we not use SPISTE(SPI slave transmit-enable pin) in master mode?

Part Number: TMS320F28335
Other Parts Discussed in Thread: ADS7253

Tool/software: Code Composer Studio

Hi,

According to the TRM,SPISTE is the SPI slave transmit-enable pin. Now, if it's in Master mode, could we not use SPISTE and configure the SPISTE pin  as a GPIO for other purpose?

The second question is ,  if I use SPISTE, how could I output high/low by SPISTE like a GPIO?

Thanks,

Peter

  • Peter,

    Yes, you are not required to use SPISTE in master mode.  I commonly omit this function and implement chip select lines in software using GPIOs so I can have multiple slaves on my SPI bus.

    A GPIO pin can either have a peripheral function like SPISTE or it can be a GPIO.  You can switch between GPIO and peripheral functions by changing the gpio mux registers and this can be run in the middle of your application execution if you so desire.

    Best,

    Trey

  • Hi Trey,

    Thanks for your reply. I just got information from other post reply that the ADS7253 we use now needs SPISTE to generate /cs edge to define the frame(shown in following picture. Then,my question now is how to make SPISTE generate the pulse sequence ADS7253 needs. Does it generate automatically after I set up the SPI?

  • Yes, the SPI peripheral will automatically generate the SPISTE signal and you can use that as your CS signal if the ADS7523 is the only other device on the SPI bus.  If you have multiple devices on the same SPI bus you will need to implement the CS signals in software using GPIOs.

    Trey

  • Hi Trey,

    Thanks for your detail reply.

    Peter