![Analog Devices AD9361 Reference Manual Download Page 40](http://html1.mh-extra.com/html/analog-devices/ad9361/ad9361_reference-manual_2939854040.webp)
UG-570
AD9361 Reference Manual
| Page 40 of 128
SLOW ATTACK AGC MODE
Slow attack mode is intended for slowly changing signals such as
those found in some FDD applications, for example, WCDMA
and FDD LTE. The slow attack AGC uses a second-order control
loop with hysteresis that changes the gain to keep the average
signal power within a programmable window. The power is
measured between HB1 and the Rx FIR filter. This is the same
location as the low power detector in Figure 18. In addition, the
BBP can set bits to enable faster reactions for signals that exceed
the LMT and ADC thresholds. Enable AGC slow attack mode
with the ad9361_set_rx_gain_control_mode function.
Figure 24 demonstrates the concept of the control loop. Where
inner high threshold and inner low threshold are stored in
negative dBFS. The outer high threshold and outer low threshold
are stored as dB deltas to the inner thresholds. The A, B, C, and D
step sizes are programmable. These step sizes determine how
much the gain index pointer changes after the average signal
power exceeds a threshold.
Note that the
AD9361
does not have default thresholds or step
sizes. The BBP must write all of these values using the
ad9361_set_rx_gain_control_mode function.
SLOW ATTACK AGC GAIN UPDATE TIME
When the average signal power exceeds a threshold, the gain does
not necessarily change immediately. In FDD systems, there are
typically brief periods (such as those around slot boundaries) that
accommodate gain changes or other system parameter updates.
To accommodate this aspect of FDD protocols, the
AD9361
gain
will only update after the gain update counter expires. The
counter is clocked at the ClkRF rate (the input rate of the RFIR).
The depth of the counter can be set equal to double or quadruple
the value in these registers.
The counter clock begins running three clock cycles after the
AD9361
enters the receive state. Since the BBP is responsible for
moving the
AD9361
among its states, it can determine when the
gain update counter will expire. In this way, the Gain Update
Counter can be set such that it always expires at slot (or other)
boundaries. Additionally the BBP can reset the gain update
counter by setting the Enable Sync for Gain Counter bit and
taking CTRL_IN2 high.
The slow AGC is typically configured to have multiple power
measurement cycles within each gain update period. The last
power measurement performed before a gain update boundary
determines whether (and by how much) the gain should change.
Figure 24. Slow Attack AGC Control Loop Limits and Step Sizes
DECREASE GAIN A STEPS
OUTER THRESHOLD HIGH
INNER THRESHOLD HIGH
INNER THRESHOLD LOW
OUTER THRESHOLD LOW
DECREASE GAIN B STEPS
INCREASE GAIN C STEPS
INCREASE GAIN D STEPS
NO GAIN CHANGE
EXAMPLE OF
AVERAGE
SIGNAL POWER
1
1668-
025
Rev. A