From 002cec940c7d8c373ab7062c0abdc4b38e23a10c Mon Sep 17 00:00:00 2001 From: Sugandha Gupta Date: Thu, 12 Apr 2018 16:55:39 -0700 Subject: adf4002: Fixed register programming for power down bit The bit shift for power down is one off with respect to the ADF4001/ADF4002 data sheet --- host/lib/usrp/common/adf4001_ctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/lib/usrp/common/adf4001_ctrl.cpp b/host/lib/usrp/common/adf4001_ctrl.cpp index 138ca7f81..85a13455f 100644 --- a/host/lib/usrp/common/adf4001_ctrl.cpp +++ b/host/lib/usrp/common/adf4001_ctrl.cpp @@ -59,7 +59,7 @@ uint32_t adf4001_regs_t::get_reg(uint8_t addr) { reg |= (uint32_t(timer_counter_control) & 0x00000F) << 11; reg |= (uint32_t(charge_pump_current_1) & 0x000007) << 15; reg |= (uint32_t(charge_pump_current_2) & 0x000007) << 18; - reg |= (uint32_t(power_down) & 0x000002) << 21; + reg |= (uint32_t(power_down) & 0x000002) << 20; break; case 3: reg |= (uint32_t(counter_reset) & 0x000001) << 2; -- cgit v1.2.3