This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-drivers:iio-dac:ad5755 [27 Jan 2012 16:40] – Approved Robin Getz | resources:tools-software:linux-drivers:iio-dac:ad5755 [05 Jan 2021 16:02] (current) – Removed old references Ioana Chelaru | ||
---|---|---|---|
Line 12: | Line 12: | ||
===== Reference Circuits ===== | ===== Reference Circuits ===== | ||
- | * [[adi>CN0123]] | + | * [[adi>CN0198]] |
- | * [[adi>CN0131]] | + | * [[adi>CN0328]] |
- | * [[adi> | + | |
===== Evaluation Boards ===== | ===== Evaluation Boards ===== | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
===== Description ===== | ===== Description ===== | ||
Line 30: | Line 31: | ||
===== Status ===== | ===== Status ===== | ||
- | ^ Source | + | ^ Source ^ Mainlined? ^ |
- | | [[bfgit>linux-kernel?drivers/staging/ | + | | [[git.linux.org>drivers/ |
===== Files ===== | ===== Files ===== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
====== Example platform device initialization ====== | ====== Example platform device initialization ====== | ||
Line 79: | Line 80: | ||
"make qconfig" | "make qconfig" | ||
- | <note> | + | <WRAP round help> |
The AD5755 Driver depends on **CONFIG_SPI** | The AD5755 Driver depends on **CONFIG_SPI** | ||
- | </note> | + | </WRAP> |
< | < | ||
Linux Kernel Configuration | Linux Kernel Configuration | ||
- | Device Drivers | + | |
- | [*] Staging drivers | + | ... |
- | < | + | < |
- | | + | --- Industrial I/O support |
- | -*- | + | ... |
- | -*- | + | Digital to analog |
- | -*- | + | ... |
- | + | < | |
- | *** Digital to analog | + | ... |
- | [--snip--] | + | ... |
- | + | ... | |
- | | + | |
- | + | ||
- | [--snip--] | + | |
</ | </ | ||
- | |||
====== Hardware configuration ====== | ====== Hardware configuration ====== | ||
Line 109: | Line 105: | ||
{{page> | {{page> | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **cd / | root:/> **cd / | ||
Line 148: | Line 144: | ||
lrwxrwxrwx | lrwxrwxrwx | ||
-rw-r--r-- | -rw-r--r-- | ||
- | </ | + | </ |
=== Show device name === | === Show device name === | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
ad5755 | ad5755 | ||
- | </ | + | </ |
=== Show scale === | === Show scale === | ||
Line 166: | Line 162: | ||
scale to be applied to out_voltageY_raw/ | scale to be applied to out_voltageY_raw/ | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
Line 172: | Line 168: | ||
root:/ | root:/ | ||
0.000244100 | 0.000244100 | ||
- | </ | + | </ |
=== Show offset === | === Show offset === | ||
Line 181: | Line 177: | ||
The offset is applied before scale is applied. | The offset is applied before scale is applied. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
Line 187: | Line 183: | ||
root:/ | root:/ | ||
16384 | 16384 | ||
- | </ | + | </ |
=== Set channel Y output voltage === | === Set channel Y output voltage === | ||
Line 198: | Line 194: | ||
channel Y. | channel Y. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
- | </ | + | </ |
**U** = // | **U** = // | ||
Line 215: | Line 211: | ||
The default value is 65535, minium value is 0, maximum value is 65535. | The default value is 65535, minium value is 0, maximum value is 65535. | ||
- | If scale calibration is used the following formula can be used calculate the output voltage: | + | If scale calibration is used the following formula can be used calculate the output voltage: |
**U** = //( ( ( out_voltageY_raw + out_voltageY_offset ) * ( out_voltageY_calibscale + 1 ) ) / 2^16 + out_voltageY_calibbias ) * out_voltageY_scale// | **U** = //( ( ( out_voltageY_raw + out_voltageY_offset ) * ( out_voltageY_calibscale + 1 ) ) / 2^16 + out_voltageY_calibbias ) * out_voltageY_scale// | ||
Line 227: | Line 223: | ||
The default value is 0, minium value is -32768, maximum value is 32767. | The default value is 0, minium value is -32768, maximum value is 32767. | ||
- | If offset calibration is used the following formula can be used calculate the output voltage: | + | If offset calibration is used the following formula can be used calculate the output voltage: |
**U** = //( ( ( out_voltageY_raw + out_voltageY_offset ) * ( out_voltageY_calibscale + 1 ) ) / 2^16 + out_voltageY_calibbias ) * out_voltageY_scale// | **U** = //( ( ( out_voltageY_raw + out_voltageY_offset ) * ( out_voltageY_calibscale + 1 ) ) / 2^16 + out_voltageY_calibbias ) * out_voltageY_scale// | ||
Line 239: | Line 235: | ||
normal operation. | normal operation. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
Line 247: | Line 243: | ||
root:/ | root:/ | ||
0 | 0 | ||
- | </ | + | </ |
====== More Information ====== | ====== More Information ====== | ||
{{page> | {{page> |