reset by SCLK reset pattern while initializing - #23
Conversation
|
Have you tried sendDirectCommand(RESET)? |
|
I've tested it now, it is interesting problem. Board is currently powered by USB from PC, but there is power supply and transformer ready for production use. When I turn on/off the mains supply couple times, the ADS goes wild probably due to some induced voltage. Reset button on the ESP board is not resetting the ADC in the original library witohut RST button defined and value of Status register is still 124 although InitializeADC() should set it. The sendDirectCommand(RESET) works though. It sets the STATUS register to 48 (default after reset). |
I've got the board without RESET pin so ADS is not reset when I invoke software reset or press the RST button on the controller board. If the ADC gets into wrong state there is no way to fix it except unplugging whole device. (It happens to me sometimes when tuning on/off some circuits). I've implemented the alternative reset procedure to initialization, could be useful for others