EasyManua.ls Logo

Lime Microsystems LMS7002MR3 - A3.4 Nested Algorithms; A3.4.1 Algorithm a; A3.4.2 Algorithm B

Default Icon
123 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
107
The following is the C code implements described algorithm:
unsigned char Calibration_HighBand_RBB (unsigned char ch)
{
unsigned char result = 0;
Save_config_RBB (); //save current configuration
MIMO_Ctrl (ch);
Modify_SPI_Reg_bits (0x040A, 13, 12, 1); // AGC Mode = 1 (RSSI mode)
Set_cal_path_RBB (8); //Set control signals to path 8 (RX HighBand)
if (Algorithm_B_RBB (&LowFreqAmp) != 1) goto RESTORE; // Calibrate and Record the low frequency output amplitude (Algorithm B)
Algorithm_F_RBB (RBB_37_0MHZ);// CalibrateByCap the output cuttoff frequency at 18,5 MHz MHz and store
Algorithm_F_RBB (RBB_66_0MHZ);// CalibrateByCap the output cuttoff frequency at 33 MHz MHz and store
Algorithm_F_RBB (RBB_108_0MHZ);// CalibrateByCap the output cuttoff frequency at 54 MHz MHz and store
RESTORE:
Restore_config_RBB (); //restore configuration
return result;
}
A3.4 Nested algorithms
A3.4.1 Algorithm A
Multiply the ratio of the on-chip resistor to the off-chip resistor by the default control value
(R_CTL_LPF_RBB) of the respective resistor.
Algorithm_A_RBB
Input Parameters: none
Return Parameters: none
R_CTL_LPF_RBB := 16 * ratio
R_CTL_LPF_RBB_(1, 2)[4:0] (0x0116[15:11]) :=
R_CTL_LPF_RBB
Perform Resistor_ calibration procedure and get ratio
END
Figure 35 RBB algorithm A
C code for algorithm A:
void Algorithm_A_RBB ()
{
unsigned char R_CTL_LPF_RBB;
float ratio;
Resistor_calibration (&ratio);
R_CTL_LPF_RBB = (unsigned char)(16 * ratio); // Default control value multiply by ratio
Modify_SPI_Reg_bits (0x0116, 15, 11, R_CTL_LPF_RBB);
RBB_RBANK[MIMO_ch] = R_CTL_LPF_RBB; // Store RBANK Values (R_CTL_LPF_RBB)
}
A3.4.2 Algorithm B
Algorithm steps:

Table of Contents