Jared's DAC Code

Dependencies:   mbed

Dependents:   DCS_FINAL_CODE

Fork of Chemical_Sensor_DMA by Jared Baxter

Revision:
4:9fd291254686
Parent:
2:3771b3195c7b
Child:
7:af255a90505e
diff -r a85b742be262 -r 9fd291254686 Sample/adc.cpp
--- a/Sample/adc.cpp	Sat Oct 31 20:06:37 2015 +0000
+++ b/Sample/adc.cpp	Fri Nov 06 03:33:09 2015 +0000
@@ -19,6 +19,27 @@
  * time by the PDB.                                                */
 void adc_init()
 {
+    
+    //DAC stuff
+            //DAC0 clock enabled
+
+  
+
+  /*
+   * The DAC selects DACREF_1 as the reference voltage.
+   * The DAC hardware trigger is selected.
+   * The DAC soft trigger is not valid.
+   * High-Power mode
+   * The DAC buffer read pointer top flag interrupt is disabled.
+   * The DAC buffer read pointer bottom flag interrupt is disabled.
+   * 
+   * DAC0_OUT is PTB1 by defualt
+   */
+  
+    
+    
+    
+    
     // red, indicating not ready
     red = 0;
     green = 1;