Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Matthias Hauser 941a5489d3 dts: boards: we: add board Ophelia-IV 3 months ago
..
boards dts: boards: we: add board Ophelia-IV 3 months ago
src tests: drivers: adc_accuracy: add calibration before sampling 9 months ago
sysbuild/vpr_launcher tests: drivers: adc: adc_accuracy_test: Add nrf54h20dk_nrf54h20_cpuppr 5 months ago
CMakeLists.txt
Kconfig tests: drivers: adc: Correct the reference-mv in Kconfig 5 months ago
README.txt tests: drivers: adc: Change the property names in the overlay 5 months ago
prj.conf
testcase.yaml dts: boards: we: add board Ophelia-IV 3 months ago

README.txt

ADC accuracy test

This test checks that ADC readings match an expected value. It is
done using two approaches:

- DAC source: a board DAC pin is set to a known value, which is then
read on an ADC one. If they match, the test passes.

- Reference voltage: an ADC channel is read and compared to an expected
value.

For the DAC source, it is expected that DAC and ADC are connected. This
can be indicated for twister runs by setting the fixture "dac_adc_loop".
The test then sets DAC to half its resolution and reads the ADC to see
if they match. Note that DAC and ADC are expected to generate/read
voltage on the same range.

In the reference voltage case, the ADC is expected to be connected to a
known voltage reference, whose value is informed, in millivolts, at
property "reference-mv" from "zephyr,user" node. The test reads the ADC
to see if they match.