Skip to content

Conversation

@jaz1-nordic
Copy link
Contributor

@jaz1-nordic jaz1-nordic commented Aug 5, 2025

The ADC driver API already supports ADC readings which can return signed values, these are differential readings. In Nordic's datasheet, we have a mode called "single ended", but its just a name. "Single ended" is a differential reading, with the negative channel tied to GND. This is not compatible with zephyrs definition of a single ended reading.

To support Nordic's "single ended" mode, the user must configure a differential reading, with the negative input tied to ground, which the saadc driver can then use to configure the reading as Nordic SAADC "single ended", and return negative values as expected.

Upstream PR #: 94069

…ended ADC readings

The ADC driver API already supports ADC readings which can return signed
values, these are differential readings. In Nordic's datasheet, we have
a mode called "single ended", but its just a name. "Single ended"
is a differential reading, with the negative channel tied to GND. This is
not compatible with zephyrs definition of a single ended reading.

To support Nordic's "single ended" mode, the user must configure
a differential reading, with the negative input tied to ground, which the
saadc driver can then use to configure the reading as Nordic SAADC
"single ended", and return negative values as expected.

Upstream PR #: 94069

Signed-off-by: Jakub Zymelka <[email protected]>
@jaz1-nordic jaz1-nordic force-pushed the nrfx-7707_adc_neg_values_v2 branch from c97e628 to a3e9494 Compare August 8, 2025 10:27
@jaz1-nordic
Copy link
Contributor Author

@nika-nordic @bjarki-andreasen please take a look also here.

@nordicjm nordicjm merged commit 84ab620 into nrfconnect:main Aug 8, 2025
18 of 19 checks passed
@jaz1-nordic jaz1-nordic deleted the nrfx-7707_adc_neg_values_v2 branch August 8, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants