AnsweredAssumed Answered

AD9361 Input Selection in 1RX1TX

Question asked by wade53 on Feb 21, 2015
Latest reply on Feb 23, 2015 by tlili

Hello,

 

I am working on a system where we would like to use the AD9361 in 1RX1TX mode because of the higher sample rate.  The design uses the LVDS interface.  The system has six inputs and I'd like to use the six RF inputs as a multiiplexer: Rx1A, Rx1B, Rx1C, Rx2A, Rx2B, and Rx2C.  Since I only need to output one channel of data, is it possible to use 1RX1TX mode with RX2? 


I am using the the NOOS code, and it specifically blocks the selection of Rx2 or Tx2 if the AD9361 is in 1RX1TX mode in the functions ad9361_en_dis_rx and ad9361_en_dis_tx.

 

static int32_t ad9361_en_dis_tx(struct ad9361_rf_phy *phy, uint32_t tx_if, uint32_t enable)
{
  if (tx_if == 2 && !phy->pdata->rx2tx2 && enable)
  return -EINVAL;


  return ad9361_spi_writef(phy->spi, REG_TX_ENABLE_FILTER_CTRL,
  TX_CHANNEL_ENABLE(tx_if), enable);
}

 

int32_t ad9361_en_dis_rx(struct ad9361_rf_phy *phy, uint32_t rx_if, uint32_t enable)
{
  if (rx_if == 2 && !phy->pdata->rx2tx2 && enable)
  return -EINVAL;


  return ad9361_spi_writef(phy->spi, REG_RX_ENABLE_FILTER_CTRL,
  RX_CHANNEL_ENABLE(rx_if), enable);
}

 

Changing the code will be easy enough, but I want to know if the AD9361 is designed to allow 1RX1TX mode with the Rx2 inputs.

 

Any guidance is apprecaited!

Outcomes