From: Dan White <dan@whiteaudio.com>
Date: Fri, 15 Jun 2012 22:20:13 +0000 (-0500)
Subject: misc testing
X-Git-Tag: calibrations~52
X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=4f0585ffaa2214263017048252e3b703b2eabaaa;p=430.git

misc testing
---

diff --git a/python-lib/mpsse-test.py b/python-lib/mpsse-test.py
index 0e39e1c..33e862d 100755
--- a/python-lib/mpsse-test.py
+++ b/python-lib/mpsse-test.py
@@ -131,11 +131,14 @@ dac.power(dac.POWER_ON, bitfield)
 # set initial output voltages
 # before tuning
 # channels 0 .. 4
-dac.vina(1.2)
-dac.vinb(1.2)
-dac.vcmi(1.2)
-dac.vbias_core(100e-3)
-dac.vbias_buf(100e-3)
+
+VCM = 1.2483 # multimeter says 0.0 mV between ref/2 and vcmi(VCM)
+VCM = 1.2500 # multimeter says 0.0 mV between ref/2 and vcmi(VCM)
+dac.vcmi(VCM)
+dac.vina(VCM)
+dac.vinb(VCM)
+dac.vbias_core(000e-3)
+dac.vbias_buf(000e-3)
 
 # zero others
 # part A already POR's to 0 but...
@@ -172,18 +175,22 @@ amux = usbio.Mux(spi1, 'chain1_mux')
 
 # Main Chain0
 for h in chain.h:
-    h.cal = 1
+    h.cal = 0
     for ota in h.ota:
-        ota.se = 0
+        ota.se = 1
         ota.cint = 1
         ota.zero = 0
         ota.fast = 1
-        ota.gain = 8
+        ota.gain = 15
         ota.offset = 0
+out = chain.write()
+print str2hex(out)
 chain.write()
+print str2hex(out)
+print str2hex(bytes2str(chain.bytes))
 
-mux.selA = 48
-mux.selB = 48
+mux.selA = 0
+mux.selB = 0
 for ota in mux.ota:
     ota.mode = ota.MUX_CMP
     ota.fast = 1