![Analog Devices AD9361 Reference Manual Download Page 8](http://html1.mh-extra.com/html/analog-devices/ad9361/ad9361_reference-manual_2939854008.webp)
UG-570
AD9361 Reference Manual
| Page 8 of 128
BBPLL VCO CALIBRATION
The BBPLL VCO calibration must be run during initialization
of the
AD9361
device. This calibration is run as part of the
ad9361_bbpll_set_rate function. The maximum calibration
time is calculated in Equation 1.
3456
_
max
×
×
=
Scale
CLK
REF
ing
DivideSett
BBPLL
VCOcalTime
(
1
)
RF SYNTHESIZER CHARGE PUMP CALIBRATION
The charge pump calibration must be run once during
initialization of the
AD9361
device. This calibration matches
the up and down currents for the RF PLL’s charge pump, and is
run during the ad9361_txrx_synth_cp_calib function. This
calibration must be run the first time the
AD9361
device enters
the ALERT state. The calibration completes after a maximum of
36864 (Scaled_REF_CLK_IN) cycles.
RF SYNTHESIZER VCO CALIBRATION
The
AD9361
contains two synthesizers. When using TDD
mode, the Rx synthesizer is only enabled when TXNRX is low.
The Tx synthesizer is only enabled when TXNRX is high.
During initial calibrations, it is recommended to set the
AD9361
device into FDD mode to enable both synthesizers
while in the ALERT state to simplify calibrations.
The VCO calibration is run during the ad9361_set_rx_lo_freq
and ad9361_set_tx_lo_freq functions. First, set up any
synthesizer setup registers, then write the fractional frequency
words, followed by the integer frequency word last. The
calibration time can be traded off with calibration accuracy. It is
recommended for FDD applications, to use the longest
calibration for better accuracy since once in the FDD state, it
may be a long time before a synthesizer VCO calibration occurs
again. In TDD, the calibration time will need to be set to meet
the TDD turnaround time, while achieving the most accurate
calibration possible. In TDD, the Rx VCO calibration will occur
each time the receiver synthesizer is powered up (when TxRNX
switches from high to low logic level). The Tx VCO calibration
will occur each time the transmitter synthesizer is powered up
(when TXNRX switches from low to high logic level). See
Equation 2 for the calibration time.
The VCO calibrations can be masked (disabled) for certain
cases such as the fast lock synthesizer mode, or when an HFDD
application is required. Using the FDD Synth LUT instead of
the TDD Synth LUT could be used to acquire a temperature
stable lock for cases where there is not time to run the VCO
calibration in TDD.
Calibration completion can be detected by reading the Rx PLL
Lock bit and the Tx PLL Lock bit. The lock bits will read Logic 1
when the PLLs are locked. The bits are also available on the
control output pins.
9
_
12
2
,
max
×
+
×
+
+
+
=
ALC
count
2
us
us
VCOcalTime
wait
Scale
CLK
REF
N
wait
RFPLL
(
2
)
where:
𝑤𝑤𝑤𝑤
2
=
8
𝑅𝑅𝐹
𝐶𝐿𝐾
+
18
(𝑅𝑅𝐹
𝐶𝐿𝐾
× 𝑆𝑆𝑤𝑆𝑆)
𝑤𝑤𝑤𝑤
𝐴𝐿𝐶
= �
40
𝑅𝑅𝐹_𝐶𝐶𝐶 × 𝑆𝑆𝑤𝑆𝑆
�
𝑁
𝑐𝑜𝑢𝑛𝑡
= 2
(7+VCO Cal Count)
Table 3. Example Calculated VCO Calibration Times for FDD Default Settings
VCO Cal Count
REF_CLK
Scale
wait
2
(µs)
wait
ALC
(µs)
N
count
Calibration Time (µs)
3
19.20
2
0.885
1.042
1024
255.073
3
30.72
2
0.553
0.651
1024
160.171
3
40.00
2
0.425
0.500
1024
123.475
Table 4. Example Calculated VCO Calibration Times for TDD Defaults
VCO Cal Count
REF_CLK
Scale
wait
2
(µs)
wait
ALC
(µs)
N
count
Calibration Time (µs)
1
19.20
2
0.885
1.042
256
75.073
1
30.72
2
0.553
0.651
256
47.671
1
40.00
2
0.425
0.500
256
37.075
Rev. A