Comments (2)
@kritch83
Good question.
The library has no way to set an interrupt handler for the ALERT/RDY pin.
One has to program the interrupt handler outside the library.
A simple example how the interrupts can be handled => ADS_continuous_4_channel.ino
The ALERT pin is connected to pin2 which is a hardware interrupt on the Arduino UNO and if triggered it sets the RDY flag which is checked and handled somewhere in handleConversion
which is called pretty often.
The flag RDY should have been guarded with nointerrupts() interrupt()
but as the ISR just sets a one byte flag it works well without guards.
Problem with interrupts in libraries is that I did not find a way to implement them in a clean, understandable and portable way.
Does this answer your question ?
from ads1x15.
Yes that does. IDK how I missed that example. Thought I looked thru them all. Thank you!
from ads1x15.
Related Issues (20)
- requestADC(pin); should have 0 as default, HOT 1
- ADS1115 reading HOT 14
- How to check if the data rate is correct? HOT 8
- ADS1115 on RP2040 Wire, 0x4B is busy HOT 14
- Arduino Micro and ADS1115 - 860SPS (Only on 1 channel ?) HOT 62
- Error during compiling HOT 5
- ESP32 work on Espressif 1.04 but No on Espressif 2,07 HOT 4
- Synchronous mode very slow HOT 13
- [Query] Example for continuously reading all four channels at max sps? HOT 2
- Differential continuous mode HOT 12
- Cannot change address HOT 11
- ADS1115 value from one channel is being copied to the other HOT 6
- The use of Wire1 is not allowed for ESP32 or ESP8266 HOT 3
- Alternate I2C/TWI library or library abstraction layer HOT 8
- [question] About using ALERT RDY in ADS_continuous_differential.ino example. HOT 8
- getMaxVoltage() does not handle ADS1113 HOT 6
- interrupt driven reads HOT 6
- Differential input and gain for maximum precision. HOT 4
- wire speed HOT 22
- 10-12 Channel Continuous with interrupts. HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ads1x15.