EasyManua.ls Logo

Lime Microsystems LMS7002MR3 - Page 122

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...
118
8. Return the value of CONTROL.
Algorithm_E_TBB
Input Parameters: Band
Return Parameters: status
Band <= 11 MHz ?
CONTROL := 0
low_band := 1
RCAL_LPFLAD_TBB_(1, 2)[7:0](0x0109[7:0]) :=
CONTROL
low_band := 0
RCAL_LPFH_TBB_(1, 2)[7:0](0x0109[15:8]) :=
CONTROL
Perform Algorithm_B_TBB Procedure and get Result
Apply a single tone frequency at Band
low_band == 1
RCAL_LPFLAD_TBB_(1, 2)[7:0](0x0109[7:0]) :=
CONTROL
RCAL_LPFH_TBB_(1, 2)[7:0](0x0109[15:8]) :=
CONTROL
ADCOUT := RSSI[15:0] (0x040B[15:0])
ADCOUT >= LowFreqAmp
CONTROL := CONTROL + 1
Result := FALSE
CONTROL == 0
YES
NO
NO
NO
Return Result.
END
Store CONTROL value RBANK @ Band Freq
Result := TRUE
YES
YES
NO
YES
Figure 42 TBB algorithm E
C code for algorithm E:
unsigned char Algorithm_E_TBB (unsigned char Band_id)
{
unsigned short ADCOUT;
unsigned char low_band, CONTROL;
CONTROL = 0; // Set the CONTROL to zero. This should bring the output cutt-off frequency to minimum.

Table of Contents