This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AFE7903: Enable and Disable of LNA

Part Number: AFE7903

We would like to enable and disable the LNA for debugging purposes with the CAFE library.

We have seen that there is the function "set_agc_lnaEn" available, but it seems this function only sets a parameter (.lnaEn) in a struct. After some further research, we found out that the function "agcAlcConfiguration" is needed to dump the whole parameter set to the chip by SPI. Nevertheless, this function "agcAlcConfiguration" is completely commented in this version "C_libraries_CAFE2p1", so it cannot be used. There is no information, why this function is unusable. Is there a reason why this function is commented or can it be uncommented without any issues?

Coming back to the initial question, is there any other way to enable or disable the LNA? Is it possible to achieve this by setting somehow the GPIO directly without AGC running? Or how to force the AGC to switch it on or off in a simple way.

We are using the CAFE library C_libraries_CAFE2p1. This library was uploaded by TI in march 2023.

  • Hi Frederik,

    The AGC, ALC configuration should be done as part of the AFE bringup. AGC and ALC parameters are described in section 10.4 of the Configuration Guide. If ‘lanEn’ parameter set to ‘True’, external LNA control though internal AGC is enabled as part of bringup.

    The C functions are used for dynamic configuration after initial/static Bring-up using the log file is done. Currently, configuration of AGC, ALC though dynamic C functions is not supported. That’s why this function is commented out.

     

    To test the functionality of pin-based control of LNA, external LNA bypass GPIOs can be overridden to a fixed values using below function in AFE79xx EVM GUI:

    AFE.TOP.IOWRAP.overrideFunction('RXA_LNABYPASS_B0',1,1) ### Overrides RXA LNA_Bypass pin to logic high

    AFE.TOP.IOWRAP.overrideFunction('RXA_LNABYPASS_B0',1,0) ### Overrides RXA LNA_Bypass pin to logic low

    AFE.TOP.IOWRAP.overrideFunction('RXA_LNABYPASS_B0',1,0) ### Disables override for RXA LNA_Bypass pin

    Regards,

    David Chaparro

  • Hi David

    there is a great need on our side to reconfigure such parts like ALC/AGC dynamically. Is there an updated library in the pipeline, which implementes those features in the near future?

  • Hi Frederik,

    There is no immediate update planned for this feature. I can check if there is a planned schedule for this feature or not. 

    Regards,

    David Chaparro