2024-11-11 12:38 AM
Being relatively new to Yocto, I struggle a bit with some issues.
I intend to use ADC channels in my (user space) applications, but the channel names seem confusing.
Listing /sys/bus/iio on a live system, I can see two ADC devices, device_0 and device_1 - which I presume to correspond to ADC1 and ADC2.
The device 0 contains channels voltage_18_raw and voltage_19_raw, and device 1 contains channels voltage_13_input, voltage_14_raw, voltage_18_raw and voltage_19_raw.
In general, do those numbers <nn> refer to ADC1_INP<nn> / ADC2_INP<nn> in the datasheet ?
The problem here is, ADC1_INP18 and ADC2_INP18 refer to pin PA4, and ADC1_INP19 and ADC2_INP19 refer to PA5. Which would not be a problem as such , but according to the board schematics, both pins are connected to USB_PWR_CC1 and USB_PWR_CC2, respectively.
OTOH, there are 6 pins of the Arduino connector CN17 marked as analog inputs in the schematics of the DK, but the channel numbers listed there do not match:
Can someone shed a light on this issue ?
Thank you !