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-cdc:ad7745 [05 Sep 2012 13:25] – [Status] Michael Hennerichresources:tools-software:linux-drivers:iio-cdc:ad7745 [05 Jan 2021 16:09] (current) – Removed old references Ioana Chelaru
Line 10: Line 10:
 ===== Reference Circuits ===== ===== Reference Circuits =====
  
-  * [[adi>CN0129]]+  * [[adi>CN0346]]
  
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
Line 21: Line 21:
 The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc). The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc).
 See [[software:linux:docs:iio:iio|IIO]] for more information. See [[software:linux:docs:iio:iio|IIO]] for more information.
- 
-==== AD7747 ==== 
- 
-{{scrape>adi>AD7747#product_description}} 
- 
-==== AD7746 ==== 
- 
-{{scrape>adi>AD7746#product_description}} 
- 
-==== AD7745 ==== 
- 
-{{scrape>adi>AD7745#product_description}} 
  
 ====== Source Code ====== ====== Source Code ======
Line 38: Line 26:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
-| [[git.linux.org>drivers/staging/iio/cdc/ad7746.c|git]] |  [[git.linux.org>drivers/staging/iio/cdc/ad7746.c|git]]  |+| [[git.linux.org>drivers/staging/iio/cdc/ad7746.c|git]] | [[git.linux.org>drivers/staging/iio/cdc/ad7746.c|git]] |
 ===== Files ===== ===== Files =====
  
Line 84: Line 72:
 "make qconfig") "make qconfig")
  
-<note>+<WRAP round help>
 The driver depends on **CONFIG_I2C** The driver depends on **CONFIG_I2C**
-</note>+</WRAP>
  
 <code> <code>
Line 115: Line 103:
 {{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 159: Line 147:
 lrwxrwxrwx    1 root     root             0 Jan  1 11:17 subsystem -> ../../../../../../bus/iio lrwxrwxrwx    1 root     root             0 Jan  1 11:17 subsystem -> ../../../../../../bus/iio
 -rw-r--r--    1 root     root          4096 Jan  1 11:17 uevent -rw-r--r--    1 root     root          4096 Jan  1 11:17 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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat name** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat name**
 ad7746 ad7746
-</xterm></box>+</xterm></WRAP>
  
 === Show available sampling frequencies / update rates === === Show available sampling frequencies / update rates ===
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_sampling_frequency_available** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_sampling_frequency_available**
Line 179: Line 167:
 50 31 16 8 50 31 16 8
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0>
-</xterm></box>+</xterm></WRAP>
  
 === Set sampling frequency / update rate === === Set sampling frequency / update rate ===
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_sampling_frequency** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_sampling_frequency**
Line 192: Line 180:
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0>
  
-</xterm></box>+</xterm></WRAP>
  
 === Show scales for single and differential input channels === === Show scales for single and differential input channels ===
Line 205: Line 193:
 | VIN_VDD_MON | in_voltage_supply_scale | | VIN_VDD_MON | in_voltage_supply_scale |
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_scale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_scale**
 0.000000488 0.000000488
-</xterm></box>+</xterm></WRAP>
  
 === Show channel CIN1(+) measurement === === Show channel CIN1(+) measurement ===
Line 224: Line 212:
 | VIN_VDD_MON | in_voltage1_supply_raw | | VIN_VDD_MON | in_voltage1_supply_raw |
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance0_raw** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance0_raw**
 14914 14914
-</xterm></box>+</xterm></WRAP>
  
 **U** = //in_capacitance0_raw * in_capacitance_scale// = 14914 * 0.000000488 = **0.007278032 //pF//** **U** = //in_capacitance0_raw * in_capacitance_scale// = 14914 * 0.000000488 = **0.007278032 //pF//**
Line 242: Line 230:
  
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_temp0_input** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_temp0_input**
 28756 28756
-</xterm></box>+</xterm></WRAP>
  
 **T** = //in_temp0_input// = 28756 = **28.756 //°C//** **T** = //in_temp0_input// = 28756 = **28.756 //°C//**
Line 263: Line 251:
 | CIN2(-) | CAPDAC(-) | in_capacitance0-capacitance2_offset | | CIN2(-) | CAPDAC(-) | in_capacitance0-capacitance2_offset |
  
-<note>+<WRAP round help>
 The AD7745/AD7746 CDC full-scale input range is ±4.096 pF. The AD7745/AD7746 CDC full-scale input range is ±4.096 pF.
 The part can accept a higher capacitance on the input and the The part can accept a higher capacitance on the input and the
 common-mode or offset (not-changing component) capacitance common-mode or offset (not-changing component) capacitance
 can be balanced by programmable on-chip CAPDACs. can be balanced by programmable on-chip CAPDACs.
-</note>+</WRAP>
  
 **Example 4pF Offset:**\\ **Example 4pF Offset:**\\
 **in_capacitance0_offset** = //Offset / in_capacitance_scale// = 4pF / 0.000000488 = **8196721** **in_capacitance0_offset** = //Offset / in_capacitance_scale// = 4pF / 0.000000488 = **8196721**
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 8196721 > in_capacitance0_offset** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 8196721 > in_capacitance0_offset**
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance0_offset** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance0_offset**
 8127504 8127504
-</xterm></box>+</xterm></WRAP>
  
 === Perform channel gain calibration === === Perform channel gain calibration ===
Line 285: Line 273:
 Triggers gain calibration on channel in_capacitance0 or in_capacitance1 Triggers gain calibration on channel in_capacitance0 or in_capacitance1
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1 > in_capacitance1_calibscale_calibration** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1 > in_capacitance1_calibscale_calibration**
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibscale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibscale**
 1.000000 1.000000
-</xterm></box>+</xterm></WRAP>
  
 === Set channel gain coefficient === === Set channel gain coefficient ===
Line 298: Line 286:
 Valid range is between 1.0 and 1.99999999. Valid range is between 1.0 and 1.99999999.
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1.5 > in_capacitance1_calibscale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1.5 > in_capacitance1_calibscale**
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibscale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibscale**
 1.500000 1.500000
-</xterm></box>+</xterm></WRAP>
  
 === Perform channel offset calibration === === Perform channel offset calibration ===
Line 310: Line 298:
 Triggers offset calibration on channel in_capacitance0 or in_capacitance1 Triggers offset calibration on channel in_capacitance0 or in_capacitance1
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1 > in_capacitance1_calibbias_calibration** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1 > in_capacitance1_calibbias_calibration**
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_calibbias** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_calibbias**
 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}}
resources/tools-software/linux-drivers/iio-cdc/ad7745.1346844329.txt.gz · Last modified: 05 Sep 2012 13:25 by Michael Hennerich