Post Go back to editing

run-time gain control for hopping mode of LO MUX preprocess

Product Number: ADRV9002

Hi,

I am using the hopping mode of LO MUX preprocess on the system with OS.

I want to control RX gain in run-time manually.

I has referred to the following discussion:

 ADRV9002 Rx Gain Control in FH Mode 

It seems that the DGPIO is the only way for run-time gain control with LO MUX hopping. Is that correct?

If it is true, I want to inquire about how to configure the gain control mode of "3 pins=8 possible gain value" on the OS system.

The configuration may contain the 8-level gain table and the DGPIO pin assignment.

Thanks.

Edit Notes

add tags
[edited by: JimmyChen at 7:47 AM (GMT -4) on 30 Aug 2023]
  • ADI North America will be on summer shutdown starting August 24, 2023; perhaps another community member can assist you until our return on September 5th.
  • Hi JimmyChen,

    Have you tried the steps suggested in the forum post that you quoted?
    More specifically, this section for the setup parameters:

    .gainSetupByPin = true,
    .gainSetupByPinConfig = { {
    .numRxGainTableEntries = 8,
    .rxGainTable = { 255, 252, 248, 245, 240, 237, 235, 232 },
    .numTxAttenTableEntries = 8,
    .txAttenTable = { 12000, 12600, 13200, 13800, 14400, 15000, 15600, 16200 },
    .numGainCtrlPins = 3,
    .gainSelectGpioConfig = { {
    .pin = ADI_ADRV9001_GPIO_DIGITAL_01,
    .polarity = ADI_ADRV9001_GPIO_POLARITY_NORMAL,
    .master = ADI_ADRV9001_GPIO_MASTER_BBIC}, {
    .pin = ADI_ADRV9001_GPIO_DIGITAL_02,
    .polarity = ADI_ADRV9001_GPIO_POLARITY_NORMAL,
    .master = ADI_ADRV9001_GPIO_MASTER_BBIC}, {
    .pin = ADI_ADRV9001_GPIO_DIGITAL_03,
    .polarity = ADI_ADRV9001_GPIO_POLARITY_NORMAL,
    .master = ADI_ADRV9001_GPIO_MASTER_BBIC} }}

    The cruical part to understand here is that using combinational logic to set the gain index (i.e.3 pins = 8 gain values) only works at the hop edge, as that is when the sampling occurs. At any other time (in pin mode), the gain is controlled using the increment/decrement pins.

    Kind Regards,
    Michał

  • Hi M_Bugajski,

    Thanks very much for your reply.

    Your description of "only works at the hop edge" seems meeting my understanding, and the combination of 8 gain values and gain step control also meets my requirement.

    The main problem what I want to inquire about is how to configure the gain control mode to "this combination" via IIO commands (because the driver is implemented on ARM with OS).

    Thanks.

  • Hi JimmyChen,

    For queries related to Linux and IIO, you should use the Linux Software Drivers forum.

    Here, we only support the product line SDK package. You can see the various options available to you here.

    Kind Regards,
    Michał

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.