Skip to content

Commit 26bcb59

Browse files
committed
[nrf fromlist] samples: drivers: adc: adc_sequence: Fix nrf54h20dk configuration
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]>
1 parent a717bc0 commit 26bcb59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

samples/drivers/adc/adc_sequence/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
zephyr,reference = "ADC_REF_INTERNAL";
4646
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
4747
zephyr,input-positive = <NRF_SAADC_AIN9>; /* P9.01 */
48+
zephyr,vref-mv = <3686>; /* 3.6V * 1024 */
4849
zephyr,resolution = <12>;
4950
zephyr,oversampling = <8>;
5051
};

0 commit comments

Comments
 (0)