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: TM4C1290NCPDT / Advanced Bi-SSI Function

Other Parts Discussed in Thread: TM4C1290NCPDT

Tool/software: Code Composer Studio

Hello 

I am working with spi bi mode communication I am master in the communication, my main question is if should I write in TX fifo in bi write mode and after switch to bi read mode to get data in RX fifo? 

I was trying in that way but for me doesn't make sense because how i will the slave will send the data if i dont have clock signal when i am trying to read .. I could not find a good document how it is working i also find out that in the errata that : SSI#03 SSI1 can Only be Used in Legacy Mode .. and i am working in SSI1 but it is for Silicon Revision 1 , 2 ,3 .. i have 4 but does not work or i am missing something.Some help please.thanks

kinds regards.

  • Hello INGS,

    You would still use SSIDataPut or SSIDataPutNonBlocking for TX.

    We don't have a revision 4 of that device. SSI1 only works in Legacy Mode for all TM4C1290NCPDT MCUs. Please switch to using a different SSI module on the device and see if that resolves your issues.

  • Ohh nice to know! thanks a lot for the answer.
    I can use the same pin but mapped for SSI2?

    Actually I use :

    SSIAdvModeSet(SSI1_BASE,SSI_ADV_MODE_BI_READ); this is to set bi mode .

    data = HWREG(SSI1_BASE + SSI_O_DR); to read .

    one question is if i should write if i want read or how should i do? I have set the SPI as master with 8 bit.

  • Hello INGS,

    You have to look up the device datasheet to see which pins are mapped to SSI2. You will have to use different pins as the same pins do not have two different SSI modules mapped to them.

    You are already using TivaWare APIs to configure the SSI mode, why not use them for reading the data too? They handle all the register writes for you so you don't need doubt.

  • Thanks for the help I will try but i could find a nice document to undertand how it work.
    by the Tivaware APIs should i use :

    1-configur as master bi mode write
    2-funtcion "PUT" to write in the spi 

    3_configur as bi mode read

    4- function "GET" to read the spi bi mode 
    could be nice if i could get some example o documenation becuase in the datasheet does not write about protocolo .

    thanks a lot 

  • Hello INGS,

    All the API's are documented in the TivaWare DriverLib User's Guide which is found in the docs folder of TivaWare and also online here: http://www.ti.com/lit/ug/spmu298d/spmu298d.pdf