From 661dd00c4cbe1f9e1c48be467b34f30b96409289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Thu, 11 Oct 2018 15:16:08 +0200 Subject: [PATCH] ad9912: phase offset is 14 bit LSB aligned c.f. sinara-hw/Urukul#15 --- artiq/coredevice/ad9912.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/ad9912.py b/artiq/coredevice/ad9912.py index 56df7a7ea..a74e98331 100644 --- a/artiq/coredevice/ad9912.py +++ b/artiq/coredevice/ad9912.py @@ -169,7 +169,7 @@ class AD9912: """Returns the phase offset word corresponding to the given phase. """ - return int32(round((1 << 16)*phase)) + return int32(round((1 << 14)*phase)) @kernel def set(self, frequency, phase=0.0):