This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-drivers:iio-adc:ad7124 [15 Oct 2018 16:17] – Supported Devices Stefan Popa | resources:tools-software:linux-drivers:iio-adc:ad7124 [01 Feb 2019 11:02] (current) – Update driver links with upstream version Stefan Popa | ||
---|---|---|---|
Line 6: | Line 6: | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
+ | |||
+ | ===== Evaluation Boards ===== | ||
+ | |||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | This is a Linux industrial I/O ([[software: | ||
+ | The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc). | ||
+ | See [[software: | ||
+ | |||
+ | ===== Status ===== | ||
+ | |||
+ | ^ Source ^ Mainlined? ^ | ||
+ | | [[git.linux.org> | ||
+ | |||
+ | ===== Files ===== | ||
+ | |||
+ | ^ Function ^ File ^ | ||
+ | | driver | ||
+ | | devicetree bindings | [[git.linux.org> | ||
+ | |||
+ | ====== Driver testing ====== | ||
+ | |||
+ | {{page> | ||
+ | |||
+ | <WRAP top tip round box 60%> | ||
+ | An example program which uses the interface can be found here: | ||
+ | * [[resources: | ||
+ | </ | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | root:/> **cd / | ||
+ | root:/ | ||
+ | iio:device0 | ||
+ | |||
+ | root:/ | ||
+ | |||
+ | root:/ | ||
+ | drwxr-xr-x 2 root root 0 Jun 23 21:46 buffer | ||
+ | -r--r--r-- 1 root root 4096 Jun 23 21:46 dev | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage0-voltage1_offset | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage0-voltage1_raw | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage0-voltage1_sampling_frequency | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage0-voltage1_scale | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage2-voltage3_offset | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage2-voltage3_raw | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage2-voltage3_sampling_frequency | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage2-voltage3_scale | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage4-voltage5_offset | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage4-voltage5_raw | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage4-voltage5_sampling_frequency | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage4-voltage5_scale | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage6-voltage7_offset | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage6-voltage7_raw | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage6-voltage7_sampling_frequency | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 in_voltage6-voltage7_scale | ||
+ | -r--r--r-- 1 root root 4096 Jun 23 21:46 name | ||
+ | lrwxrwxrwx 1 root root 0 Jun 23 21:46 of_node -> ../ | ||
+ | drwxr-xr-x 2 root root 0 Jun 23 21:46 power | ||
+ | drwxr-xr-x 2 root root 0 Jun 23 21:46 scan_elements | ||
+ | lrwxrwxrwx 1 root root 0 Jun 23 21:46 subsystem -> ../ | ||
+ | drwxr-xr-x 2 root root 0 Jun 23 21:46 trigger | ||
+ | -rw-r--r-- 1 root root 4096 Jun 23 21:46 uevent | ||
+ | </ | ||
+ | |||
+ | === Show device name === | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | root:/ | ||
+ | ad7124-4 | ||
+ | </ | ||
+ | |||
+ | === Show channel scale and offset === | ||
+ | |||
+ | **Description: | ||
+ | Scales and offsets to be applied to in_voltagex_voltagey_raw in order to obdatin the measured voltage in millivolts | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | root:/ | ||
+ | 0.000149011 | ||
+ | root:/ | ||
+ | 0 | ||
+ | root:/ | ||
+ | 2679470 | ||
+ | </ | ||
+ | |||
+ | **Description: | ||
+ | Channel Ainp0-Ainm1 is configured as unipolar, with a gain of 1\\ | ||
+ | **U** = // | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | root:/ | ||
+ | 0.000298023 | ||
+ | root:/ | ||
+ | -2500 | ||
+ | root:/ | ||
+ | 9716211 | ||
+ | </ | ||
+ | |||
+ | **Description: | ||
+ | Channel Ainp2-Ainm3 is configured as bipolar, with a gain of 1\\ | ||
+ | **U** = // | ||
+ | |||
+ | === Set sampling frequency === | ||
+ | |||
+ | **Description: | ||
+ | The output data rate depends on the master clock frequency (fclk) which in turn determines the power mode:\\ | ||
+ | * Full power (fCLK = 614.4 kHz): 9.38 SPS to 19,200 SPS | ||
+ | * Mid power (fCLK = 153.6 kHz): 2.34 SPS to 4800 SPS | ||
+ | * Low power (fCLK = 76.8 kHz): 1.17 SPS to 2400 SPS | ||
+ | |||
+ | <WRAP box bggreen>< | ||
+ | < | ||
+ | root:/ | ||
+ | 10 | ||
+ | root:/ | ||
+ | 960 | ||
+ | root:/ | ||
+ | root:/ | ||
+ | 2400 | ||
+ | root:/ | ||
+ | root:/ | ||
+ | 4800 | ||
+ | </ | ||
+ | |||
+ | ====== More Information ====== | ||
+ | |||
+ | {{page> |