forked from M-Labs/artiq
phaser: error on startup kernel
This commit is contained in:
parent
4e60a6ac71
commit
89a30b6f7c
|
@ -26,7 +26,7 @@ class StartupKernel(EnvExperiment):
|
||||||
AD9516_LONG_INSTRUCTION | AD9516_LONG_INSTRUCTION_MIRRORED |
|
AD9516_LONG_INSTRUCTION | AD9516_LONG_INSTRUCTION_MIRRORED |
|
||||||
AD9516_SDO_ACTIVE | AD9516_SDO_ACTIVE_MIRRORED)
|
AD9516_SDO_ACTIVE | AD9516_SDO_ACTIVE_MIRRORED)
|
||||||
if self.ad9154.clock_read(AD9516_PART_ID) != 0x41:
|
if self.ad9154.clock_read(AD9516_PART_ID) != 0x41:
|
||||||
return
|
raise ValueError("AD9516 not found")
|
||||||
|
|
||||||
# use clk input, dclk=clk/4
|
# use clk input, dclk=clk/4
|
||||||
self.ad9154.clock_write(AD9516_PFD_AND_CHARGE_PUMP, 1*AD9516_PLL_POWER_DOWN |
|
self.ad9154.clock_write(AD9516_PFD_AND_CHARGE_PUMP, 1*AD9516_PLL_POWER_DOWN |
|
||||||
|
|
Loading…
Reference in New Issue