|
|
Line 1: |
Line 1: |
| This board supports four 12-bit ADC inputs using the i.MX6UL CPU's integrated ADC.
| |
| All of these inputs can sample 0-12VDC or 4-20mA.
| |
|
| |
|
| These ADCs are accessed through the [https://wiki.analog.com/software/linux/docs/iio/iio Linux Industrial I/O Subsystem] (IIO), which provides sample rates up to 6ksps across all inputs.
| |
| The simplest API it offers for slow speed acquisition is via [https://en.wikipedia.org/wiki/Sysfs sysfs] (/sys):
| |
| <source lang=bash>
| |
| cat /sys/bus/iio/devices/iio:device0/in_voltage{5,8,9,0}_raw
| |
| </source>
| |
|
| |
| The pin assignments and names for accessing each ADC input are:
| |
| {|class=wikitable
| |
| ! Schematic Name
| |
| ! i.MX6UL ADC Signal
| |
| ! CN32 Terminal Pin
| |
| ! IIO name
| |
| |-
| |
| | AN_1_STC
| |
| | ADC1_IN5
| |
| | 25
| |
| | voltage5
| |
| |-
| |
| | AN_2_STC
| |
| | ADC1_IN8
| |
| | 23
| |
| | voltage8
| |
| |-
| |
| | AN_3_STC
| |
| | ADC1_IN9
| |
| | 21
| |
| | voltage9
| |
| |-
| |
| | AN_4_STC
| |
| | ADC1_IN0
| |
| | 19
| |
| | voltage0
| |
| |}
| |
|
| |
| See the [[TS-4100]] section for a pinout illustration of the header, which is labeled CN32 on the schematic and silkscreen.
| |