# 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))
# 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)
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
orderiter = permutations(order)
for p in orderiter:
+ break
print p
#setup POR values each time
vatoi.posA = 128
-#psdefaults()
+psdefaults()
##############################################################################
}
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