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.

regarding ADS8320

Other Parts Discussed in Thread: ADS8320

hello,

i am using ADS8320 in one of my project. But i am facing a problem in reading of digital data. the wave forms at Dout pin of are distorted. i.e. it seems like garbage. can you please help over this. can you send me example "C" code for SPI communication and data read. it is very important for me.

  • Hi,

    I just worked with AD8320. first six bits are sample and zero bits so you have to read next 16 bits.....which contaiins data. If you have established SPI communication then just try like this....

    unsigned int AD8320_16() 
    { 
        unsigned int data; 
        chip select low;
      data = spi(0);     // read hi-byte 
      data = (data << 8)| spi(0);
      data = (data << 8) | spi(0);    // and lo-byte.
      data = (data &0x03FFFC)>>2;
        chip select high;
        return data; 
    } 

    Regards,

    Pavan.