forked from M-Labs/artiq
phaser: fix sysref for 250 MHz sample rate
This commit is contained in:
parent
cfd2fe8627
commit
72932fccec
|
@ -57,13 +57,15 @@ class StartupKernel(EnvExperiment):
|
||||||
2*AD9516_OUT9_LVDS_CMOS_OUTPUT_POLARITY |
|
2*AD9516_OUT9_LVDS_CMOS_OUTPUT_POLARITY |
|
||||||
0*AD9516_OUT9_SELECT_LVDS_CMOS)
|
0*AD9516_OUT9_SELECT_LVDS_CMOS)
|
||||||
|
|
||||||
# sysref f_data*S/(K*F), dclk/32
|
# sysref f_data*S/(K*F), dclk/64
|
||||||
self.ad9154.clock_write(AD9516_DIVIDER_3_0, 15*AD9516_DIVIDER_3_HIGH_CYCLES_1 |
|
self.ad9154.clock_write(AD9516_DIVIDER_3_0, (32//2-1)*AD9516_DIVIDER_3_HIGH_CYCLES_1 |
|
||||||
15*AD9516_DIVIDER_3_LOW_CYCLES_1)
|
(32//2-1)*AD9516_DIVIDER_3_LOW_CYCLES_1)
|
||||||
self.ad9154.clock_write(AD9516_DIVIDER_3_1, 0*AD9516_DIVIDER_3_PHASE_OFFSET_1 |
|
self.ad9154.clock_write(AD9516_DIVIDER_3_1, 0*AD9516_DIVIDER_3_PHASE_OFFSET_1 |
|
||||||
0*AD9516_DIVIDER_3_PHASE_OFFSET_2)
|
0*AD9516_DIVIDER_3_PHASE_OFFSET_2)
|
||||||
|
self.ad9154.clock_write(AD9516_DIVIDER_3_2, (2//2-1)*AD9516_DIVIDER_3_HIGH_CYCLES_2 |
|
||||||
|
(2//2-1)*AD9516_DIVIDER_3_LOW_CYCLES_2)
|
||||||
self.ad9154.clock_write(AD9516_DIVIDER_3_3, 0*AD9516_DIVIDER_3_NOSYNC |
|
self.ad9154.clock_write(AD9516_DIVIDER_3_3, 0*AD9516_DIVIDER_3_NOSYNC |
|
||||||
0*AD9516_DIVIDER_3_BYPASS_1 | 1*AD9516_DIVIDER_3_BYPASS_2)
|
0*AD9516_DIVIDER_3_BYPASS_1 | 0*AD9516_DIVIDER_3_BYPASS_2)
|
||||||
self.ad9154.clock_write(AD9516_DIVIDER_3_4, 1*AD9516_DIVIDER_3_DCCOFF)
|
self.ad9154.clock_write(AD9516_DIVIDER_3_4, 1*AD9516_DIVIDER_3_DCCOFF)
|
||||||
self.ad9154.clock_write(AD9516_OUT6, 1*AD9516_OUT6_LVDS_OUTPUT_CURRENT |
|
self.ad9154.clock_write(AD9516_OUT6, 1*AD9516_OUT6_LVDS_OUTPUT_CURRENT |
|
||||||
2*AD9516_OUT6_LVDS_CMOS_OUTPUT_POLARITY |
|
2*AD9516_OUT6_LVDS_CMOS_OUTPUT_POLARITY |
|
||||||
|
|
Loading…
Reference in New Issue