AnsweredAssumed Answered

Operate AD9361 in FDD independent mode using no-os drivers

Question asked by LakshmiS on Aug 16, 2016
Latest reply on Aug 29, 2016 by DragosB

Hello,

 

I want to operate AD9361 in FDD independent mode to enable Rx/Tx only.

 

I could enable the Tx and disable the Rx using the following script:

 

/* Base Configuration */

0, //two_rx_two_tx_mode_enable

0, //one_rx_one_tx_mode_use_rx_num

0, //one_rx_one_tx_mode_use_tx_num

1, //frequency_division_duplex_mode_enable

0, //frequency_division_duplex_independent_mode_enable

 

/* Define GPIO_ENABLE_PIN and GPIO_TXNRX_PIN  */

 

#define GPIO_ENABLE_PIN 101

#define GPIO_TXNRX_PIN 102

 

/* Enable Tx and Disable Rx */

 

gpio_direction(GPIO_ENBALE_PIN, 0);

gpio_set_value(GPIO_ENBALE_PIN, 0);

 

gpio_direction(GPIO_TXNRX_PIN, 1);

gpio_set_value(GPIO_TXNRX_PIN, 1);

 

ad9361_set_en_state_machine_mode(ad9361_phy, ENSM_MODE_PINCTRL_FDD_INDEP);

 

But, I can't disable Tx using the following script, but Rx is enabled:

gpio_direction(GPIO_ENBALE_PIN, 0);

gpio_set_value(GPIO_ENBALE_PIN, 0);

 

gpio_direction(GPIO_TXNRX_PIN, 1);

gpio_set_value(GPIO_TXNRX_PIN, 1);

ad9361_set_en_state_machine_mode(ad9361_phy, ENSM_MODE_PINCTRL_FDD_INDEP);

 

am I missing something? Please help me in resolving this issue.

 

Thanks,

Lakshmi

Outcomes