Hi all,
Recent I use ADS124S06 to do RTD temperature measurement project. When I read data from ADC with two different mode, I have some questions about them. When I use "Read Data by RDATA Command", in datasheet p69. Following is my code, ADC_num=100 and sample rate is 100 SPS. I only use SCLK, MOSI, MISO three pin to read data from ADC and ignore the state of DRDT pin. I find that I have to send RDATA command before each data read, or the data read will be abnormal. Am I right about this mode? And I also have following questions:
- What is update frequency of data-holding register?
- what is the difference of output shift register?
If data rate is 100SPS, the update frequency of output shift registeris 100Hz, then what is the frequency of data-holding register?
Following is my code about how to read data from ADC.
for(i=0;i<ADC_num;i++)
{
delay_ms(3);
sendCommand(RDATA_OPCODE_MASK); //First time I did not add this code
delay_ms(3);
ADC_readdata[i]=(uint32_t)0xffffff & dataRead(); //Read data
}