A method for estimating signal quality of a spread spectrum signal is
provided. The method includes squaring a plurality of in-phase
correlation results and a plurality of quadrature correlation results,
summing each squared in-phase correlation result and the corresponding
correlation result to obtain a plurality of sum-of-square values,
detecting a peak value among the plurality of sum-of-square results,
calculating an average of non-peak values among the plurality of
sum-of-square results. The peak value is regarded as a signal power
value, while the averaged non-peak values are regarded as an average
noise power value. A signal-to-noise ratio is then calculated based on
the signal power value and the average noise power value. A method for
determining the parameters for the tracking loop is also provided. The
method includes estimating the signal-to-noise ratio of the spread
spectrum signal, and determining the tracking loop parameters based on
the signal-to-noise ratio.