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.

ADS8698EVM-PDK: Programming the ADS8698EVM-PDK

Part Number: ADS8698EVM-PDK
Other Parts Discussed in Thread: ADS8688

Hello everybody,

I really need a manual to program the ADS8698EVM-PDK by myself. The datasheet isn´t very helpful for me.

I want to use a Arduino Mega Board to communicate with the ADS8698EVM-PDK over SPI. Can anybody help me?

  • Hi Tim,

    I Apologized for late response because of business travelling. Please follow up these steps(Manual mode as an example):

    1. The first important thing is you need connect the digital signals between your controller board and ADS8689EVM, /CS,SCLK,SDO and SDI

    2. Your controller sends SCLK and SDI with command(table 6 in datasheet) including channel information to ADC according to below timings (Configure your SPI:

    CPOL = 0, CPHA = 1).

    3. You can retrieve the conversion data on SDO.

    Remark: If you want to use different input ranges and other features, you will have to program the registers (refer to table 7 and 9)

    Thanks&regards

    Dale

  • Can you show me a example for code. I want to read out the channel 0.

    My frist steps are like below.

    void setup()
    {

    /*SPI*/
    SPI.begin(); // initialize SPI bus
    SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE1));

    pinMode(pinSS, OUTPUT);
    }

    void loop()
    {

    //18 bit result
    byte result1;
    byte result2;
    byte result3;

    //starting measurement
    digitalWrite(pinSS, LOW); //begin trans
    SPI.transfer(0xC0); // select Channel 0
    digitalWrite(pinSS, HIGH); //end trans

    digitalWrite(SS, LOW); //begin trans

    result1 = SPI.transfer(0);
    result2 = SPI.transfer(0);
    result3 = SPI.transfer(0);

    digitalWrite(SS, HIGH); //end trans

    }

  • *UPDATE*

    I use know a complete ilbrary for the ADS8688 (github.com/.../ADS8688a).

    I am measuring 5.12 V on all the channels at the time, but it should be zero.
  • I have a foto of the hardware setup.

  • Hi Tim,

    I'll be covering for Dale while he is on travel.

    Unfortunately we do not have sample code for the device.  

    If you can provide a scope shot of the digital communications, SCLK, SDI,SDO, CS we can double check your timing, this is a common source for communications issues. 

    Note when the device is powered up, all its registers are in their default mode. I would suggest trying to read and write to the device registers to check your timing. If in manual mode, as Dale covered,  you will need to select a channel to measure. I would suggest looking at Table 9 of the datasheet to become more familiar with the registers of the device. 

    May I ask why you did not find the datasheet or EVM useguide useful?  We aim for our documents to cover necessary aspects of our products and be helpful for customers.

    Regards

    Cynthia