2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 11:18:27 +08:00

ad9914: fix FTW write in regular resolution mode

This commit is contained in:
Sebastien Bourdeauducq 2018-05-14 18:47:23 +08:00
parent 56a29b91fc
commit ba1d137d19

View File

@ -207,7 +207,7 @@ class AD9914:
self.write(AD9914_GPIO, (1 << self.channel) << 1)
self.write(AD9914_REG_DRGFL, ftw & 0xffff)
self.write(AD9914_REG_DRGFL, (ftw >> 16) & 0xffff)
self.write(AD9914_REG_DRGFH, (ftw >> 16) & 0xffff)
# We need the RTIO fine timestamp clock to be phase-locked
# to DDS SYSCLK, and divided by an integer self.sysclk_per_mu.