From 2d14864c6d0da745278e48c643cfe9c2b60ca57a Mon Sep 17 00:00:00 2001 From: Robert Jordens Date: Wed, 12 Oct 2016 15:07:08 +0200 Subject: [PATCH] Revert "phaser: 500 MHz dacclock" This reverts commit 5f737bef764c3423f5d14185a1f62b8682e76541. --- artiq/examples/phaser/repository/dac_setup.py | 8 ++++---- artiq/examples/phaser/startup_kernel.py | 12 ++++-------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/artiq/examples/phaser/repository/dac_setup.py b/artiq/examples/phaser/repository/dac_setup.py index fdb02501b..f9cbaf90e 100644 --- a/artiq/examples/phaser/repository/dac_setup.py +++ b/artiq/examples/phaser/repository/dac_setup.py @@ -20,9 +20,9 @@ ts = JESD204BTransportSettings( jesd_settings = JESD204BSettings(ps, ts, did=0x5a, bid=0x5) jesd_checksum = jesd_settings.get_configuration_checksum() # external clk=2000MHz -# pclock=125MHz -# deviceclock_fpga=125MHz -# deviceclock_dac=500MHz +# pclock=250MHz +# deviceclock_fpga=500MHz +# deviceclock_dac=2000MHz class DACSetup(EnvExperiment): @@ -100,7 +100,7 @@ class DACSetup(EnvExperiment): self.ad9154.dac_write(AD9154_SPI_PAGEINDX, 0x3) # A and B dual - self.ad9154.dac_write(AD9154_INTERP_MODE, 1) # 2x + self.ad9154.dac_write(AD9154_INTERP_MODE, 4) # 8x self.ad9154.dac_write(AD9154_MIX_MODE, 0) self.ad9154.dac_write(AD9154_DATA_FORMAT, AD9154_BINARY_FORMAT_SET(0)) # s16 self.ad9154.dac_write(AD9154_DATAPATH_CTRL, diff --git a/artiq/examples/phaser/startup_kernel.py b/artiq/examples/phaser/startup_kernel.py index 1d2890832..089d49d92 100644 --- a/artiq/examples/phaser/startup_kernel.py +++ b/artiq/examples/phaser/startup_kernel.py @@ -42,14 +42,10 @@ class StartupKernel(EnvExperiment): self.ad9154.clock_write(AD9516_OUT5, 2*AD9516_OUT5_POWER_DOWN) self.ad9154.clock_write(AD9516_OUT8, 1*AD9516_OUT8_POWER_DOWN) - # DAC deviceclk, dclk/1 - self.ad9154.clock_write(AD9516_DIVIDER_0_1, AD9516_DIVIDER_0_BYPASS) - self.ad9154.clock_write(AD9516_DIVIDER_0_2, - 0*AD9516_DIVIDER_0_DIRECT_TO_OUTPUT | - 0*AD9516_DIVIDER_0_DCCOFF) - self.ad9154.clock_write(AD9516_OUT1, - 0*AD9516_OUT1_POWER_DOWN | - 2*AD9516_OUT1_LVPECLDIFFERENTIAL_VOLTAGE) + # DAC deviceclk, clk/1 + self.ad9154.clock_write(AD9516_DIVIDER_0_2, AD9516_DIVIDER_0_DIRECT_TO_OUTPUT) + self.ad9154.clock_write(AD9516_OUT1, 0*AD9516_OUT1_POWER_DOWN | + 2*AD9516_OUT1_LVPECLDIFFERENTIAL_VOLTAGE) # FPGA deviceclk, dclk/4 self.ad9154.clock_write(AD9516_DIVIDER_4_3, AD9516_DIVIDER_4_BYPASS_2)