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.

ADS1274EVM-PDK : SPI communication protocol code example

Part Number: ADS1274EVM-PDK

Hi.

Could you please provide me with an example of code for an Arduino(or stm32f series for mbed) that will reliably receive data from ADS1274 via SPI?
Maybe something similar to here "e2e.ti.com/.../736388"

Thanks.

  • Hello Kim,

    We do not have ADS1274, ADS1278 code examples for Arduino or stm32f. Also, we are no longer able to directly share source code for the Evaluation Boards. Most of the newer Evaluation Board software includes the source code with the GUI download, but the ADS1274 does not.

    For proper SPI communications, you should configure your host SPI as master. You can either pole the /DRDY pin or use it to trigger an interrupt to clock out data. Once data is ready (/DRDY goes from high to low), you can clock the data out. The ADS1278 shifts out data on DOUT on the falling edge of SCLK and your host CPU should capture this data on the rising edge of SCLK. There are no registers to configure in the ADS1278; configuration is done in hardware.

    If you are having problems getting your code to work, please provide SPI waveforms and I can check for timing issues.

    Regards,
    Keith N.
    Precision ADC Applications
  • thanks for your reply

  • Hello Kim,

    I am going to close this thread. If you have additional questions, please post a new thread.

    Regards,
    Keith