AnsweredAssumed Answered

Bus SPI to configure AD9361

Question asked by jfp on May 26, 2015
Latest reply on Aug 18, 2015 by odarren

Hi,

 

We have recently adquired a FMCOMMS3 board. We are trying to use it on a ML605 board. Firstly we would like to configure the AD9361 chip by using SPI interface. For this aim we have developed a simple block in VHDL that send SPI commands in order to be able to write and read internal registers of the chip. From the AD9361 datasheet and no-OS code, we would say the SPI commands format is the following:

spi.png

The steps of our test are:

 

1.- Reset using gpio_resetb pin.

2.- Generate write command to configure REG_SPI_CONF. Addr = 0x000, Value = 0xE7.

3.- Send the write command through spi_mosi. spi_csn is set to '0' during the transmission of the command.

4.- Generate write command to configure REG_SPI_CONF. Addr = 0x000, Value = 0x00.

5.- Send the write command through spi_mosi. spi_csn is set to '0' during the transmission of the command.

6.- Generate write command to configure an AD9361 register which we can read after (for instance REG_AGC_CONFIG_1) .

     Addr = 0x0FA, Value = 0x81.

7.- Send the write command through spi_mosi. spi_csn is set to '0' during the transmission of the command.

8.- Generate write_and_read command to read the content of the REG_AGC_CONFIG_1 register.

     Addr = 0x0FA.

9.- Send the write_and_read command through spi_mosi. spi_csn is set to '0' during the transmission of the command.


Our problem is that we do not get any response through spi_miso pin form the AD9361. We do not know what we are doing wrong.


Thanks in advance,


Juan.

Outcomes