kc705: port device_db, ad53xx/zotino example

This commit is contained in:
Robert Jördens 2018-03-24 16:05:26 +01:00
parent 3a0dfb7fdc
commit 0505e9124f
2 changed files with 4 additions and 5 deletions

View File

@ -185,8 +185,8 @@ device_db = {
},
"dac_zotino": {
"type": "local",
"module": "artiq.coredevice.ad5360",
"class": "AD5360",
"module": "artiq.coredevice.zotino",
"class": "Zotino",
"arguments": {
"spi_device": "spi_zotino",
"ldac_device": "ttl_zotino_ldac",

View File

@ -1,7 +1,7 @@
from artiq.experiment import *
class AD5360Test(EnvExperiment):
class AD53XXTest(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("fmcdio_dirctl")
@ -14,8 +14,7 @@ class AD5360Test(EnvExperiment):
delay(5*ms) # build slack for shift register set
self.fmcdio_dirctl.set(self, 0x00008800)
self.dac.setup_bus()
self.dac.write_offsets()
self.led.on()
delay(400*us)
self.led.off()
self.dac.set([i << 10 for i in range(32)])
self.dac.set_dac_mu([i << 10 for i in range(32)])