Both sides previous revisionPrevious revisionNext revision | Previous revision |
resources:tools-software:linux-drivers:iio-dac:ad5755 [16 Nov 2012 12:44] – [Evaluation Boards] add missing eval boards Lars-Peter Clausen | resources:tools-software:linux-drivers:iio-dac:ad5755 [05 Jan 2021 16:02] (current) – Removed old references Ioana Chelaru |
---|
===== Reference Circuits ===== | ===== Reference Circuits ===== |
| |
* [[adi>CN0123]] | * [[adi>CN0198]] |
* [[adi>CN0131]] | * [[adi>CN0328]] |
* [[adi>CN0149]] | |
| |
===== Evaluation Boards ===== | ===== Evaluation Boards ===== |
===== Status ===== | ===== Status ===== |
| |
^ Source ^ Mainlined? ^ | ^ Source ^ Mainlined? ^ |
| [[git.linux.org>drivers/iio/dac/ad5755.c|git]] | [[git.linux.org>drivers/iio/dac/ad5755.c|In Progress]] | | | [[git.linux.org>drivers/iio/dac/ad5755.c|git]] | [[git.linux.org>drivers/iio/dac/ad5755.c|Yes]] | |
===== Files ===== | ===== Files ===== |
| |
"make qconfig") | "make qconfig") |
| |
<note> | <WRAP round help> |
The AD5755 Driver depends on **CONFIG_SPI** | The AD5755 Driver depends on **CONFIG_SPI** |
</note> | </WRAP> |
| |
<code> | <code> |
Linux Kernel Configuration | Linux Kernel Configuration |
Device Drivers ---> | Device Drivers ---> |
[*] Staging drivers ---> | ... |
<*> Industrial I/O support ---> | <*> Industrial I/O support ---> |
--- Industrial I/O support | --- Industrial I/O support |
-*- Enable ring buffer support within IIO | ... |
-*- Industrial I/O lock free software ring | Digital to analog converters ---> |
-*- Enable triggered sampling support | ... |
| <*> Analog Devices AD5755/AD5755-1/AD5757/AD5735/AD5737 DAC driver |
*** Digital to analog convertors *** | ... |
[--snip--] | ... |
| ... |
<*> Analog Devices Analog Devices AD5755/AD5755-1/AD5757/AD5735/AD5737 DAC driver | |
| |
[--snip--] | |
</code> | </code> |
| |
====== Hardware configuration ====== | ====== Hardware configuration ====== |
| |
{{page>software:linux:docs:iio:iio_snippets#iio device files&noheader&firstseconly&noeditbtn}} | {{page>software:linux:docs:iio:iio_snippets#iio device files&noheader&firstseconly&noeditbtn}} |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/> **cd /sys/bus/iio/devices/** | root:/> **cd /sys/bus/iio/devices/** |
lrwxrwxrwx 1 root root 0 Jan 2 21:54 subsystem -> ../../../../../bus/iio | lrwxrwxrwx 1 root root 0 Jan 2 21:54 subsystem -> ../../../../../bus/iio |
-rw-r--r-- 1 root root 4096 Jan 2 21:54 uevent | -rw-r--r-- 1 root root 4096 Jan 2 21:54 uevent |
</xterm></box> | </xterm></WRAP> |
| |
=== Show device name === | === Show device name === |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat name** | root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat name** |
ad5755 | ad5755 |
</xterm></box> | </xterm></WRAP> |
| |
=== Show scale === | === Show scale === |
scale to be applied to out_voltageY_raw/out_currentY_raw in order to obtain the measured voltage in millivolts. | scale to be applied to out_voltageY_raw/out_currentY_raw in order to obtain the measured voltage in millivolts. |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage2_scale** | root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage2_scale** |
root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_current0_scale** | root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_current0_scale** |
0.000244100 | 0.000244100 |
</xterm></box> | </xterm></WRAP> |
| |
=== Show offset === | === Show offset === |
The offset is applied before scale is applied. | The offset is applied before scale is applied. |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage2_offset** | root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage2_offset** |
root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_current0_offset** | root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_current0_offset** |
16384 | 16384 |
</xterm></box> | </xterm></WRAP> |
| |
=== Set channel Y output voltage === | === Set channel Y output voltage === |
channel Y. | channel Y. |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 10000 > out_voltage2_raw** | root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 10000 > out_voltage2_raw** |
</xterm></box> | </xterm></WRAP> |
| |
**U** = //(out_voltage2_raw + out_voltage2_offset) * out_voltage2_scale// = (10000 - TBD) * 0,038140 //mV// = **TBD //mV//** \\ | **U** = //(out_voltage2_raw + out_voltage2_offset) * out_voltage2_scale// = (10000 - TBD) * 0,038140 //mV// = **TBD //mV//** \\ |
normal operation. | normal operation. |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 1 > out_voltage2_powerdown** | root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 1 > out_voltage2_powerdown** |
root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage2_powerdown** | root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage2_powerdown** |
0 | 0 |
</xterm></box> | </xterm></WRAP> |
| |
====== More Information ====== | ====== More Information ====== |
| |
{{page>software:linux:docs:iio:iio_snippets#iio pointers&noheader&firstseconly&noeditbtn}} | {{page>software:linux:docs:iio:iio_snippets#iio pointers&noheader&firstseconly&noeditbtn}} |