Davi Cussan / Mbed 2 deprecated pc052c_configurator_original

Dependencies:   mbed

Revision:
6:4d64960c7908
Parent:
2:ac580453441f
Child:
8:2196f2f75947
--- a/spi_functions.cpp	Thu Jul 06 14:15:42 2017 +0000
+++ b/spi_functions.cpp	Fri Dec 21 11:48:33 2018 +0000
@@ -44,14 +44,16 @@
 // This is the basic function used to send the signals.
 {
     //sync = 1;
-    wait (0.5);
+    wait (0.001); // Changed from 0.5, DGC, 1 Oct 18
 
     sync = 0;
     
+    wait(0.0001); // wait 100us for select line to go fully low after . 
+    
     dac_port.write(data >> 8);// We have a 8 bit interface but need to write 16 bits. Two write in sequence (or use "transfer" instead)
     dac_port.write(data);
     
-    wait(0.000005); //
+    wait(0.0001); // wait 100us for select line to go fully high. 
     sync = 1;
 
     wait (0.5);