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:ad5770r [18 Jul 2018 14:55] – [Driver testing] Mircea Caprioruresources:tools-software:linux-drivers:iio-dac:ad5770r [07 Jan 2021 08:47] (current) – Fixed bad link for EVAL-AD5770R Ioana Chelaru
Line 8: Line 8:
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
  
-  * [[adi>EVAL-AD5770SDZ]]+  * [[adi>EVAL-AD5770R]]
  
 ===== Description ===== ===== Description =====
Line 146: Line 146:
 lrwxrwxrwx 1 root root    0 Jul 18 12:12 subsystem -> ../../../../../../../../bus/iio lrwxrwxrwx 1 root root    0 Jul 18 12:12 subsystem -> ../../../../../../../../bus/iio
 -rw-r--r-- 1 root root 4096 Jul 18 12:12 uevent -rw-r--r-- 1 root root 4096 Jul 18 12:12 uevent
 +</xterm></WRAP>
 +
 +=== Show device name ===
 +
 +<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 +<xterm>
 +pi@raspberrypi:/sys/bus/iio/devices/iio:device0 $ cat name
 +ad5770r
 +</xterm></WRAP>
 +
 +=== Show scale ===
 +
 +**Description:**\\
 +/sys/bus/iio/devices/iio:deviceX/out_currentY_scale \\
 +
 +scale to be applied to out_currentY_raw in order to obtain the measured current in milliamps.
 +
 +<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 +<xterm>
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# cat out_current0_scale 
 +0.018310546
 +</xterm></WRAP>
 +
 +=== Set channel Y output current ===
 +
 +**Description:**\\
 +/sys/bus/iio/devices/iio:deviceX/out_currentY_raw\\
 +
 +Raw (unscaled, no bias etc.) output current for
 +channel Y.
 +
 +<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 +<xterm>
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# echo 5000 > out_current0_raw 
 +</xterm></WRAP>
 +
 +**I** = //out_current0_raw * out_current0_scale// = 5000 * 0,018310546 = **91,55273 //mA//**
 +
 +=== Enable power down mode for the device ===
 +
 +/sys/bus/iio/devices/iio:deviceX/out_currentY_powerdown
 +
 +**Description:**\\
 +Writing 1 causes channel Y to enter power down mode. Clearing returns to
 +normal operation.
 +
 +<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 +<xterm>
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# echo 1 > out_current0_powerdown 
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# cat out_current0_powerdown
 +1
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# echo 0 > out_current0_powerdown
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# cat out_current0_powerdown
 +0
 +</xterm></WRAP>
 +
 +=== Show available filter frequencies ===
 +
 +/sys/bus/iio/devices/iio:deviceX/out_current_filter_low_pass_3db_frequency_available
 +
 +**Description:**\\
 +Contains available filter frequencies.
 +
 +<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 +<xterm>
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# cat out_current_filter_low_pass_3db_frequency_available 
 +153 357 715 1400 2800 262000
 +</xterm></WRAP>
 +
 +=== Set channel Y filter frequency ===
 +
 +/sys/bus/iio/devices/iio:deviceX/out_current0_filter_low_pass_3db_frequency
 +
 +**Description:**\\
 +Write filter value to channel Y.
 +
 +<WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap>
 +<xterm>
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# cat out_current0_filter_low_pass_3db_frequency 
 +262000
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# echo 1000 > out_current0_filter_low_pass_3db_frequency 
 +root@raspberrypi:/sys/bus/iio/devices/iio:device0# cat out_current0_filter_low_pass_3db_frequency
 +1400
 </xterm></WRAP> </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}}
resources/tools-software/linux-drivers/iio-dac/ad5770r.1531918502.txt.gz · Last modified: 18 Jul 2018 14:55 by Mircea Caprioru