wip
authorDan White <dan@whiteaudio.com>
Fri, 18 May 2012 01:09:17 +0000 (20:09 -0500)
committerDan White <dan@whiteaudio.com>
Fri, 18 May 2012 01:09:17 +0000 (20:09 -0500)
python-lib/mpsse-test.py
python-lib/usbio.py
sch-pcb/devboard/atoi-5.sch

index a36ab1104a24d18e03c5a7787f59d80dde8de6a4..562b182e31725402f02046c17d2c685bdaea697b 100755 (executable)
@@ -62,7 +62,7 @@ ibias = usbio.AD524x(i2c, 0)
 # Power supplies
 #
 vatoi = usbio.DigiReg(i2c, 2, (0.5011, 1.2972), (1.9544, 2.7503))
-vatoi.alias('va', 'vdd')
+vatoi.alias('va', 'vdigi')
 vatoi.alias('vb', 'avdd')
 
 v430 = usbio.DigiReg(i2c, 3, (1.9539, 2.7325), (0.5006, 1.2776))
@@ -71,9 +71,9 @@ v430.alias('vb', 'vdd')
 
 # setup power supply defaults
 def psdefaults():
-    vatoi.vdd = 1.2
-    vatoi.avdd = 2.5
+    vatoi.vdigi = 1.2
     v430.vdd = 1.2
+    vatoi.avdd = 2.5
     v430.dvdd = 2.5
     #sleep(0.1)
     #sleep(0.1)
@@ -82,7 +82,7 @@ def psdefaults():
 
 
 from itertools import permutations
-def s0(): vatoi.vdd = 1.2
+def s0(): vatoi.vdigi = 1.2
 def s1(): vatoi.avdd = 2.5
 def s2(): v430.vdd = 1.2
 def s3(): v430.dvdd = 2.5
@@ -91,6 +91,7 @@ order = [s0, s1, s2, s3]
 
 orderiter = permutations(order)
 for p in orderiter:
+    break
     print p
     #setup POR values each time
     vatoi.posA = 128
@@ -106,7 +107,7 @@ for p in orderiter:
 
 
 
-#psdefaults()
+psdefaults()
 
 
 ##############################################################################
index edc3390e442e6ce3f2bb855e17bba88f9ceaa320..a8a68f70951b61acc37b8ae142005aa383687b25 100644 (file)
@@ -736,6 +736,7 @@ class AD524x(object):
         else:
             self.lastA = pos
 
+        print sel, self.sel, pos, cmd
         self.bus.write(cmd)
 
     def sendGPO(self):
index 41b0f476000114d375989f5dc5273bec553bd753..914f0945e2582f654db9b131c535bb680c704241 100644 (file)
@@ -27,7 +27,7 @@ pn-digikey=ADP323ACPZ-R7CT-ND
 }
 C 51500 46400 1 0 0 ad5242-1.sym
 {
-T 53300 51400 5 10 1 0 0 0 1
+T 53300 51400 5 10 0 0 0 0 1
 footprint=TSSOP-65P-640L1-16N__TI_PW_Package.fp
 T 52600 50500 5 10 1 1 0 3 1
 refdes=U503