From 8407b2c400f4c4565f2504d7bc2b6a8ee70e6918 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 31 Oct 2017 23:15:03 +0800 Subject: [PATCH] examples/ad5360: set FMC DIO directions --- .../master/repository/coredevice_examples/simple/ad5360.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/artiq/examples/master/repository/coredevice_examples/simple/ad5360.py b/artiq/examples/master/repository/coredevice_examples/simple/ad5360.py index e4ed25794..79d1f01c6 100644 --- a/artiq/examples/master/repository/coredevice_examples/simple/ad5360.py +++ b/artiq/examples/master/repository/coredevice_examples/simple/ad5360.py @@ -4,12 +4,15 @@ from artiq.experiment import * class AD5360Test(EnvExperiment): def build(self): self.setattr_device("core") + self.setattr_device("fmcdio_dirctl") self.dac = self.get_device("dac_zotino") self.setattr_device("led") @kernel def run(self): self.core.reset() + delay(5*ms) # build slack for shift register set + self.fmcdio_dirctl.set(self, 0x00008800) self.dac.setup_bus(write_div=30, read_div=40) self.dac.write_offsets() self.led.on()