808

Dependents:   Chromatograph_Mobile

Files at this revision

API Documentation at this revision

Comitter:
nikmaos
Date:
Fri Aug 14 14:15:24 2020 +0000
Parent:
2:09948f1c22bc
Commit message:
1408

Changed in this revision

LT1446.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/LT1446.cpp	Tue Aug 11 19:12:58 2020 +0000
+++ b/LT1446.cpp	Fri Aug 14 14:15:24 2020 +0000
@@ -19,38 +19,38 @@
 void LT1446_Write(LT1446_t *chip)
 {
     
-    
+    /*
     LT1446_MEM.DACA=chip->dacA.Code;
     LT1446_MEM.DACB=chip->dacB.Code;
     Cs=0;
     TED2.write(LT1446_MEM.b3);
     TED2.write(LT1446_MEM.b2);
     TED2.write(LT1446_MEM.b1);
-    Cs=1;
+    Cs=1;*/
 }
 void LTCwrite(LT1446_t *chip)
 {
-    Cs=0;
-    CLK=0;
+    LTC1446_CS=0;
+    LTC1446_CLK=0;
     /*Записываем канал B*/
     uint8_t b=12;
     while(b--)
     {
-        DOUT=chip->dacB.Code&(1<<b);
-        CLK=1;
-        DOUT=0;
-        CLK=0;
+        LTC1446_DOUT=chip->dacB.Code&(1<<b);
+        LTC1446_CLK=1;
+        LTC1446_DOUT=0;
+        LTC1446_CLK=0;
     }
     /*Канал А */
     b=12;
     while(b--)
     {
-        DOUT=chip->dacA.Code&(1<<b);
-        CLK=1;
-        DOUT=0;
-        CLK=0;        
+        LTC1446_DOUT=chip->dacA.Code&(1<<b);
+        LTC1446_CLK=1;
+        LTC1446_DOUT=0;
+        LTC1446_CLK=0;        
     }
-    Cs=1;
+    LTC1446_CS=1;
 }