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.

ADS1278EVM-PDK: SPI communication protocol code example

Part Number: ADS1278EVM-PDK
Other Parts Discussed in Thread: ADS1278

Hi team,

         I'm trying to develop a dynamic acquisition system with TIVA TM4C1294NCPDT-EVM via SPI to a ADS1278-EVM module. However I'm not experienced in SPI communication protocol. Can you send me a code example to perform the communication?

Thanks & Regards,

Aravind.S.R

Aravind- email: aravindsr2410@gmail.com

  • Hello Aravind,

    We do not have any example code for the ADS1278.  However, the ADS1278 is a very simple device to work with.  There are no internal registers; all functions are configured through hardware pins.

    The general flow for the code:

    1.  MCU monitors the /DRDY line, either through software polling or interrupt, looking for a high to low (falling edge) transition.

    2.  When /DRDY goes low, data is ready.  The MCU provides 24 SCLK pulses for each channel (total number depends on TDM or parallel modes) and captures the data on the DOUT pin(s).  The ADS1278 launches data on the SCLK falling edge and the host processor should capture data on the rising edge.

    For more information on SPI protocol, take a look at TI Precision Labs - ADCs that covers this topic.

    https://www.ti.com/video/series/precision-labs/ti-precision-labs-analog-to-digital-converters-adcs.html

    Also, since you are using a TIVA system, I suggest you post a question to that team specifically asking how to use SPI with that device.

    Regards,
    Keith Nicholas
    Precision ADC Applications