Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 10 months ago.
Setting the ADC bit width when using the AnalogIn API.
Folks,
Quick question, (also know that I'm a noob...), when using the AnalogIn API call, how do I know how wide my ADC is set in my controller (Nordic xxxx1822)? The ADC can be set to 8, 9, or 10 bits.
New to C++ and I haven't completely wrapped my head on the indirection of the different HW libraries and how they link.
Thanks,
Rob
Question relating to:
1 Answer
11 years, 10 months ago.
The AnalogIn api uses a fixed ADC resolution. Here is the source code, it uses 10-bit resolution: http://mbed.org/users/mbed_official/code/mbed-src/file/cb4253f91ada/targets/hal/TARGET_NORDIC/TARGET_NRF51822/analogin_api.c