do_shell = True
+#do_shell = False
##############################################################################
# Setup FTDI serial ports
#
-spi0 = usbio.AtoiSPI0(1000e3) #port A
-spi1 = usbio.AtoiSPI1(500e3) #port B
+spi0 = usbio.AtoiSPI0(100e3) #port A
+
+spi1 = usbio.AtoiSPI1(100e3) #port B
+spi1.context.pidle = spi1.context.pstop = 0xf8
+spi1.Stop()
+
i2c = usbio.I2C(interface=usbio.ftdi.INTERFACE_C, scl=0, sda=1,
- vid=0x0403, pid=0x6011, delay=10e-6)
+ vid=0x0403, pid=0x6011, delay=100e-6)
##############################################################################
ota.fast = 1
ota.gain = 8
ota.offset = 0
-chain.write()
+#chain.write()
mux.selA = 48
mux.selB = 48
ota.fast = 1
ota.gain = 8
ota.offset = 0
-mux.write()
+#mux.write()
# Secondary Chain1
+
+##############################################################################
+# transient testing stuff
+#
+dac.vina(1.1)
+dac.vinb(0.9)
+
+
+
+
##############################################################################
# drop into an IPython shell
#
def write(self):
self.bus.SetCS(self.csname)
- self.bus.Start()
s = str(self)
+ self.bus.Start()
+ sleep(0.01)
out = self.bus.Exchange(s)
+ sleep(0.01)
self.bus.Stop()
return out
self.context.pstart = 0xe8
elif name == 'chain1_conf':
self.context.pidle = self.context.pstop = 0xf8
- self.context.pstart = 0xd0
+ self.context.pstart = 0xd8
elif name == 'chain1_mux':
self.context.pidle = self.context.pstop = 0xf8
self.context.pstart = 0xb8