Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linux-drivers:iio-dac:ad5421 [16 Nov 2012 12:25] – add cns Lars-Peter Clausenresources:tools-software:linux-drivers:iio-dac:ad5421 [11 Feb 2016 19:52] (current) – [Status] Lars-Peter Clausen
Line 7: Line 7:
 ==== Reference Circuits  ==== ==== Reference Circuits  ====
  
 +  * [[adi>CN0267]]
   * [[adi>CN0278]]   * [[adi>CN0278]]
 +  * [[adi>CN0382]]
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
  
Line 23: Line 24:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined  ^+^ Source ^ Mainlined ^
 | [[git.linux.org>drivers/iio/dac/ad5421.c|git]] | [[git.linux.org>drivers/iio/dac/ad5421.c|Yes]] | | [[git.linux.org>drivers/iio/dac/ad5421.c|git]] | [[git.linux.org>drivers/iio/dac/ad5421.c|Yes]] |
 ===== Files ===== ===== Files =====
Line 108: Line 109:
 "make qconfig") "make qconfig")
  
-<note>+<WRAP round help>
 The ad5421 Driver depends on **CONFIG_SPI** The ad5421 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 AD5421 DAC driver 
-           *** Digital to analog convertors *** +                ... 
-     [--snip--] +            ... 
- +        ...
-     <*>   Analog Devices AD5421 DAC driver +
- +
-     [--snip--] +
 </code> </code>
- 
 ====== Hardware configuration ====== ====== Hardware configuration ======
  
Line 137: Line 133:
 {{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/**
Line 156: Line 152:
 lrwxrwxrwx    1 root     root             0 Jan  1 00:03 subsystem -> ../../../../../bus/iio lrwxrwxrwx    1 root     root             0 Jan  1 00:03 subsystem -> ../../../../../bus/iio
 -rw-r--r--    1 root     root          4096 Jan  1 00:03 uevent -rw-r--r--    1 root     root          4096 Jan  1 00:03 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**
 ad5421 ad5421
-</xterm></box>+</xterm></WRAP>
  
 === Show scale === === Show scale ===
Line 172: Line 168:
 scale to be applied to out_current0_raw in order to obtain the outputted current in milliampere. scale to be applied to out_current0_raw in order to obtain the outputted current in milliampere.
  
-<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_current_scale** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_current_scale**
 0.000244 0.000244
-</xterm></box>+</xterm></WRAP>
  
 === Show offset === === Show offset ===
Line 184: Line 180:
 offset to be applied to out_current0_raw in order to obtain the outputted current in milliampere. offset to be applied to out_current0_raw in order to obtain the outputted current in milliampere.
  
-<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_current_offset** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_current_offset**
 16384 16384
-</xterm></box>+</xterm></WRAP>
  
 === Set channel Y output current === === Set channel Y output current ===
Line 198: Line 194:
 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_current0_raw** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 10000 > out_current0_raw**
-</xterm></box>+</xterm></WRAP>
  
 **I** = //( out_current0_raw + out_current_offset ) * out_current_scale// = (10000 + 16384) * 0.000244 //mA// = **6.437696 //mA//** **I** = //( out_current0_raw + out_current_offset ) * out_current_scale// = (10000 + 16384) * 0.000244 //mA// = **6.437696 //mA//**
resources/tools-software/linux-drivers/iio-dac/ad5421.1353068718.txt.gz · Last modified: 16 Nov 2012 12:25 by Lars-Peter Clausen