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:ad5764 [05 Sep 2012 13:36] – fix out of staging links Michael Hennerichresources:tools-software:linux-drivers:iio-dac:ad5764 [05 Jan 2021 16:01] (current) – Removed old references Ioana Chelaru
Line 8: Line 8:
   * [[adi>AD5764R]]   * [[adi>AD5764R]]
  
-===== Reference Circuits ===== 
- 
-  * [[adi>CN0006]] 
  
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
Line 27: Line 24:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined?  ^+^ Source ^ Mainlined? ^
 | [[git.linux.org>drivers/iio/dac/ad5764.c|git]] | [[git.linux.org>drivers/iio/dac/ad5764.c|Yes]] | | [[git.linux.org>drivers/iio/dac/ad5764.c|git]] | [[git.linux.org>drivers/iio/dac/ad5764.c|Yes]] |
  
Line 141: Line 138:
 "make qconfig") "make qconfig")
  
-<note>+<WRAP round help>
 The AD5764 Driver depends on **CONFIG_SPI_MASTER** The AD5764 Driver depends on **CONFIG_SPI_MASTER**
-</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 AD5764/64R/44/44R DAC drive 
-           *** Digital to analog convertors *** +                ... 
-     [--snip--] +            ... 
- +        ...
-     <*>  Analog Devices Analog Devices AD5764/64R/44/44R DAC driver +
- +
-     [--snip--]+
  
 </code> </code>
- 
 ====== Hardware configuration ====== ====== Hardware configuration ======
  
Line 171: Line 164:
 {{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 203: Line 196:
 -rw-r--r--    1 root     root          4096 Jan  4 04:06 uevent -rw-r--r--    1 root     root          4096 Jan  4 04:06 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**
 ad5764 ad5764
-</xterm></box>+</xterm></WRAP>
  
 === Show scale === === Show scale ===
Line 219: Line 212:
 scale to be applied to out_voltageY_raw in order to obtain the measured voltage in millivolts. scale to be applied to out_voltageY_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.305170 0.305170
-</xterm></box>+</xterm></WRAP>
  
 === Show offset === === Show offset ===
Line 232: Line 225:
 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_voltage_offset** root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat out_voltage_offset**
 -32768 -32768
-</xterm></box>+</xterm></WRAP>
  
 === Set channel Y output voltage === === Set channel Y output voltage ===
Line 246: Line 239:
 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_offset) * out_voltage0_scale// = (10000 - 32768) * 0.305170 //mV// = **-6948.11 //mV//** **U** = //(out_voltage0_raw + out_voltage0_offset) * out_voltage0_scale// = (10000 - 32768) * 0.305170 //mV// = **-6948.11 //mV//**
resources/tools-software/linux-drivers/iio-dac/ad5764.txt · Last modified: 05 Jan 2021 16:01 by Ioana Chelaru