UCM-iMX95 Yocto Linux: ADC
The SoC features an integrated 8 channel, 12 bit analog to digital converter.
For sysfs device controls go to:
cd /sys/bus/iio/devices/iio\:device0/
The EVK carrier board exposes ADC signals on header P24.
Signal # | pin # |
ADC_IN0 | 2 |
ADC_IN1 | 4 |
ADC_IN2 | 6 |
ADC_IN3 | 8 |
ADC_IN4 | 1 |
ADC_IN5 | 3 |
ADC_IN6 | 5 |
ADC_IN7 | 7 |
To read all values, run:
grep . in_voltage[0-7]*
Expected output is a value in range 0 - 4095 which spans over the voltage range 0 - 1.8V, e.g.:
in_voltage0_raw:2281 in_voltage1_raw:2175 in_voltage2_raw:2306 in_voltage3_raw:2116 in_voltage4_raw:1966 in_voltage5_raw:2041 in_voltage6_raw:1967 in_voltage7_raw:2128