AnsweredAssumed Answered

the initialization of AD9361

Question asked by angleIsDancing on Feb 23, 2016
Latest reply on Mar 1, 2016 by DragosB

Hi,all:

     I got the no-os project from internet and have some confusion about the code in the struct AD9361_InitParam default_init_param.

this is the code:(begins from 126th row in the file main.c)

=============================

/* Gain Control */

  2, //gc_rx1_mode *** adi,gc-rx1-mode

  2, //gc_rx2_mode *** adi,gc-rx2-mode

  58, //gc_adc_large_overload_thresh *** adi,gc-adc-large-overload-thresh

  4, //gc_adc_ovr_sample_size *** adi,gc-adc-ovr-sample-size

  47, //gc_adc_small_overload_thresh *** adi,gc-adc-small-overload-thresh

  8192, //gc_dec_pow_measurement_duration *** adi,gc-dec-pow-measurement-duration

  0, //gc_dig_gain_enable *** adi,gc-dig-gain-enable

  800, //gc_lmt_overload_high_thresh *** adi,gc-lmt-overload-high-thresh

  704, //gc_lmt_overload_low_thresh *** adi,gc-lmt-overload-low-thresh

  24, //gc_low_power_thresh *** adi,gc-low-power-thresh

15, //gc_max_dig_gain *** adi,gc-max-dig-gain

========================================

and my questions are:

when we set gc_dig_gain_enable to 0, does it mean that we select full table mode(set 0x0FB[D3] to 1 by default?)? if yes,why we still need to set gc_max_dig_gain?

Thanks

Outcomes