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.
Martin,
Generally, yes that is the way you would set up the ADS1015. By writing a 1 to the MSB of the Hi_thresh register, you would guarantee that the digital comparator triggers every single time. This sets the hi threshold to a negative number and the low number stays positive (or really 0).
For (2), I think that you only need check a few things. First, are you using single-shot conversion mode or continuous conversion mode? If you are using single-shot conversion mode, you need to make sure the register write MSB is a 1 to start the conversion. If you are using continuous conversion mode, have you checked with an oscilloscope for the ALERT/RDY pin? Note that the pulse width is only 8us, so polling this pin may not be as effective as using the pin as an interrupt.
One other word about continuous conversion mode is that if you change the configuration register, the device does not immediately change the configuration. It waits until the conversion in progress completes, and then makes the change. Because of this, I often recommend using single-shot conversion mode and then wait a specific time to read from the device. It's often more effective than using the ALERT/RDY to time the read and change in configuration.
If you're having problems with the interrupt, I would verify the write to the threshold registers, verify that you're in some sort of continuous conversion, and look at the ALERT/RDY pin with an oscilloscope to see that there is some sort of periodic pulse indicating the data is ready.
Joseph Wu