Design Feature: August 1, 1996
Echoes during a conversation are the bane of mobile-cellular, cordless, and speaker phones. Echoes are unacceptable in a quality-speech telephone, and you must eliminate them to ensure normal conversation. The causes of echoes include: acoustic feedback from speaker to microphone in a hands-free system; impedance mismatches between a two-wire local loop and four-wire telephone network, causing electrical signals to reflect; and constant, prolonged background noise present in moving vehicles or at public spaces, such as emergency telephones along highways.
Figure 1
shows the common location of the echo-canceller function in a telephone handset.
Traditionally, the echo-cancellation function required software development on
general-purpose DSP µPs. However, you can now use dedicated echo-canceller
chips to eliminate echoes from these sources.
Figure
2, which you can use in either a handset or base set, eliminates software
development. In addition, the design can also reduce power dissipation through
lower system-clock speeds. This design provides a 30-dB cancellation level for
echoes of as high as 50 msec introduced by acoustic and line feedback.
The following equation mathematically expresses the echo signal, Yn, where T is the sample cycle, Xn is the receiving signal at Tn , and Wi is the impulse response of the echo path:
The definition of the pseudo echo signal [mean]Yn is
and the residual echo signal En is
where Hi are the tap coefficients of the echo-canceller chip. The sampling, arithmetic, and digital synthesis operations are all implemented on chip. For example, the chip automatically updates the tap coefficients to reduce the error between the received echo signal and the pseudo echo signal generated on chip.
In Figure 2's circuit, two sources induce echoes: acoustic feedback from ROUT to SIN on the acoustic (left-hand) side, and the line feedback from SOUT to RIN at the line (right-hand) side. Echo-canceller IC2 provides acoustic cancellation, and echo-canceller IC3 provides line cancellation. If an application needs only acoustic or line-echo cancellation, only one of these ICs is necessary. Other than their input and output connections, the two echo cancellers are identical and can eliminate echoes over a 27-msec time period. To cancel echoes longer than 27 msec, you can use a related IC that provides echo cancellation over 55-msec time periods. You can also cascade multiple devices to cancel echoes with delays in excess of 55 msec. The design also uses PCM codecs IC1 and IC4 to perform bidirectional analog/digital conversion.
The MSM7602 echo-canceller IC contains a digital transverse adaptive filter that estimates the impulse response by observing the transfer characteristics of the echo path. About 300 samples are necessary to fully characterize the impulse response of the echo path. To cancel received echoes at the chip, this chip generates a pseudo echo by calculating the tap coefficients of the filter, which cancels the actual received echo.
On the acoustic side of Figure 2, SIN and ROUT connect to a microphone and speaker, respectively. The CLK input to the circuit is the external input for the basic clock. RST and PWDWN are both active-low signals for reset and power-down support. The External SCK input is the clock-signal input that controls the transmitting and receiving of serial data at rates of 64 to 2048 kHz. The External SYNC signal provides an external input for synchronizing transmit and receive functions at a typical rate of 8 kHz.
The values of R3 and R2according to the equation 1+R2/R3produce the desired gain for the IC2's input stage. A gain of less than 10 is typical to implement a stable circuit. R1 and C1 determine the low-frequency response of the audio signal. This network passes frequencies of 30 Hz or greater (f=1/2[pi]R1C1). R4 pulls up the open-drain MOS output device on PCMOUT. A value of 2.2 k(ohm) can sink 0.5 mA and provide a fast response characteristic. C2 and C3 are low- and high-frequency bypass capacitors, respectively. R5 and R6 are pull-up resistors that force logical one when the output stage of IC2 is inactive.
Similarly, on the line side, R8 and R9 determine the gain for IC3's codec. C5 and R7 determine this codec's low-frequency response. R10 is the pull-up resistor for the open-drain PCMOUT output, and C6 and C7 provide low- and high-frequency bypass, respectively. Pull-up resistors R11 and R12 force logical ones when the output stage of IC3 is inactive.
Tests results verify operation
Figure
3 presents the results from a typical test of the echo-cancellation circuit,
using a 2-kHz, 2V p-p sine wave at RIN on the line side. This test
was the result of directly connecting the speaker output at the acoustic side to
the microphone input to simulate 100% feedback at the acoustic side of the
handset. Figure 3 shows the output waveform, on the line side at SOUT,
with and without the echo cancellation. The test verifies an echo cancellation
of the signal of 30 dB. You can observe similar results if you provide feedback
at the line side by tying RIN to SOUT, using SIN
as the input signal, and observing ROUT at the acoustic side.
