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.

ADS1278: Code example

Part Number: ADS1278

Hi,

I am looking for example code on how to operate the 24-bit ADC (ADS1278, 1274). Specifically, I'm trying to see how to establish spi comms. I think that I have to use /DRDY signal as GPIO input in my system. Would someone sent me an example code to see how the rest of the signals work? Should I config my SPI as slave (so ADC as master)?

Related question: (e2e.ti.com/.../665443)

Thanks in advance!

  • Hello Juan,

    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. Thus, the device is a read only device. I am not aware of any simple code examples.

    Regards,
    Keith N.