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:ad5064 [27 Jan 2012 16:39] – Approved Robin Getzresources:tools-software:linux-drivers:iio-dac:ad5064 [29 Dec 2020 06:06] (current) – fix links Robin Getz
Line 3: Line 3:
 ===== Supported Devices ===== ===== Supported Devices =====
  
-  * [[adi>AD5064]] 
-  * [[adi>AD5064-1]] 
-  * [[adi>AD5044]] 
   * [[adi>AD5024]]   * [[adi>AD5024]]
 +  * [[adi>AD5025]]
 +  * [[adi>AD5044]]
 +  * [[adi>AD5045]]
 +  * [[adi>AD5064]]
 +  * [[adi>AD5064|AD5064-1]]
 +  * [[adi>AD5065]]
 +  * [[adi>AD5625]], (Upstream v4.6+)
 +  * [[adi>AD5625R]], (Upstream v4.6+)
 +  * [[adi>AD5627]], (Upstream v4.6+)
 +  * [[adi>AD5627R]], (Upstream v4.6+)
 +  * [[adi>AD5628]]
 +  * [[adi>AD5629R]]
 +  * [[adi>AD5645R]], (Upstream v4.6+)
 +  * [[adi>AD5647R]], (Upstream v4.6+)
 +  * [[adi>AD5648]]
 +  * [[adi>AD5665]], (Upstream v4.6+)
 +  * [[adi>AD5665R]], (Upstream v4.6+)
 +  * [[adi>AD5666]]
 +  * [[adi>AD5667]], (Upstream v4.6+)
 +  * [[adi>AD5667R]], (Upstream v4.6+)
 +  * [[adi>AD5668]]
 +  * [[adi>AD5669R]]
 +  * [[adi>LTC2606]], (Upstream v4.5+)
 +  * [[adi>LTC2607]], (Upstream v4.5+)
 +  * [[adi>LTC2609]], (Upstream v4.5+)
 +  * [[adi>LTC2616]], (Upstream v4.5+)
 +  * [[adi>LTC2617]], (Upstream v4.5+)
 +  * [[adi>LTC2619]], (Upstream v4.5+)
 +  * [[adi>LTC2626]], (Upstream v4.5+)
 +  * [[adi>LTC2627]], (Upstream v4.5+)
 +  * [[adi>LTC2629]], (Upstream v4.5+)
 +
 +===== Reference Circuits =====
 +
 +  * [[adi>CN0182]]
 +  * [[adi>CN0183]]
  
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
Line 12: Line 45:
   * [[adi>EVAL-AD5064EBZ]]   * [[adi>EVAL-AD5064EBZ]]
   * [[adi>EVAL-AD5064-1EBZ]]   * [[adi>EVAL-AD5064-1EBZ]]
 +  * [[adi>EVAL-AD5629RSDZ]]
 +  * [[adi>EVAL-AD5666EBZ]]
 +  * [[adi>EVAL-AD5668SDRZ]]
 +  * [[adi>EVAL-AD5668SDCZ]]
 +  * [[adi>EVAL-AD5669RSDZ]]
 +  * PMOD-DA4
 ===== Description ===== ===== Description =====
  
Line 22: Line 61:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
-| [[bfgit>linux-kernel?drivers/staging/iio/dac/ad5064.c|git]] |  [[git.linux.org>drivers/staging/iio/dac/ad5064.c|Inprogress]]  |+| [[git.linux.org>drivers/iio/dac/ad5064.c|git]] | [[git.linux.org>drivers/iio/dac/ad5064.c|Yes]] |
 ===== Files ===== ===== Files =====
  
 ^ Function ^ File ^ ^ Function ^ File ^
-| driver  | [[git.linux.org>drivers/staging/iio/dac/ad5064.c]] |+| driver  | [[git.linux.org>drivers/iio/dac/ad5064.c]] |
  
 ====== Example platform device initialization ====== ====== Example platform device initialization ======
Line 135: Line 174:
 "make qconfig") "make qconfig")
  
