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.

I'm trying to communicate using SPI from external ADC (ad7606-4) to TM4C1230C3PM platform to get analog signals

Other Parts Discussed in Thread: TM4C1230C3PM, TLV5616

Basically 2 questions,

#1. I am new to embedded system and just learned how to blink the LED and ring the buzzer with TM4C1230C3PM

Is there any sample code or source code for read the analog data from external ADC using SPI  ??

#2. what is the difference between SSI and SPI...? I saw several posts about SPI but their sample code used SSI instead.

(sorry for my poor English )

  • Hi Sukgyu,

    If you are starting with the Tiva try looking into here:

    I haven't added much about the SSI to the blog, it's made but with exams I haven't had time to review it a little more before posting.

    Sukgyu Koh said:
    Is there any sample code or source code for read the analog data from external ADC using SPI  ??


    Now which ADC? It depends on it.
    I do have a sample code for a DAC, never needed (for now) an external ADC so I only made the sample for a ADC DAC (dam exams burning my brain).
    Do yo have an ADC already? If so, which one? If not, I can provide you right of the bat a sample code for a DAC for you to play around with the SSI. If you have a university student you can ask the sample for said DAC

    Sukgyu Koh said:
    #2. what is the difference between SSI and SPI...? I saw several posts about SPI but their sample code used SSI instead.


    Now this is poor reading/studying or else you would clearly not ask the difference betwen SSI and SPI. 
    Simply search for "Serial Synchronous Interface" which stands for "SSI" and you will find your answer. Try to look a bit more into it and then if you have more questions I will try to answer them - a bit of comparison: you asking the difference between SSI and SPI is like asking  "what's the difference between a vegetable and a lettuce" 

    Edit:

    Ah the ADC is in the title.
    You should not have key information like that just in the title nor such a long title (I am no example to follow in title making)
    I went ahead look into that DAC datasheet and instantly thought "nope!". This is not a good ADC to start learning to use the SSI peripheral, it's too complicated for the purpose, it has control inputs and tons of other pins that have nothing to do with the SPI communication. You should start with the most basic. 
    Look into my suggestion on using TLV5616, the DAC I was referring before. It's very simple, barely anything to make connections, you can just concentrate on understanding the SSI peripheral.

  • Luis Afonso said:
    not a good ADC to start learning to use the SSI peripheral, it's too complicated for the purpose, it has control inputs and tons of other pins that have nothing to do w/your objective... 

    Or (far simpler) - poster avoids KISS - and (of course) crashes/burns due to unneeded/unwanted complexity!

    Unguided posters too often make unwise choices - forum is loitered w/very predictable, "Does not Work!" results...