115
A3.8
Nested algorithms
A3.8.1
Algorithm A
Multiply the ratio of the on-chip resistor to the off-chip resistor by the default control value of
the RCAL_LPFLAD_TBB for 11MHz and return the result of the multiplication.
C code for algorithm A:
void Algorithm_A_TBB ()
{
unsigned char RCAL_LPFLAD_TBB;
float ratio;
Resistor_calibration (&ratio);
RCAL_LPFLAD_TBB = (unsigned char)(193 * ratio); // default control value )193 - when 11MHz) Multiply by ratio
Modify_SPI_Reg_bits (0x0109, 7, 0, RCAL_LPFLAD_TBB);
}
Algorithm_A_TBB
Input Parameters: none
Return Parameters: none
RCAL_LPFLAD_TBB := 193 * ratio
RCAL_LPFLAD_TBB_(1, 2)[7:0] (0x0109[7:0]) :=
RCAL_LPFLAD_TBB
Perform Resistor_ calibration procedure and get ratio
END
Store 11 MHz RBANK value
Figure 40 TBB algorithm A
A3.8.2
Algorithm B
Same as algorithm B in RBB.
A3.8.3
Algorithm C
Algorithm steps:
1.
Apply a single tone frequency at “CalFreq”.
2.
Set the “CCAL_LPFLAD_TBB” to maximum value.
3.
Measure the value of the amplitude at the ADC input. If it is lower than
“LowFreqAmp”, then jump to line #6 . Otherwise continue.
Содержание LMS7002M Series
Страница 2: ......
Страница 79: ...75 A Ap pp pe en nd di ix x 2 2 Control Block Diagrams ...