2 antenna diversity application example, Atmega128rfa1 – Rainbow Electronics ATmega128RFA1 User Manual
Page 89

89
8266A-MCU Wireless-12/09
ATmega128RFA1
Antenna Diversity uses two antennas to switch to the most reliable RF signal path. This
is done by the radio transceiver during RX_LISTEN and RX_AACK_ON state without
interaction of the application software. Both antennas should be carefully separated
from each other to ensure highly independent receive signals.
Antenna Diversity can be used in Basic and Extended Operating Modes and can also
be combined with other features and operating modes like High Data Rate Mode and
RX/TX Indication.
9.8.3.2 Antenna Diversity Application Example
A block diagram for an application using an antenna switch is shown in the following
figure.
Figure 9-33. External Antenna Diversity – Block Diagram
10
9
8
7
2
1
1 4
1 5
A T m ega 128R F A 1
D IG 2
D IG 4
A V S S
R F P
R F N
A V S S
D
IG
3
D
IG
1
B
a
lu
n
A N T 0
A N T 1
R
F
-
S
w
itc
h
B 1
S W 1
...
...
Generally, the Antenna Diversity algorithm is enabled with bit ANT_DIV_EN=1 in
register ANT_DIV. For the External Antenna Diversity the control of the antenna switch
(SW1) must be enabled by bit ANT_EXT_SW_EN of register ANT_DIV. Under this
condition the control pins DIG1 and DIG2 are configured as outputs. DIG1 and DIG2
are used to feed the antenna switch signal and its inverse to the differential inputs of the
RF Switch (SW1).
The selected antenna is indicated by bit ANT_SEL of register ANT_DIV. The antenna
selection continues searching for new frames on both antennas after the frame
reception is completed. However the register bit ANT_SEL maintains its previous value
(from the last received frame) until a new SHR has been found and the selection
algorithm locked into one antenna again. Then the register bit ANT_SEL is updated.
The antenna defined by the ANT_CTRL bits of register ANT_DIV is selected for
transmission. If for example the same antenna as selected for reception is to be used
for transmission, the antenna must be set using the ANT_CTRL bits based on the value
read from the ANT_SEL bit. It is recommended to read bit ANT_SEL after the
TRX24_RX_START interrupt.
The autonomous search and selection allows the use of Antenna Diversity during
reception even if the application software currently does not control the radio
transceiver for instance in Extended Operating Mode.
An application software defined selection of a certain antenna can be done by disabling
the automatic Antenna Diversity algorithm (ANT_DIV_EN = 0) and selecting one
antenna using register bit ANT_CTRL.