Method and apparatus for digital signal processing-based baseline wander correction
A method and an apparatus are provided in which an analog signal may be sampled by an analog-to-digital converter (ADC) to generate digital signal samples affected by baseline wander. Digital signal processing (DSP) may be performed on the digital signal samples to generate a recovered signal with corrected baseline wander. The DSP is performed using a first adaptable coefficient for a current digital signal sample and a second adaptable coefficient for a previous digital signal sample.
1 . A method comprising:
sampling an analog signal by an analog-to-digital converter (ADC) to generate digital signal samples affected by baseline wander; and
performing digital signal processing (DSP) on the digital signal samples to generate a recovered signal with corrected baseline wander, wherein the DSP is performed using a first adaptable coefficient for a current digital signal sample and a second adaptable coefficient for a previous digital signal sample,
wherein performing the DSP comprises:
multiplying the current digital signal sample by the first adaptable coefficient to generate a first result;
multiplying the previous digital signal sample by the second adaptable coefficient to generate a second result; and
summing the first result, the second result, and a third result, wherein the third result is based on a previously recovered signal sample produced by the DSP and fed back into the summation, to generate a current recovered signal sample.
2 . The method of claim 1 , further comprising multiplying the previous recovered signal sample by a number less than 1.
3 . The method of claim 1 , wherein the first adaptable coefficient has an initial value of 1 and the second adaptable coefficient has an initial value of −1.
4 . The method of claim 1 , wherein the first adaptable coefficient and the second adaptable coefficient are determined using a least mean squares algorithm based on a sample error and a desired signal sample.
5 . The method of claim 4 , wherein the first adaptable coefficient and the second adaptable coefficient are adapted from respective previously determined coefficients by adding a multiplied result of the sample error, the desired signal sample, and a value implemented via a right shift of bits.
6 . The method of claim 4 , wherein the first adaptable coefficient and the second adaptable coefficient are adapted from respective previously determined coefficients by adding a multiplied result of a first sign of the sample error, a second sign of the desired signal sample, and a value implemented via a right shift of bits.
7 . The method of claim 4 , wherein the sample error is a difference between the desired signal sample and the recovered signal sample.
8 . The method of claim 4 , wherein the desired signal sample is based on a sign of the current digital signal sample, all bits of the current digital signal sample, or a number of most significant bits of the current digital signal sample.
9 . An apparatus comprising:
an analog-to-digital converter (ADC) configured to sample an analog signal to generate digital signal samples affected by baseline wander; and
a baseline wander correction circuit configured to perform digital signal processing (DSP) on the digital signal samples to generate a recovered signal with corrected baseline wander, wherein the DSP is performed using a first adaptable coefficient for a current digital signal sample and a second adaptable coefficient for a previous digital signal sample,
wherein the baseline wander correction circuit is further configured to:
multiply the current digital signal sample by the first adaptable coefficient to generate a first result;
multiply the previous digital signal sample by the second adaptable coefficient to generate a second result; and
sum the first result, the second result, and a third result, wherein the third result is based on a previously recovered signal sample produced by the DSP and fed back into the summation, to generate a recovered signal sample.
10 . The apparatus of claim 9 , wherein the baseline wander correction circuit is further configured to multiply the previous recovered signal sample by a number less than 1.
11 . The apparatus of claim 9 , wherein the first adaptable coefficient has an initial value of 1 and the second adaptable coefficient has an initial value of − 1 .
12 . The apparatus of claim 9 , wherein the baseline wander correction circuit is further configured to determine the first adaptable coefficient and the second adaptable coefficient using a least means squares algorithm based on a sample error and a desired signal sample.
13 . The apparatus of claim 12 , wherein the baseline wander correction circuit is further configured to adapt the first adaptable coefficient and the second adaptable coefficient from respective previously determined coefficients by adding a multiplied result of the sample error, the desired signal sample, and a value implemented via a right shift of bits.
14 . The apparatus of claim 12 , wherein the baseline wander correction circuit is further configured to adapt the first adaptable coefficient and the second adaptable coefficient from respective previously determined coefficients by adding a multiplied result of a first sign of the sample error, a second sign of the desired signal sample, and a value implemented via a right shift of bits.
15 . The apparatus of claim 12 , wherein the sample error is a difference between the desired signal sample and the recovered signal sample.
16 . The apparatus of claim 12 , wherein the desired signal sample is based on a sign of the current digital signal sample, all bits of the current digital signal sample, or a number of most significant bits of the current digital signal sample.
17 . An apparatus comprising:
a processor; and
a non-transitory computer readable storing instructions that, when executed, cause the processor to:
sample an analog signal, at an analog-to-digital converter (ADC), to generate a digital signal samples affected by baseline wander; and
perform digital signal processing (DSP) on the digital signal samples to generate a recovered signal with corrected baseline wander, wherein the DSP is performed, per sample, using a first adaptable coefficient for a current digital signal sample and a second adaptable coefficient for a previous digital signal sample,
wherein, in performing the DSP, the instructions further cause the processor to:
multiply the current digital signal sample by the first adaptable coefficient to generate a first result;
multiply the previous digital signal sample by the second adaptable coefficient to generate a second result; and
sum the first result, the second result, and a third result, wherein the third result is based on a previously recovered signal sample produced by the DSP and fed back into the summation, to generate a recovered signal sample.