From c1439bfd3b817ad4c6d4e2b6fde158a5701baecb Mon Sep 17 00:00:00 2001 From: ion Date: Sat, 17 Mar 2018 11:37:11 +0000 Subject: [PATCH] Fix AD5360 after migration to SPI2 --- artiq/coredevice/ad5360.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/coredevice/ad5360.py b/artiq/coredevice/ad5360.py index 65e67aa07..4cfd43c18 100644 --- a/artiq/coredevice/ad5360.py +++ b/artiq/coredevice/ad5360.py @@ -181,7 +181,8 @@ class AD5360: # t10 max busy low for one channel t_10 = self.core.seconds_to_mu(1.5*us) # compensate all delays that will be applied - delay_mu(-len(values)*self.bus.xfer_period_mu-t_10) + delay_mu(-t_10-len(values)*( + self.bus.ref_period_mu+self.bus.xfer_duration_mu)) for i in range(len(values)): self.write_channel(i, values[i], op) delay_mu(t_10)