From cea0a15e1e94521ff80f24ebdeb05303fb08b4ef Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 6 Jan 2022 16:15:51 +0800 Subject: [PATCH] suservo: use default urukul profile --- artiq/gateware/suservo/dds_ser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/artiq/gateware/suservo/dds_ser.py b/artiq/gateware/suservo/dds_ser.py index 7a53f352e..38d1f6d94 100644 --- a/artiq/gateware/suservo/dds_ser.py +++ b/artiq/gateware/suservo/dds_ser.py @@ -2,6 +2,8 @@ import logging from migen import * +from artiq.coredevice.urukul import DEFAULT_PROFILE + from . import spi @@ -26,7 +28,8 @@ class DDS(spi.SPISimple): self.profile = [Signal(32 + 16 + 16, reset_less=True) for i in range(params.channels)] - cmd = Signal(8, reset=0x15) # write to single tone profile 7 + # write to single tone default profile + cmd = Signal(8, reset=0x0e + DEFAULT_PROFILE) assert params.width == len(cmd) + len(self.profile[0]) self.sync += [