Skip to content

Commit a51467b

Browse files
committed
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. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
1 parent 66c6940 commit a51467b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
channel@2 {
4343
reg = <2>;
4444
zephyr,gain = "ADC_GAIN_1_2";
45-
zephyr,reference = "ADC_REF_INTERNAL";
4645
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
4746
zephyr,input-positive = <NRF_SAADC_AIN9>; /* P9.01 */
47+
zephyr,vref-mv = <3686>; /* 3.6V * 1024 */
4848
zephyr,resolution = <12>;
4949
zephyr,oversampling = <8>;
5050
};

0 commit comments

Comments
 (0)