MCP4822 dual 12-bit Digital to Analog Converter (DAC) chip.

Dependents:   ADC2DAC

The MCP4822 is a dual 12-bit Digital to Analog Converter that is controlled via an SPI interface. It is available in PDIP, SOIC or MSOP packages. The documentation for the chip is available at Microchip's MC4822 page.

The range also includes 8 or 10-bit DACs, which this library could easily be converted to.

Revision:
1:68b3a24fd2a4
Parent:
0:74353da3eacd
Child:
2:e60995ceccbd
--- a/MCP4822.h	Wed Feb 13 16:08:13 2013 +0000
+++ b/MCP4822.h	Wed Feb 13 16:14:58 2013 +0000
@@ -3,7 +3,31 @@
 
 #include "mbed.h"
 
-//! MCP4822 dual 12-bit DAC
+/** MCP4822 dual 12-bit DAC
+* @author NickRyder, atyeomans
+* @version 1.0
+* @section LICENSE
+* The MIT License (MIT)
+* Copyright (c) 2013 Nick Ryder, Andrew Yeomans
+* 
+* Permission is hereby granted, free of charge, to any person obtaining a copy
+* of this software and associated documentation files (the "Software"), to deal
+* in the Software without restriction, including without limitation the rights 
+* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 
+* of the Software, and to permit persons to whom the Software is furnished to do so,
+*  subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all 
+* copies or substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
+* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
+* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
+* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+
 class MCP4822   {
     public:
         /** Create an MCP4822 instance