Hello, Sir!
I have faced almost with the same problem which was mentioned in other thread titled "ADS8681: Configuration Issues".
I attached here the some code with working ADS8681 and some pictures from oscilloscope. Could you help me, Sir?
Sorry, our oscilloscope has only two channels, that why I could not put all pictures in one.
What is the problem? When I send the READ command (READ_HWORD or READ) to the configuration register of ADC (for example RANGE_SEL_REG) it returns me on first and second bytes only the conversion value and nothing else.
In here we should get the data about configuration settings, in my case it is 0x04. But it is 0x00.
And here the codes.
The main code is:
while(1) {
LBuffer[4] = ADS86_testReadWithCMD(READ_HWORD, RANGE_SEL_REG);
__delay32(1000); //1000us
L2Buffer[0] = ADS86_WriteLSBcmd(RANGE_SEL_REG, 0x0004);
__delay32(100);
L2Buffer[2] = ADS86_WriteHWORD(RANGE_SEL_REG, 0x0004);
__delay32(10);
}
and the others:
I tried all other commands too and also with the other registers, nothing has happend, and still I can't get the datas from the ADC about configuration settings.
Also, you suggested that the mode of SPI should be configurated to 0, both - ADC and microcontroller. I have executed it. Thank you!
Best regards, Osim!