#
# devboard conversion constants
#
-VREF = 2.5
+VREF = 2.5 #output of DAC Vref generator
SETTLE_TIME = 250e-6
# Supply current sense circuitry
##############################################################################
# Setup FTDI serial ports
#
-spi0 = usbio.AtoiSPI0(1000e3) #port A
-
-spi1 = usbio.AtoiSPI1(1000e3) #port B
+#spi0 = usbio.AtoiSPI0(1000e3) #port A
+#spi1 = usbio.AtoiSPI1(1000e3) #port B
+spi0 = usbio.NullSPI(1000e3) #port A
+spi1 = usbio.NullSPI(1000e3) #port B
#spi1.context.pidle = spi1.context.pstop = 0xf8
#spi1.Stop()
# default mode is dac.INPUT_UPDATE_SINGLE
#
dac = usbio.DAC_atoi(spi0, 'dac')
-dac.swreset()
+#dac.swreset()
# reference is tied to ADC, do not power down
-dac.reference(dac.REF_FLEXIBLE_ALWAYS_ON)
+#dac.reference(dac.REF_FLEXIBLE_ALWAYS_ON)
# CLR is tied high, explicitly ignore anyway
#dac.CCR(dac.IGNORE_CLR)
# power up all channels
-bitfield = 0xff
-dac.power(dac.POWER_ON, bitfield)
+#bitfield = 0xff
+#dac.power(dac.POWER_ON, bitfield)
# set initial output voltages
# before tuning
# zero others
# part A already POR's to 0 but...
-for i in range(5, 8):
- dac.setv(i, 0.0)
+#for i in range(5, 8):
+# dac.setv(i, 0.0)
##############################################################################