I have configuration register 0 set to 0x12 at power up. But for some reason after 15 minutes to 2 hours when I read configuration register 0 it will say it is set to 0. Do you know what would cause the configuration register 0 to change to 0?
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.
I have configuration register 0 set to 0x12 at power up. But for some reason after 15 minutes to 2 hours when I read configuration register 0 it will say it is set to 0. Do you know what would cause the configuration register 0 to change to 0?
Hi Matthew Cole,
The default value of the CONFIG0 register is 0x0A, so I am not sure what would set the register to a different, non-default value. Is there any traffic on the SPI lines that could cause an inadvertent WREG?
You have confirmed that the initial register write occurs as intended, correct? In other words, you are able to read back a value of 0x12 after the initial WREG and it is only after some time that you try to read back the register again and you get 0x00?
Are there any issues with the ADC clock or power supplies during this time?
-Bryan
For testing i have my code read registers 0 - 5 every minute. After about 15 minutes to 2 hours the register gets set to 0x00
Hi Matthew Cole,
Can you monitor the SPI lines for any additional traffic that could cause such an issue?
Are there any issues with the ADC clock or power supplies during this time?
-Bryan
It can take up to 2 hours for the issue to happen and I don't have a way to log SPI data. I am sending a 16 read commands every 50 milliseconds
Hi Matthew Cole,
If you are unable to determine the state of the SPI, the supplies, or the clock when the issue occurs, I am not sure what additional help we can offer.
There is no obvious reason why this issue should occur, especially since it happens repeatedly and is not returning to the default register value.
-Bryan