Go to the source code of this file.
◆ NRF_SAADC_AIN0
◆ NRF_SAADC_AIN1
◆ NRF_SAADC_AIN2
◆ NRF_SAADC_AIN3
◆ NRF_SAADC_AIN4
◆ NRF_SAADC_AIN5
◆ NRF_SAADC_AIN6
◆ NRF_SAADC_AIN7
◆ NRF_SAADC_GND
Short ADC negative input to ground.
The nRF SAADC hardware only supports differential readings. The nRF SAADC SE (single ended) mode is differential with the negative input shorted to GND (ground). To use the nRF SAADC SE mode, set the negative input to NRF_SAADC_GND:
zephyr,input-positive = <NRF_SAADC_AIN3>;
zephyr,input-negative = <NRF_SAADC_GND>;
The nRF SAADC driver also supports using the nRF SAADC SE mode in emulated "single-ended" mode, as defined by zephyr. In this mode, negative readings will be clamped to 0 by software to emulate the behavior of an ADC in "single-ended" mode, as defined by zephyr. To do this, only define the positive input:
zephyr,input-positive = <NRF_SAADC_AIN3>;