aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-13 17:35:09 -0700
committerJosh Blum <josh@joshknows.com>2010-05-13 17:35:09 -0700
commit11059ddbd6f5301f72299933321c35d00663dfe6 (patch)
tree5e0e8e30fb70aff2f7dd098ba6e5ec163dd16c00
parent573872edd90207b2c73c7d028868d01afc8b8a5c (diff)
downloaduhd-11059ddbd6f5301f72299933321c35d00663dfe6.tar.gz
uhd-11059ddbd6f5301f72299933321c35d00663dfe6.tar.bz2
uhd-11059ddbd6f5301f72299933321c35d00663dfe6.zip
fix to ad9777 dac control
-rwxr-xr-xhost/lib/ic_reg_maps/gen_ad9777_regs.py2
-rw-r--r--host/lib/usrp/usrp2/codec_ctrl.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/host/lib/ic_reg_maps/gen_ad9777_regs.py b/host/lib/ic_reg_maps/gen_ad9777_regs.py
index abb839f0f..690b15e24 100755
--- a/host/lib/ic_reg_maps/gen_ad9777_regs.py
+++ b/host/lib/ic_reg_maps/gen_ad9777_regs.py
@@ -59,7 +59,7 @@ pll_divide_ratio 3[0:1] 0 div1, div2, div4, div8
## address 4
########################################################################
pll_state 4[7] 0 off, on
-auto_cp_control 4[6] 0 dis, enb
+auto_cp_control 4[6] 0 auto, manual
pll_cp_control 4[0:2] 0 50ua=0, 100ua=1, 200ua=2, 400ua=3, 800ua=7
########################################################################
## address 5 and 9
diff --git a/host/lib/usrp/usrp2/codec_ctrl.cpp b/host/lib/usrp/usrp2/codec_ctrl.cpp
index d1e16881b..d698216ba 100644
--- a/host/lib/usrp/usrp2/codec_ctrl.cpp
+++ b/host/lib/usrp/usrp2/codec_ctrl.cpp
@@ -39,8 +39,8 @@ public:
_ad9777_regs.filter_interp_rate = ad9777_regs_t::FILTER_INTERP_RATE_4X;
_ad9777_regs.mix_mode = ad9777_regs_t::MIX_MODE_REAL;
_ad9777_regs.pll_divide_ratio = ad9777_regs_t::PLL_DIVIDE_RATIO_DIV1;
- _ad9777_regs.pll_state = ad9777_regs_t::PLL_STATE_OFF;
- _ad9777_regs.auto_cp_control = ad9777_regs_t::AUTO_CP_CONTROL_ENB;
+ _ad9777_regs.pll_state = ad9777_regs_t::PLL_STATE_ON;
+ _ad9777_regs.auto_cp_control = ad9777_regs_t::AUTO_CP_CONTROL_AUTO;
//I dac values
_ad9777_regs.idac_fine_gain_adjust = 0;
_ad9777_regs.idac_coarse_gain_adjust = 0xf;