-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible error in the readme #74
Comments
Thanks for the issue, I will look into it coming week. |
quick check shows you're right, good catch. 9.3.8 Conversion Ready Pin (ADS1114 and ADS1115 Only) |
Created a develop branch to fix this. |
I had to reread the datasheet (again) to understand (I hope) the details. (from datasheet 9.3.8) Continuous ModeAccording to the image the conversion is ready when the 8 us pulse goes LOW. Single Shot ModeIn the single shot mode the ALERT/RDY pin goes LOW if the COMP_POL bit is set to 0, this is also the default value / behavior. So this is how I understand the working: (no HW nearby to test)
|
@lynx985 |
@lynx985 If the COMP_POL problem still exists, please open a separate issue for it. |
thx for your work |
hi
i tried to implement the rdy pin on an ads1115 but it only worked half the time and depended on input voltages on the adc.
this made me suspicious that it might not work as a ready pin but as a comparator
so i read the datasheet, where it says:
"Set the most-significant bit of the Hi_thresh register to 1 ... "
I believe this is a 16 bit value because it is a 16 bid ADC, so i think this would be 0x8000 ?
in the readme it says:
"If the thresholdHigh is set to 0x0100 and the thresholdLow to 0x0000 the ALERT/RDY pin is triggered when a conversion is ready."
0x0100 did not really work but 0x8000 seems to work so far
I might messed up something else because the ready pin goes high after a conversion insted of low
the datasheet says if comp_pol is 0 it goes low, but it goes high and low if set to 1
kind regards
code for setting up the ads1115
(added code tags for readability)
The text was updated successfully, but these errors were encountered: