Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation



Similar documents
SN54165, SN54LS165A, SN74165, SN74LS165A PARALLEL-LOAD 8-BIT SHIFT REGISTERS

SDLS068A DECEMBER 1972 REVISED OCTOBER Copyright 2001, Texas Instruments Incorporated

APPLICATION BULLETIN

WHAT DESIGNERS SHOULD KNOW ABOUT DATA CONVERTER DRIFT

High-Speed Gigabit Data Transmission Across Various Cable Media at Various Lengths and Data Rate

Audio Tone Control Using The TLC074 Operational Amplifier

Fast Logarithms on a Floating-Point Device

Current-Transformer Phase-Shift Compensation and Calibration

Signal Conditioning Wheatstone Resistive Bridge Sensors

Motor Speed Measurement Considerations When Using TMS320C24x DSPs

Controlling TAS5026 Volume After Error Recovery

Binary Search Algorithm on the TMS320C5x

Designing Gain and Offset in Thirty Seconds

SN54F157A, SN74F157A QUADRUPLE 2-LINE TO 1-LINE DATA SELECTORS/MULTIPLEXERS

Application Report. 1 Introduction. 2 Resolution of an A-D Converter. 2.1 Signal-to-Noise Ratio (SNR) Harman Grewal... ABSTRACT

SN28838 PAL-COLOR SUBCARRIER GENERATOR

Implementing an In-Service, Non- Intrusive Measurement Device in Telecommunication Networks Using the TMS320C31

Floating Point C Compiler: Tips and Tricks Part I

RETRIEVING DATA FROM THE DDC112

SN54HC157, SN74HC157 QUADRUPLE 2-LINE TO 1-LINE DATA SELECTORS/MULTIPLEXERS

Filter Design in Thirty Seconds

SINGLE-SUPPLY OPERATION OF OPERATIONAL AMPLIFIERS

CUSTOM GOOGLE SEARCH PRO. User Guide. User Guide Page 1

A Low-Cost, Single Coupling Capacitor Configuration for Stereo Headphone Amplifiers

Wireless Subwoofer TI Design Tests

How To Make A Two Series Cell Battery Pack Supervisor Module

LMS is a simple but powerful algorithm and can be implemented to take advantage of the Lattice FPGA architecture.

Understanding the Terms and Definitions of LDO Voltage Regulators

THE RIGHT-HALF-PLANE ZERO --A SIMPLIFIED EXPLANATION

Multi-Transformer LED TV Power User Guide. Anderson Hsiao

Signal Conditioning Piezoelectric Sensors

How To Close The Loop On A Fully Differential Op Amp

Monitoring TMS320C240 Peripheral Registers in the Debugger Software

Application Report SLVA051

Texas Instruments. FB PS LLC Test Report HVPS SYSTEM AND APPLICATION TEAM REVA

Pressure Transducer to ADC Application

bq2114 NiCd or NiMH Gas Gauge Module with Charge-Control Output Features General Description Pin Descriptions

August 2001 PMP Low Power SLVU051

TSL INTEGRATED OPTO SENSOR

Enhancing the SNR of the Fiber Optic Rotation Sensor using the LMS Algorithm

SN54HC191, SN74HC191 4-BIT SYNCHRONOUS UP/DOWN BINARY COUNTERS

Using the Texas Instruments Filter Design Database

Design Note DN004. Folded Dipole Antenna for CC25xx By Audun Andersen. Keywords. 1 Introduction CC2500 CC2550 CC2510 CC2511

TSL250, TSL251, TLS252 LIGHT-TO-VOLTAGE OPTICAL SENSORS

Supply voltage Supervisor TL77xx Series. Author: Eilhard Haseloff

Smart Battery Module with LEDs and Pack Supervisor

Wide Bandwidth, Fast Settling Difet OPERATIONAL AMPLIFIER

Using C to Access Data Stored in Program Space Memory on the TMS320C24x DSP

SN54ALS191A, SN74ALS191A SYNCHRONOUS 4-BIT UP/DOWN BINARY COUNTERS

Calculating Gain for Audio Amplifiers

Teaching DSP through the Practical Case Study of an FSK Modem

APPLICATION BULLETIN

Managing Code Development Using CCS Project Manager

Final Year Project Progress Report. Frequency-Domain Adaptive Filtering. Myles Friel. Supervisor: Dr.Edward Jones

Application Note AN107

6 Output With 1 kω in Series Between the Output and Analyzer Output With RC Low-Pass Filter (1 kω and 4.7 nf) in Series Between the Output

Adaptive Equalization of binary encoded signals Using LMS Algorithm

Application Report. 1 Description of the Problem. Jeff Falin... PMP Portable Power Applications ABSTRACT

IMPORT/EXPORT CUSTOMER REVIEWS. User Guide. User Guide Page 1

Using C to Access Data Stored in Program Memory on the TMS320C54x DSP

Important Notice. All company and brand products and service names are trademarks or registered trademarks of their respective holders.

Data sheet acquired from Harris Semiconductor SCHS067B Revised July 2003

Understanding CIC Compensation Filters

Standard Linear & Logic Semiconductor Marking Guidelines

EDI s x32 MCM-L SRAM Family: Integrated Memory Solution for TMS320C3x DSPs

Taking the Mystery out of the Infamous Formula, "SNR = 6.02N dB," and Why You Should Care. by Walt Kester

Data sheet acquired from Harris Semiconductor SCHS087D Revised October 2003

TI and ibiquity Introduce Industry s Lowest Cost Single-Chip AM/FM and HD Radio Baseband John Gardner Digital Radio Marketing Manager

CS4525 Power Calculator

EDI s x32 MCM-L SRAM Family: Integrated Memory Solution for TMS320C4x DSPs

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

1. Installation Instructions

SEO Suite Pro. User Guide


APPLICATION NOTE BUILDING A QAM MODULATOR USING A GC2011 DIGITAL FILTER CHIP

Data sheet acquired from Harris Semiconductor SCHS020C Revised October 2003

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

AAT3520/2/4 MicroPower Microprocessor Reset Circuit

SEO Meta Templates. Magento Extension. User Guide. SEO Meta Templates

The Filtered-x LMS Algorithm

Simplifying System Design Using the CS4350 PLL DAC

LM5030 LM5030 Application: DC - DC Converter Utilizing the Push-Pull Topology


ADAPTIVE ALGORITHMS FOR ACOUSTIC ECHO CANCELLATION IN SPEECH PROCESSING

Next-Generation BTL/Futurebus Transceivers Allow Single-Sided SMT Manufacturing

AN48. Application Note DESIGNNOTESFORA2-POLEFILTERWITH DIFFERENTIAL INPUT. by Steven Green. 1. Introduction AIN- AIN+ C2

USB 3.0 CDR Model White Paper Revision 0.5

IrDA Transceiver with Encoder/Decoder

QUADRO POWER GUIDELINES

PCIe XMC x8 Lane Adapter

Using the Scripting Utility in the Code Composer Studio Integrated Development Environment

AN3998 Application note

Guidelines for Software Development Efficiency on the TMS320C6000 VelociTI Architecture

Adjusting Voice Quality

News Extension 2.2 User Guide

IMPORT/EXPORT COUPON/SHOPPING CART RULES. User Guide. User Guide Page 1

FREQUENCY RESPONSE ANALYZERS

A Differential Op-Amp Circuit Collection

Transcription:

Application Report SPRA561 - February 2 Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation Zhaohong Zhang Gunter Schmer C6 Applications ABSTRACT This application note presents an analysis on the effects of finite filter coefficient precision on the LMS algorithm performance in line echo cancellation using TMS32C621 digital processor. The study is conducted through theoretical analysis and computer simulation. The results indicated that the precision is adequate for meeting the echo cancellation specifications (G.165/G.168). Contents 1 Introduction......................................................................... 1 2 Theoretical Analysis................................................................. 2 3 Simulation Results................................................................... 4 4 Conclusion.......................................................................... 8 5 References.......................................................................... 8 List of Figures Figure 1. Simulation With 32 ms Echo Tail and 16-Bit Filter Coefficients.......................... 4 Figure 2. Simulation With 48 ms Echo Tail and 16-Bit Filter Coefficients.......................... 5 Figure 3. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 32 ms Echo Tail.............. 5 Figure 4. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 48 ms Echo Tail.............. 6 Figure 5. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 64 ms Echo Tail.............. 6 Figure 6. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 48 Echo Tail................. 7 Figure 7. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 64 ms Echo Tail.............. 7 1 Introduction In a digital implementation of the LMS algorithm, the adjustable filter coefficients and the signal levels are quantized to within a least significant digit. By doing so, we introduce an additional error, quantization error. The effect of quantization error in the filter coefficient is of particular interest because it determines the choice of the processor to be used in the implementation to meet the application requirements. We will focus our discussion on the effects of finite filter coefficient precision on the LMS algorithm performance in line echo cancellation using TMS32C621 digital processor. The study is conducted through theoretical analysis and computer simulation. The error in signal quantization is considered negligible for the simplicity of discussion. 1

2 Theoretical Analysis In this analysis, a transversal FIR filter is used to predict the echo from the history of the far-end signal, and the echo residue is calculated as: e(n) d(n) 1 A M 1 H k (n)x(n k) k where e(n) is the value of residue at time n, d(n) is the value of echo at time n, H k (n) is the kth filter coefficient at time n, and x(n k) is the value of the far-end signal at time n k. M is the length of the filter, which is determined by the echo tail length. A is the normalizing factor such that the filter output will have the same precision as d(n). The flter is updated by the LMS algorithm as: H k (n 1) H k (n) e(n)x(n k) where µ is the adaptation step size. (1) (2) For the leaky LMS algorithm, the filter is updated by: H k (n 1) H k (n) e(n)x(n k) (3) where β 1 is the leaky factor, which is introduced to acquire more control of the filter response. There are primarily two effects due to the quantization error in filter coefficients. The first effect is the accuracy degradation in the calculation of echo prediction due to the quantization error in filter coefficients. Assume the following model for the filter coefficients H k : H k H k e k where e k is the error term. The filter output is calculated as (4) y 1 A M 1 H k x k 1 A M 1 H k x k 1 A M 1 e k x k k k k (5) In order to evaluate the error term 1 A M 1 e k x k, e k and x k are assumed to be k independent random variables with zero mean value such that its variance is given by 2 1 A 2 M 2 e 2 x and 1 A M e x (6) (7) For filter coefficients with precision (using TMS32C621), the final result of the accumulation of products are normally shifted right by (A = 65536) to form a filter output with the same precision of the echo signal d(n). Since G.165/G.168 specification requires that echo residue is about 3 db below the far end input signal level, the quality of cancellation is guaranteed as long as x 31.6 (8) 2 Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation

As an example, we assume that e k is uniformly distributed in {.5,.5}, and x k is treated as a full strength PCM signal uniformly distributed in { 496,496}. For a channel with 48ms echo tail ( M=384), we have 1 384 1 496 2.24 (9) 65536 12 3 Since the 99% confidence interval of the error term 3.612 is less than 1, even the LSB of the filter output would not be affected. The error introduced by filter coefficient quantization is negligible in computing the filter output. For a channel with 64ms echo tail, M=512. 1 512 1 496 2.25 (1) 65536 12 3 Since the 99% confidence interval of the error term 3.75 is less than 1, the error introduced by filter coefficient quantization is negligible in computing the filter output for the same reason. The second effect of the filter coefficient quantization is the early digital cutoff of the algorithm. In a quantized LMS filter, the algorithm will stop making any further adjustment to the filter coefficients when the correction term µe(n) x (n k) in equation 2 is less in magnitude than half of the filter coefficients quantization interval. The performance would be degraded because the adaptation is terminated by quantization effect. The LMS algorithm will continue to adapt if e(n) x (n k 2 B 1 where B is the number of bits used to represent the filter coefficients. This condition can be approximated by replacing the magnitude by its RMS value. That is, e x 2 B 1 It was shown in [1] that for a M-tap LMS filter in a severely distorted channel, the maximum permissible value of the adaptation step size is given as max 1 M 2 x It is common to set the step size as half of the maximum permissible step size [1] so that, 1 2 B 1 2M x e That is, B 3.322(log 1 M log 1 ( x e )) (15) The above expression indicates that the minimum number bits required for the filter coefficients are proportional to the logarithm of the filter length and signal-to-noise ration requirements. In order to meet ITU G.165 and G.168 specifications, the echo canceller must achieve at least 3 db cancellation (log 1 ( x e ) 1.5 when the filter converges. For a channel with 48 ms echo tail, M=384. The minimum value of B is solved to be 13.6. For a channel with 64 ms echo tail, M=512. The minimum value of B is 14 bits. Filter coefficients with precision seem to be adequate for these applications. (11) (12) (13) (14) Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation 3

3 Simulation Results Several cases of simulation of the leaky LMS algorithm using the code from reference [2] were conducted for 32 ms and 48 ms echo tail. A 5 ms simulation interval is chosen to meet the G.165/G.168 specification. Figure 1 and Figure 2 illustrate the simulation results for 32 ms and 48 ms echo tail at various far-end signal levels. The far-end signal level changes from db (db=496) to 24 db in a 6 db step. It can be seen that the filter for 32 ms echo tail converges after about 2 ms while the filter for 48 ms echo tail converges after about 3 ms. It is because that the adaptation step size has to be smaller for the filter with longer length in order for the adaptive filter to converge. It was shown in [1] that the maximum permissible step size is inversely proportional to the filter length. Cancellation of 32 ms Echo Tail () 12.5 75 137.5 2 262.5 325 387.5 45 3 4 5 6 db 6 db 12 db 18 db 24 db Figure 1. Simulation With 32 ms Echo Tail and 16-Bit Filter Coefficients The simulation results of implementation are also compared to those of implementation in Figure 3, Figure 4, and Figure 5 for echo tails of 32 ms, 48 ms, and 64 ms, respectively. The far-end input signal level in the simulation is chosen at db. The adaptation step size is the same for both implementations. In Figure 6 and Figure 7, the input signal level is set at 3 db in order to illustrate the filter characteristics at low input signal level. No significant discrepancy on convergence rate is observed. This also verified the theory that the number of bits used to represent the filter coefficients does not affect the convergence rate, but only affect the final convergence level. It has been shown that the convergence rate of an LMS algorithm only depends on three factors: the step size, the number of filter taps, and the nature of the input signal [3]. The lower convergence rate at low input signal level could be the contribution of the quantization error in echo residue e(n) when e(n) is very small, which is not related to filter precision. 4 Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation

Cancellation of 48 ms Eco Tail () 12.5 75 137.5 2 262.5 325 387.5 45 3 4 5 db 6dB 12dB 18dB 24 db Adaptation time (ms) Figure 2. Simulation With 48 ms Echo Tail and 16-Bit Filter Coefficients Cancellation of 32 ms Echo Tail (db input) 12.5 75 137.5 2 262.5 325 387.5 45 3 4 5 6 Figure 3. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 32 ms Echo Tail Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation 5

Cancellation of 48 ms Echo Tail (db input) 512.5 75 137.5 2 262.5 325 387.5 45 15 25 3 35 4 45 Adaptation time (ms) Figure 4. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 48 ms Echo Tail Cancellation of 64 ms Echo Tail (db input) 12.5 75 137.5 2 262.5 325 387.5 45 5 15 25 3 35 Figure 5. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 64 ms Echo Tail 6 Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation

Cancellation of 48 ms Echo Tail ( 3dB input) 12.5 75 137.5 2 262.5 325 387.5 45 5 15 25 3 Figure 6. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 48 Echo Tail Cancellation of 64 ms Echo Tail ( 3dB input) 12.5 75 137.5 2 262.5 325 387.5 45 5 15 25 Figure 7. Comparison Between 16-Bit and 32-Bit Filter Coefficients: 64 ms Echo Tail Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation 7

4 Conclusion An analysis of the effect of the LMS filter coefficients quantization error has been presented in this application report. The results of theoretical analysis and computer simulation have shown that the performance of the echo canceler based on filter coefficient will meet G.165/G.168 requirements. 5 References 1. Gitlin and Weinstein, On the Required Tap-Weight Precision for Digitally Implemented Adaptive Mean-Squared Equalizers, Bell System Technical Journal, Vol. 58, No. 2, 1979. 2. Peter Dent, Implementation of Echo Control for G165/DECT on Texas Instruments TMS32C62xx Processors, SPRA576. 3. Simon Haykin, Adaptive Filter Theory, Prentice-Hall, 1986. 8 Analysis of Filter Coefficient Precision on LMS Algorithm Performance for G.165/G.168 Echo Cancellation

IMPORTANT NOTICE Texas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue any product or service without notice, and advise customers to obtain the latest version of relevant information to verify, before placing orders, that information being relied on is current and complete. All products are sold subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those pertaining to warranty, patent infringement, and limitation of liability. TI warrants performance of its semiconductor products to the specifications applicable at the time of sale in accordance with TI s standard warranty. Testing and other quality control techniques are utilized to the extent TI deems necessary to support this warranty. Specific testing of all parameters of each device is not necessarily performed, except those mandated by government requirements. Customers are responsible for their applications using TI components. In order to minimize risks associated with the customer s applications, adequate design and operating safeguards must be provided by the customer to minimize inherent or procedural hazards. TI assumes no liability for applications assistance or customer product design. TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right of TI covering or relating to any combination, machine, or process in which such semiconductor products or services might be or are used. TI s publication of information regarding any third party s products or services does not constitute TI s approval, warranty or endorsement thereof. Copyright 2, Texas Instruments Incorporated