1ADC accuracy test
2
3This test checks that ADC readings match an expected value. It is
4done using two approaches:
5
6 - DAC source: a board DAC pin is set to a known value, which is then
7 read on an ADC one. If they match, the test passes.
8
9 - Reference voltage: an ADC channel is read and compared to an expected
10 value.
11
12For the DAC source, it is expected that DAC and ADC are connected. This
13can be indicated for twister runs by setting the fixture "dac_adc_loop".
14The test then sets DAC to half its resolution and reads the ADC to see
15if they match. Note that DAC and ADC are expected to generate/read
16voltage on the same range.
17
18In the reference voltage case, the ADC is expected to be connected to a
19known voltage reference, whose value is informed, in millivolts, at
20property "reference_mv" from "zephyr,user" node. The test reads the ADC
21to see if they match.
22