Skip to content

Conversation

@nordic-krch
Copy link
Contributor

Add channel configuration build-time validation.
Demonstrate use of AIN8+ channel in adc_sequence sample.

…nfiguration

On nrf54h20 there are additional analog pins (AIN8+). When differential
mode is used they must not be mixed with AIN0-AIN7. Add build time
validation which detects if configuration is invalid.

Upstream PR #: 87405

Signed-off-by: Krzysztof Chruściński <[email protected]>
…vref_mv

Sample is reading vref-mv property to get reference voltage and then if
reference source is set to ADC_REF_INTERNAL this value is overwritten.
If vref-mv property is provided then it should not be overwritten.

Upstream PR #: 87405

Signed-off-by: Krzysztof Chruściński <[email protected]>
…nfiguration

AIN9 source needs special handling (all from AIN8-AIN14). Conversion
result needs to be scaled up by 3.6 additionally to gain and reference
voltage. In order to achieve correct value in the sample vref-mv is
used as reference voltage instead of predefined internal reference
source.

Upstream PR #: 87405

Signed-off-by: Krzysztof Chruściński <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Apr 1, 2025

@nordicjm nordicjm merged commit 566a50b into nrfconnect:main Apr 2, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants