![Analog Devices AD9361 Reference Manual Download Page 26](http://html1.mh-extra.com/html/analog-devices/ad9361/ad9361_reference-manual_2939854026.webp)
UG-570
AD9361 Reference Manual
| Page 26 of 128
MODES OF OPERATION
The ENSM can either be controlled by SPI writes or the
ENABLE/TXNRX pins. SPI control is considered asynchronous
to the DATA_CLK because the SPI_CLK can be derived from a
different clock reference and still function properly. The SPI
control ENSM method is recommended when real time control
of the synthesizers is not necessary. SPI control can be used for
real time control as long as the BBP has the ability to perform
timed SPI writes accurately. The ENABLE/TXNRX pin control
method is recommended if the BBP has extra control outputs
that can be controlled in real time, allowing a simple two-wire
interface to control the state of the
AD9361
device. The
ENABLE pin can be driven by either a pulse (edge detected
internal to the
AD9361
) or a level to advance the current state
of the ENSM to the next state. If a pulse is used on the ENABLE
pin, it must have a minimum pulse width of one FB_CLK cycle.
In level mode, the ENABLE and TXNRX pins are also edge
detected in the
AD9361
, and must meet the same minimum
pulse width requirements of one FB_CLK cycle.
SPI Control
SPI control is disabled by default and can be enabled in the
ENSM Config 1 register. Once in the ALERT state, the
AD9361
enables its RF synthesizers for the transmitters and receivers. If
for some reason the synthesizers did not calibrate correctly, the
ENSM will not be able to transition to the Rx or Tx states. This
feature protects the
AD9361
from transmitting or receiving data
when the synthesizers are not calibrated properly, protecting the
wireless spectrum.
Once in the ALERT state, with the RFPLLs properly calibrated,
the ENSM is ready to move into the Rx, Tx, or FDD state. To
move from ALERT to Rx, set the Force Rx On bit. To move
back to ALERT or WAIT, clear the bit. To move from ALERT to
Tx or FDD, set the Force Tx On bit. To move back to ALERT or
WAIT clear the bit. In FDD mode, the Force Rx On bit is
ignored. While in TDD, the ENSM must transition to the
ALERT state between Rx and Tx states. The ENSM cannot
move from Rx directly to Tx, or Tx directly to Rx.
After sending the Force Alert State bit from the WAIT state,
allow the ENSM time to pass through ENSM State 4 before
sending another command. The time for State 4 to complete
depends on the time setting written into the Rx and Tx Load
Synth Delay registers. This delay is 2 µs.
After sending the SPI write to exit the Rx or Tx states, allow six
ADC_CLK/64 clock cycles of flush time before sending another
ENSM SPI command. If a SPI command is received during an
intermediate ENSM state, the command will be ignored.
Rev. A