mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
kc705: port device_db, ad53xx/zotino example
This commit is contained in:
parent
3a0dfb7fdc
commit
0505e9124f
@ -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",
|
||||
|
@ -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)])
|
Loading…
Reference in New Issue
Block a user