From 4390fea4377669d1f856af610a2d5afccaf3e7df Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Thu, 6 Oct 2016 17:36:54 +0200 Subject: [PATCH] phaser status: add statusmode stuff for serdes pll --- artiq/examples/phaser/repository/dac_setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/artiq/examples/phaser/repository/dac_setup.py b/artiq/examples/phaser/repository/dac_setup.py index 7d21175fd..ba3376184 100644 --- a/artiq/examples/phaser/repository/dac_setup.py +++ b/artiq/examples/phaser/repository/dac_setup.py @@ -80,6 +80,13 @@ class DACSetup(EnvExperiment): AD9154_HYS_CNTRL1_SET(0) | AD9154_SYSREF_RISE_SET(0) | AD9154_HYS_ON_SET(0) | AD9154_PD_SYSREF_BUFFER_SET(0)) + self.ad9154.dac_write(AD9154_IRQEN_STATUSMODE0, + AD9154_IRQEN_SMODE_LANEFIFOERR_SET(1) | + AD9154_IRQEN_SMODE_SERPLLLOCK_SET(1) | + AD9154_IRQEN_SMODE_SERPLLLOST_SET(1) | + AD9154_IRQEN_SMODE_DACPLLLOCK_SET(1) | + AD9154_IRQEN_SMODE_DACPLLLOST_SET(1)) + self.ad9154.dac_write(AD9154_DEVICE_CONFIG_REG_0, 0x8b) # magic self.ad9154.dac_write(AD9154_DEVICE_CONFIG_REG_1, 0x01) # magic self.ad9154.dac_write(AD9154_DEVICE_CONFIG_REG_2, 0x01) # magic