forked from M-Labs/artiq
1
0
Fork 0

Merge pull request #962 from hartytp/ad5360

Fix AD5360 after migration to SPI2
This commit is contained in:
Robert Jördens 2018-03-17 18:48:34 +01:00 committed by GitHub
commit 2eadb08f8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)