aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Tsou <tom.tsou@ettus.com>2015-06-17 18:05:50 -0700
committerMartin Braun <martin.braun@ettus.com>2015-07-13 14:59:16 -0700
commite71edf79628531eecb61234c285218a7b59a7233 (patch)
tree975669d7575875470377661ba071a66042e0f729
parent3c5b4b5f9f3db6a3c1327d1d583a28f55fa09a1d (diff)
downloaduhd-e71edf79628531eecb61234c285218a7b59a7233.tar.gz
uhd-e71edf79628531eecb61234c285218a7b59a7233.tar.bz2
uhd-e71edf79628531eecb61234c285218a7b59a7233.zip
ad9361: Update Tx Quad Cal to match current gain tables
Fixes issue #828 "B200: Tx quadrature calibration regression in master" Following commit added new gain table settings to reflect updated values from ADI. Gain indices used by Tx Quad Cal were not matched to accommodate the new tables. 2b06c38 "b2xx: dc offset and iq imbalance correction control" Requirement for Tx Quad Cal is for TIA gain and analog LPF gain to be set at 0 dB, or 0x20 in the gain table. Final effect is a dramatic decrease in Tx DC offset and quadrature image. Signed-off-by: Tom Tsou <tom.tsou@ettus.com>
-rw-r--r--host/lib/usrp/common/ad9361_driver/ad9361_device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
index 19b6242ff..00534c305 100644
--- a/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
+++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.cpp
@@ -833,7 +833,7 @@ void ad9361_device_t::_tx_quadrature_cal_routine() {
/* The gain table index used for calibration must be adjusted for the
* mid-table to get a TIA index = 1 and LPF index = 0. */
- if ((_rx_freq >= 1300e6) && (_rx_freq < 4000e6)) {
+ if (_rx_freq < 1300e6) {
_io_iface->poke8(0x0aa, 0x22); // Cal gain table index
} else {
_io_iface->poke8(0x0aa, 0x25); // Cal gain table index