I'm using the AD9361 to get the RSSI value, with a bandwidth of 200K and an LO of 1G, for slow attack AGC. When I set the sampling rate to 8.3MHz or higher, I get the correct RSSI value, but if I set the sampling rate to 8.2MHz or lower, the RSSI value stays fixed and is wrong. Do you know why this happens?The RSSI register is set as follows:
ad9361_spi_write(spi,0x150,0x0b);
ad9361_spi_write(spi,0x151,0);
ad9361_spi_write(spi,0x152,0xff);
ad9361_spi_write(spi,0x153,0);
ad9361_spi_write(spi,0x154,0);
ad9361_spi_write(spi,0x155,0);
ad9361_spi_write(spi,0x156,0);
ad9361_spi_write(spi,0x157,0);
ad9361_spi_write(spi,0x158,0x0d); // AGC gain change
ad9361_spi_write(spi,0x15c,0x69);