-<note>+<WRAP round help>
 The AD5064 Driver depends on **CONFIG_SPI** The AD5064 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 AD5064 and similar multi-channel DAC driver 
-           *** Digital to analog convertors *** +                ... 
-     [--snip--] +            ... 
- +        ...
-     <*>   Analog Devices AD5064/64-1/44/24 DAC driver +
- +
-     [--snip--] +
 </code> </code>
- 
 ====== Hardware configuration ====== ====== Hardware configuration ======
  
Line 165: Line 199:
 {{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 196: Line 230:
 lrwxrwxrwx    1 root     root             0 Jan  3 16:50 subsystem -> ../../../../../bus/iio lrwxrwxrwx    1 root     root             0 Jan  3 16:50 subsystem -> ../../../../../bus/iio
 -rw-r--r--    1 root     root          4096 Jan  3 16:50 uevent -rw-r--r--    1 root     root          4096 Jan  3 16:50 uevent
-</xterm></box>+</xterm></WRAP> 
 + 
 +The number of channels depends on the chip model.
  
 === 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**
 ad5064 ad5064
-</xterm></box>+</xterm></WRAP>
  
 === Show scale === === Show scale ===
Line 212: Line 248:
 scale to be applied to out_voltage0_raw in order to obtain the measured voltage in millivolts. scale to be applied to out_voltage0_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_voltage0_scale** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage0_scale**
 0.038140 0.038140
-</xterm></box>+</xterm></WRAP>
  
 === Set channel Y output voltage === === Set channel Y output voltage ===
Line 226: Line 262:
 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_voltage0_raw** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 10000 > out_voltage0_raw**
-</xterm></box>+</xterm></WRAP>
  
 **U** = //out_voltage0_raw * out_voltage0_scale// = 10000 * 0,038140 //mV// = **381,14 //mV//** **U** = //out_voltage0_raw * out_voltage0_scale// = 10000 * 0,038140 //mV// = **381,14 //mV//**
Line 241: Line 277:
 Lists all available output power down modes. Lists all available output power down modes.
  
-<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_voltage_powerdown_mode_available** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage_powerdown_mode_available**
 1kohm_to_gnd 100kohm_to_gnd three_state 1kohm_to_gnd 100kohm_to_gnd three_state
-</xterm></box>+</xterm></WRAP>
  
 === Set power down mode === === Set power down mode ===
Line 263: Line 299:
  
  
-<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 three_state > out_voltage_powerdown_mode** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo three_state > out_voltage_powerdown_mode**
 root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage_powerdown_mode** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage_powerdown_mode**
 three_state three_state
-</xterm></box>+</xterm></WRAP>
  
 === Enable power down mode on output Y === === Enable power down mode on output Y ===
Line 279: Line 315:
 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_voltage0_powerdown** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 1 > out_voltage0_powerdown**
Line 287: Line 323:
 root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage0_powerdown** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage0_powerdown**
 0 0
-</xterm></box>+</xterm></WRAP> 
 + 
 +===== PMOD-DA4 ===== 
 + 
 +The PMOD-DA4 is a PMOD board made by Digilent Inc. which features the AD5628 
 + 
 +The following example shows how to connect the PMOD-DA4 to a Blackfin BF537-STAMP board. 
 + 
 +==== Hardware configuration ==== 
 + 
 +{{:resources:tools-software:linux-drivers:iio-dac:pmodda4.jpg?300|}} 
 + 
 +^ BF537-STAMP (P9) SPI header  ^^ PMOD-DA4 ^^ 
 +^ PIN ^ Function ^ PIN ^ Function ^ 
 +| 2 | (+3.3V) | 6 | VDD | 
 +| 5 | SPI_MOSI | 2 | DIN | 
 +| 8 | SPI_SCK| 4 | SCLK | 
 +| 10 | SPI_SS | 1 | SYNC | 
 +| 20 | GND | 5 | GND |
  
 ====== 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}}
resources/tools-software/linux-drivers/iio-dac/ad5064.1327678764.txt.gz · Last modified: 27 Jan 2012 16:39 by Robin Getz