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.

ADS1220: Sample Code to start programming with CC3200 or Tiva C microcontroller

Part Number: ADS1220
Other Parts Discussed in Thread: CC3200, ADS124S08

Hey,

I am looking for the sample code of ADS1220 with CC3200 or Tiva C microcontroller. Anyone have link for the example code? 

  • Hi Laxmi,

    There is some C code that can be used as a starting point for the ADS1220:

    http://www.ti.com/lit/zip/sbac227

    I would assume that the CC3200 has application code and I know that there is Tivaware example project code:

    http://www.ti.com/tool/SW-TM4C?keyMatch=tivaware&tisearch=Search-EN-Everything

    There is also an example project built around the ADS124S08 and Tiva C where you could substitute the ADS1220 files for the ADS124S08:

    http://www.ti.com/lit/zip/sbac159

    Best regards,

    Bob B

  • Thanks Bob for your help. Let me test it with cc3200. I would let you know. In meantime if anyone post direct example code for cc3200 would be helpful. Thanks.
  • I am trying to interface but it seems too complicated for me. anyone here would like to help me?
  • Hi Laxmi,

    Let's take one step at a time.  First, are you using the CC3200 Launchpad?  Or do you have some other prototyping setup?  Can you give more information?

    Second, the ADS1220 uses an SPI interface where SCLK dwells low and the data are latched on the falling edge.  So you would need to find the port connections for the SPI interface.  To get basic communication it would be easiest to hold CS of the ADS1220 low, then tie the SCLK pins between the micro and the ADS1220.  The MOSI of the micro goes to the DIN input on the ADS1220 and the MISO to DOUT/DRDY pin of the ADS1220.

    Best regards,

    Bob B

  • Hey Bob, Thanks for your quick response.

    1. Yes, I am using CC3200 Launchpad

    2. I have connected ADS1220 as follows 

    |ads1220 pin label| Pin Function         |CC3200 Connection|
    |-----------------|:--------------------:|-----------------:|
    | DRDY          | Data ready           |  D18              |             
    | MISO            | Slave Out            |  D14             |
    | MOSI            | Slave In               |  D15             |
    | SCLK            | Serial Clock        |  D07             |
    | CS                | Chip Select         |  D19              |
    | DVDD           | Digital VDD        |  +3.3V             |
    | DGND          | Digital Gnd          |  Gnd             |
    | AN0-AN3      | Analog Input       |  Analog Input    |
    | AVDD           | Analog VDD       |  +3.3V               |
    | AGND          | Analog Gnd         |  Gnd               |
    *************************************************************/

    Connections are correct? 

  • Hi Laxmi,

    I have not used the CC3200 Launchpad, nor do I directly support it.  Based on the schematic I do not see designations for D18, D14, etc., so I do not know what pins these are with respect to the CC3200.

    SCLK should connect to P1.7 of the Launchpad.  MISO (DOUT on ADS1220) should connect to P2.7, and MOSI (DIN on ADS1220) should connect to P2.6.  If you use CS, then this must be connected to a GPIO for control.  You cannot use the peripheral control as the data length varies.  DRDY is a GPIO input that you can either poll or setup as an interrupt.  The GPIO can be any of the designated GPIO pins on the Launchpad.

    Best regards,

    Bob B

  • I have connected ADS1220 with C3200 as you are saying.