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:ad5064 [27 Jan 2012 16:39] – Approved Robin Getz | resources: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> | ||
- | * [[adi> | ||
- | * [[adi> | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | |||
+ | ===== Reference Circuits ===== | ||
+ | |||
+ | * [[adi> | ||
+ | * [[adi> | ||
===== Evaluation Boards ===== | ===== Evaluation Boards ===== | ||
Line 12: | Line 45: | ||
* [[adi> | * [[adi> | ||
* [[adi> | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * PMOD-DA4 | ||
===== Description ===== | ===== Description ===== | ||
Line 22: | Line 61: | ||
===== 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 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> |
< | < | ||
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 165: | Line 199: | ||
{{page> | {{page> | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **cd / | root:/> **cd / | ||
Line 196: | Line 230: | ||
lrwxrwxrwx | lrwxrwxrwx | ||
-rw-r--r-- | -rw-r--r-- | ||
- | </ | + | </ |
+ | |||
+ | The number of channels depends on the chip model. | ||
=== Show device name === | === Show device name === | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
ad5064 | ad5064 | ||
- | </ | + | </ |
=== 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. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
0.038140 | 0.038140 | ||
- | </ | + | </ |
=== Set channel Y output voltage === | === Set channel Y output voltage === | ||
Line 226: | Line 262: | ||
channel Y. | channel Y. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
- | </ | + | </ |
**U** = // | **U** = // | ||
Line 241: | Line 277: | ||
Lists all available output power down modes. | Lists all available output power down modes. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
1kohm_to_gnd 100kohm_to_gnd three_state | 1kohm_to_gnd 100kohm_to_gnd three_state | ||
- | </ | + | </ |
=== Set power down mode === | === Set power down mode === | ||
Line 263: | Line 299: | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
root:/ | root:/ | ||
three_state | three_state | ||
- | </ | + | </ |
=== Enable power down mode on output Y === | === Enable power down mode on output Y === | ||
Line 279: | Line 315: | ||
normal operation. | normal operation. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
Line 287: | Line 323: | ||
root:/ | root:/ | ||
0 | 0 | ||
- | </ | + | </ |
+ | |||
+ | ===== 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 ==== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ^ BF537-STAMP (P9) SPI header | ||
+ | ^ 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> | {{page> |