UG-570
AD9361 Reference Manual
| Page 12 of 128
RF DC OFFSET CALIBRATION
The RF DC offset calibration should be run once during
initialization, or potentially when moving to a new carrier
frequency that is more than 100 MHz away from the previous
carrier frequency. This calibration should be run in the ALERT
state while the Rx synthesizer is enabled. The calibration is run
during the ad9361_rf_dc_offset_calib function. The internal
calibration results LUT stores separate results for the RF Rx A
input. If using the RF Rx B or C inputs along with the RF Rx A
input, you should run the calibration twice, once with each
input band selected. After calibrating each band, switching
between from the A input to the B or C input should not
require another calibration. Since the B and C inputs use the
same calibration results, switching from Input B to Input C may
require running the RF DC offset calibration.
When using the full Rx gain table, the RF DC offset calibration
only calibrates at gain indexes that are designated to calibrate in
the Rx gain table. This is because several consecutive gain steps
may leave the front end gain at the same setting, while only
changing baseband gain settings. The RF DC offset correction is
only designed to remove DC offset due to the RF parts of the
signal chain. By only running the calibration at gain indexes
that actually change the front end gain, the calibration time is
reduced. If the LUT does not hold a DC correction value for the
current Rx gain index, it will use the DC offset correction for
the next higher gain index that was calibrated. In the case of a
split Rx gain table, the calibration runs at each LMT gain index.
The RF DC offset tracking is enabled by with the ad9361_
tracking_control function. The tracking triggers an RF DC
offset update based on three events: Rx gain change, no energy
detected, or when the ENSM exits the Rx state. The DC Offset
Update bit
field
setting allows enabling or disabling any
combination of these events. Disabling RF DC offset tracking
would use the initially calibrated RF DC offset and never update
the correction words.
The calibration time and accuracy is calculated using Equation 9
and Equation 10. The calibration begins at minimum gain
(index = 0) and moves toward maximum gain. The RF DC
offset correction for each enabled Rx gain index is stored in a
LUT and applied when the Rx gain index is used. If the full Rx
gain table is used, the RF DC offset is calibrated only at gain
indexes specified to calibrate in the Rx gain table. If the Rx
gain table is split, the Number of Enabled Gain indexes in
Equation 10 equals 41 gain steps.
Length Of Each Average
= [{(
RF DC Offset Count
× 256) + 255} +
32
]
(
9
)
Total Calibration time
(CLKRF Clock Cycles)
=
21
×
Length Of Each Average
× (
Number of Enabled Gain indexes
+ 1)
(
10
)
Rev. A