AnsweredAssumed Answered

AD7328 SPI problem

Question asked by KDN on May 14, 2015
Latest reply on Jun 16, 2015 by KDN

Is their any relation between reference voltage, input voltage and resolution of ADC.

 

I am trying to receive 16-bit of ADC data on SPI, but getting some problem, I think I am getting only 8-bit   

 

This is my code

 

while ( !SSPSTATbits.BF ); // wait until the all bits received

 

SSPSTATbits.BF=0;

 

data_read1 = SSPBUF; // read the received data from the buffer

 

data_read2 = SSPBUF; // read the received data from the buffer

data_read2 = data_read2<<8;

 

dis_cmd ( 0xC0);

 

data_read3 = (data_read2 | data_read1);

Outcomes