This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Read one sample from ADC without timers.

I'm having trouble reading value from ADC. What I want is to read a sample and not set any timer, since I want to run it inside a timer itself and have the refreshed value. I want to read a sample and not fill a buffer because I need a value without being too precise, and that doesn't raise the consumption too much or take too long so that most of the time it can be in low consumption. I have been trying to run sample code mixing what I have found around here as what comes in the saadc example on SDKs

The example I am referring to specifically of not using timers is found here:

devzone.nordicsemi.com/.../simplest-way-to-read-an-adc-input

Best regards

Related