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.

ADS8694: Not able to get the data from device ADS8694IDBT

Part Number: ADS8694

Hii,

I am using ADS8694,

When i am going to communicate this IC with Arduino, communication is happening but

when i am going to acquire the data , i am not able to get the correct data. below data is getting when i am giving 1v as input to the channel_0

below attached file is arduino code.

5127.7725.New Text Document.txt
#include <SPI.h>
#include "string.h"
#include "stdio.h"
#include "stdlib.h"

#define cs_pin              7

void setup() {
  
  Serial.begin(9600);
  
  SPI.begin();
  SPI.setDataMode(SPI_MODE1); 

  pinMode(cs_pin, OUTPUT); //cs
  digitalWrite(cs_pin,HIGH); //cs
  delay(1000);

 digitalWrite(cs_pin,LOW);
   SPI.transfer(0x03);
   SPI.transfer(0x01);
   digitalWrite(cs_pin,HIGH);
   ///// Range select register //////////
   digitalWrite(cs_pin,LOW);
   SPI.transfer(0x05);
   SPI.transfer(0x06);
   digitalWrite(cs_pin,HIGH);
////// Manual channel slelction ///////
   digitalWrite(cs_pin,LOW);
   SPI.transfer(0xC0);
   SPI.transfer(0x00);
   //digitalWrite(cs_pin,HIGH);

  //digitalWrite(cs_pin,LOW);
  //SPI.transfer(0x00);
  SPI.transfer(0xFF);
  SPI.transfer(0xFF);
  SPI.transfer(0xFF);
  digitalWrite(cs_pin,HIGH);

  digitalWrite(cs_pin,LOW);
  SPI.transfer(0x00);
  SPI.transfer(0x00);
  Serial.println(SPI.transfer(0xFF));
  Serial.println(SPI.transfer(0xFF));
  Serial.println(SPI.transfer(0xFF));
  digitalWrite(cs_pin,HIGH);
}

void loop() {
  uint32_t adc = 0;
  delay(1);
  digitalWrite(cs_pin,LOW);
  SPI.transfer(0x00);
  SPI.transfer(0x00);
  adc |= SPI.transfer(0xFF) << 10;
  adc |= SPI.transfer(0xFF) << 2;
  adc |= SPI.transfer(0xFF);

  Serial.println(adc);

  digitalWrite(cs_pin,HIGH);
  delay(1000);
}

  • Hi daggupati,

    What's the input range of your ADC? What's the voltage measured on REFIO pin of ADC? Can you provide a schematic to check?

    The code you got is less than 20000h, the right code should be higher than 20000h if your input signal is positive and your ADC input range is bipolar. Can you please provide a timing plot(one frame similar as Figure 1) for SCLK,/CS,SDI and SDO? What's your SPI's polarity and phase configuration?

    Best regards,

    Dale