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: ADC SPI Communication Protocol Code Example

Part Number: ADS1278
Other Parts Discussed in Thread: ADCPRO, SM320F28335-EP

Hello Data Converter Community,

If possible, could you please provide example code for an Arduino to ADS1278 SPI communication protocol? Similar to former posts linked here: https://e2e.ti.com/support/data-converters/f/73/p/665443/2447163

Best,

Alex

  • Hello Alex,

    Welcome to TI's E2E community.

    The only source code that we have available is included in the plug-in software download. If you install the plug-in to the default directory, you will find it at this location on your PC:

    C:\Program Files (x86)\ADCPro\plugins\evm\ADS1278\source

    I will note that this will not likely help much with writing a low-level SPI driver.

    The ADS1278 is one of the easier devices to get working over SPI. There are no registers to write to; everything is configurable using hardware pins. The SPI host captures data on the SLCK rising edge, and data is clocked out on the SCLK falling edge. The ADS1278 continuously converts data, and issues a DRDY falling edge when new data are ready to be read out of the device. The Host MCU can monitor the DRDY for a falling edge, either through software polling or hardware interrupt, and then transfer the data.

    Also note that the maximum output data rate when using SPI is 105.469kSPS due to the maximum CLK frequency of 27MHz.  You can run CLK and SCLK at the same frequency for convenience.

    I hope this is helpful.

    Regards,
    Keith Nicholas
    Precision ADC Applications

  • Hi Keith,

    Thank you very much this was helpful!

    Best,

    Alex 

  • Hi, Does ADS1278 support SPI communication with sm320f28335-ep controller. 

    As we were trying to implement mention above detail provided by you, but unable to get the data.

  • Hi Alex,

    If you can help us with SPI code of ADS1278 and controller.

    Because the file above could not help much to us.

  • Hi Navin,

    Yes, the SM320F28335-EP should be able to talk to the ADS1278 using the DSC SPI module. 

    I took a quick look at the SPI User's guide and it only supports up to 16b transfers.  In order to use this peripheral, you will need to transfer 3x 8b blocks of data, and then combine the results.

    If you have detailed questions on how to use this peripheral in the F28335, I suggest you post a new question specifically for the F28335.

    Regards,
    Keith