Difference between revisions of "Max5821"

From ArmadeusWiki
Jump to: navigation, search
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This 2 channels [[I2C]] DAC (Digital to Analog Converter) is mounted as an option on some [[APF9328]] boards:
+
=Description=
 +
This 2 channels 10bits [[I2C]] DAC (Digital to Analog Converter) is mounted as an option on some [[APF9328]] boards. It is mounted in standard on the [[APF27Dev]] development boards.
  
[[Image:Max5821_mounted_on_APF9328.jpg]]
+
{|border=0 summary="Photos"
 
+
|----------------
It is mounted on the APF27Dev development boards:
+
|[[Image:Max5821_mounted_on_APF9328.jpg|thumb|300px|MAX5821 on APF9328]]
 
+
||
[[Image:Max5821_on_APF27Dev.jpg]]
+
[[Image:Max5821_on_APF27Dev.jpg|thumb|MAX5821 on APF27Dev]]
 +
|----------------
 +
|}
  
 
==Connections==
 
==Connections==
Line 13: Line 16:
 
* DAC_REF: corresponds to REF (pin 6) on Max5821. It's the reference voltage (max value that will be achieved by outputs). '''This input should be connected to a voltage reference between 0 and 3,3V.'''
 
* DAC_REF: corresponds to REF (pin 6) on Max5821. It's the reference voltage (max value that will be achieved by outputs). '''This input should be connected to a voltage reference between 0 and 3,3V.'''
  
==Linux Driver==
+
=Linux Driver=
* [[DAC|How to use this DAC on Linux]]
+
The [[Max5821 | Max5821L DAC]] can be controlled from the user space by using the '''setDAC''' function. No special driver is needed except the i2c host one, which is statically built into the kernel.
  
==Links==
+
==Usage==
 +
To set the DAC outputs to a given value, use the ''setDAC'' command:
 +
<pre class="apf">
 +
# setDAC
 +
 +
##Usage: setDAC OUTPUT [VALUE]
 +
power down or set DAC output with value 0 - 1023
 +
 +
  OUTPUT is A , B or AB (both)
 +
  VALUE must be 0 - 1023
 +
 +
  If no VALUE is given, then the output is powered down
 +
##
 +
</pre>
 +
 
 +
{{Warning|Do not forget to connect a voltage reference for the DAC !!}}
 +
 
 +
=Links=
 
* [http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3288 Max5821 Webpage]
 
* [http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3288 Max5821 Webpage]
 
* [http://en.wikipedia.org/wiki/Digital-to-analog_converter DAC on Wikipedia]
 
* [http://en.wikipedia.org/wiki/Digital-to-analog_converter DAC on Wikipedia]
 
{{LanguageBar|Max5821|Max5821|Max5821}}
 
  
 
[[Category:ExternalDeviceControl]]
 
[[Category:ExternalDeviceControl]]
 +
[[Category:I2C]]

Latest revision as of 13:15, 15 August 2010

Description

This 2 channels 10bits I2C DAC (Digital to Analog Converter) is mounted as an option on some APF9328 boards. It is mounted in standard on the APF27Dev development boards.

MAX5821 on APF9328
File:Max5821 on APF27Dev.jpg
MAX5821 on APF27Dev

Connections

On your Devlight/DevFull there are 3 signals to use the Max5821:

  • DAC_OUTA: corresponds to OUTA (pin 7) on Max5821. It's the first output.
  • DAC_OUTB: corresponds to OUTB (pin 8) on Max5821. It's the 2nd output.
  • DAC_REF: corresponds to REF (pin 6) on Max5821. It's the reference voltage (max value that will be achieved by outputs). This input should be connected to a voltage reference between 0 and 3,3V.

Linux Driver

The Max5821L DAC can be controlled from the user space by using the setDAC function. No special driver is needed except the i2c host one, which is statically built into the kernel.

Usage

To set the DAC outputs to a given value, use the setDAC command:

 # setDAC
 
 ##Usage: setDAC OUTPUT [VALUE]
 power down or set DAC output with value 0 - 1023
 
  OUTPUT is A , B or AB (both)
  VALUE must be 0 - 1023
 
  If no VALUE is given, then the output is powered down
 ##
Warning Warning: Do not forget to connect a voltage reference for the DAC !!


Links