Journal of Theoretical and Applied Information Technology 20 th July Vol. 65 No JATIT & LLS. All rights reserved.

Similar documents
Digital Signal Processing Laboratory 7: IIR Notch Filters Using the TMS320C6711

International Journal of Engineering Research-Online A Peer Reviewed International Journal

Experiment 2: Sampling and Quantization

Rapid prototyping of of DSP algorithms. real-time. Mattias Arlbrant. Grupphandledare, ANC

IMPLEMENTATION AND ANALYSIS OF FIR FILTER USING TMS 320C6713 DSK Sandeep Kumar

Implementation of Graphical Equalizer using LabVIEW for DSP Kit DSK C6713

Real-time EEG signal processing based on TI s TMS320C6713 DSK

Embedded Signal Processing with the Micro Signal Architecture

An Improved Recursive and Non-recursive Comb Filter for DSP Applications

Design and VLSI Implementation of Oversampling Sigma Delta Digital to Analog Convertor Used For Hearing Aid Application

DSP in Communications and Signal Processing

1.1 Digital Signal Processing Hands-on Lab Courses

Multirate Digital Signal Processing

PC-based Personal DSP Training Station

Low-Cost Personal DSP Training Station based on the TI C3x DSK

Design and Implementation of Partial Reconfigurable Fir Filter Using Distributed Arithmetic Architecture

Chapter 3. Basic Techniques for Speech & Audio Enhancement

An Lut Adaptive Filter Using DA

FPGA Hardware Resource Specific Optimal Design for FIR Filters

Keywords Xilinx ISE, LUT, FIR System, SDR, Spectrum- Sensing, FPGA, Memory- optimization, A-OMS LUT.

FPGA Realization of Farrow Structure for Sampling Rate Change

Distributed Arithmetic Unit Design for Fir Filter

A First Laboratory Course on Digital Signal Processing

DDC and DUC Filters in SDR platforms

Memory efficient Distributed architecture LUT Design using Unified Architecture

DHANALAKSHMI COLLEGE OF ENGINEERING Tambaram, Chennai

Multiband Noise Reduction Component for PurePath Studio Portable Audio Devices

Experiment # 5. Pulse Code Modulation

COMPUTERS IN EDUCATION JOURNAL 2

Digital Fundamentals. Introduction to Digital Signal Processing

Reconfigurable FPGA Implementation of FIR Filter using Modified DA Method

Audio Signal Processing Studio Remote Lab for Signals and Systems Class

inter.noise 2000 The 29th International Congress and Exhibition on Noise Control Engineering August 2000, Nice, FRANCE

PROVIDING AN ENVIRONMENT TO TEACH DSP ALGORITHMS. José Vieira, Ana Tomé, João Rodrigues

Performance Analysis and Behaviour of Cascaded Integrator Comb Filters

FPGA Implementation of Optimized Decimation Filter for Wireless Communication Receivers

Design & Simulation of 128x Interpolator Filter

ECE438 - Laboratory 4: Sampling and Reconstruction of Continuous-Time Signals

Hugo Technology. An introduction into Rob Watts' technology

Experiment: FPGA Design with Verilog (Part 4)

REAL-TIME DIGITAL SIGNAL PROCESSING from MATLAB to C with the TMS320C6x DSK

DH400. Digital Phone Hybrid. The most advanced Digital Hybrid with DSP echo canceller and VQR technology.

Single Channel Speech Enhancement Using Spectral Subtraction Based on Minimum Statistics

LabView Exercises: Part II

Radar Signal Processing Final Report Spring Semester 2017

Investigation of Digital Signal Processing of High-speed DACs Signals for Settling Time Testing

Introduction To LabVIEW and the DSP Board

1ms Column Parallel Vision System and It's Application of High Speed Target Tracking

TV Synchronism Generation with PIC Microcontroller

Inside Digital Design Accompany Lab Manual

Enhancing the TMS320C6713 DSK for DSP Education

Low-Power Decimation Filter for 2.5 GHz Operation in Standard-Cell Implementation

Session 1 Introduction to Data Acquisition and Real-Time Control

MUSICAL APPLICATIONS OF NESTED COMB FILTERS FOR INHARMONIC RESONATOR EFFECTS

Video Surveillance *

Effect of Compensation and Arbitrary Sampling in interpolators for Different Wireless Standards on FPGA Platform

Digital Signal Processing Detailed Course Outline

TERRESTRIAL broadcasting of digital television (DTV)

Area-Efficient Decimation Filter with 50/60 Hz Power-Line Noise Suppression for ΔΣ A/D Converters

Figure 1: Feature Vector Sequence Generator block diagram.

DELTA MODULATION AND DPCM CODING OF COLOR SIGNALS

Digital Correction for Multibit D/A Converters

Optimized design for controlling LED display matrix by an FPGA board

NON-UNIFORM KERNEL SAMPLING IN AUDIO SIGNAL RESAMPLER

Design of an Error Output Feedback Digital Delta Sigma Modulator with In Stage Dithering for Spur Free Output Spectrum

Adaptive Fir Filter with Optimised Area and Power using Modified Inner-Product Block

Suverna Sengar 1, Partha Pratim Bhattacharya 2

Study of White Gaussian Noise with Varying Signal to Noise Ratio in Speech Signal using Wavelet

Lab 1 Introduction to the Software Development Environment and Signal Sampling

LUT Design Using OMS Technique for Memory Based Realization of FIR Filter

An Introduction to Hardware-Based DSP Using windsk6

Implementation of a turbo codes test bed in the Simulink environment

DMC550 Technical Reference

Designing Fir Filter Using Modified Look up Table Multiplier

Guidance For Scrambling Data Signals For EMC Compliance

AN 623: Using the DSP Builder Advanced Blockset to Implement Resampling Filters

News from Rohde&Schwarz Number 195 (2008/I)

Implementation of Area Efficient Memory-Based FIR Digital Filter Using LUT-Multiplier

DESIGN PHILOSOPHY We had a Dream...

Optimization of Multi-Channel BCH Error Decoding for Common Cases. Russell Dill Master's Thesis Defense April 20, 2015

Acoustic Measurements Using Common Computer Accessories: Do Try This at Home. Dale H. Litwhiler, Terrance D. Lovell

Vocoder Reference Test TELECOMMUNICATIONS INDUSTRY ASSOCIATION

Clock Jitter Cancelation in Coherent Data Converter Testing

Upgrading E-learning of basic measurement algorithms based on DSP and MATLAB Web Server. Milos Sedlacek 1, Ondrej Tomiska 2

Noise Cancellation in Gamelan Signal by Using Least Mean Square Based Adaptive Filter

LUT OPTIMIZATION USING COMBINED APC-OMS TECHNIQUE

Quartzlock Model A7-MX Close-in Phase Noise Measurement & Ultra Low Noise Allan Variance, Phase/Frequency Comparison

An Enhancement of Decimation Process using Fast Cascaded Integrator Comb (CIC) Filter

FPGA Implementation of DA Algritm for Fir Filter

PEP-II longitudinal feedback and the low groupdelay. Dmitry Teytelman

Chapter 6: Real-Time Image Formation

Design on CIC interpolator in Model Simulator

Embedded Signal Processing with the Micro Signal Architecture

Department of Electrical & Electronic Engineering Imperial College of Science, Technology and Medicine. Project: Real-Time Speech Enhancement

Retiming Sequential Circuits for Low Power

Analysis of Different Pseudo Noise Sequences

FPGA DESIGN OF CLUTTER GENERATOR FOR RADAR TESTING

AND8383/D. Introduction to Audio Processing Using the WOLA Filterbank Coprocessor APPLICATION NOTE

Digital Signal Processing

Lab 2: A/D, D/A, and Sampling Theorem

Transcription:

MODELING AND REAL-TIME DSK C6713 IMPLEMENTATION OF NORMALIZED LEAST MEAN SQUARE (NLMS) ADAPTIVE ALGORITHM FOR ACOUSTIC NOISE CANCELLATION (ANC) IN VOICE COMMUNICATIONS 1 AZEDDINE WAHBI, 2 AHMED ROUKHE, 1 LAAMARI HLOU 1 Laboratory of Electrical Engineering and Energy System Faculty of Science, University Ibn Tofail, Kenitra, Morocco 2 Laboratory of Atomic, Mechanical, Photonics and Energy Faculty of Science, University Moulay Ismail, Meknes, Morocco E-mail: wahbi_azeddine@yahoo.fr, a_roukhe@yahoo.fr, hloul@yahoo.com ABSTRACT In this paper a module consisting of a Normalized Least Mean Square (NLMS) filter is modeled, implemented and verified on a digital signal processor (DSP) TMS320C7613 to eliminate acoustic noise, which is a problem in voice communications. However the acoustic noise cancellation (ANC) is modeled using digital signal processing technique especially Simulink Blocksets. The main scope of this paper is to implement the module onboard an autonomous DSK C6713 in real time, benefiting to the low computational cost and the easy implementation using Simulink programming. The needed DSP code is generated in code composer environment under Real Time Workshop. At the experimental level, implementation phase results verify that implemented module behavior is similar to Simulink model. Keywords: Adaptive Algorithm, Acoustic Noise Cancellation (ANC), Real Time Implementation, Digital Signal Processing, DSK C6713. 1. INTRODUCTION The signal interference initiated by acoustic noise is a major problem in voice communications. However, the longer the channel delay, the more annoying the noise becomes until it renders natural conversation impossible and decreases the perceived quality of the communication service. It is therefore absolutely essential to avoid retransmitting the noise picked-up by the voice gateways [1]. Acoustic Noise Cancellation (ANC) has emerged as an important technology for communication systems. This is then employed to enhance the quality of voice communications by cancellation the undesirable phenomenon, such as acoustic noise. DSPs are processors where hardware, software, and instruction sets are optimized for high-speed numeric processing applications, somewhat essential for processing digital data and representing analog signals in real time. Also, the TMS320C6x (C6x) processor family are fast special-purpose microprocessors with a specialized type of architecture as they feature appropriate instruction set based on a very-long-instructionword (VLIW) architecture for signal processing. This family is a form of embedded design that is one of the hottest spot in the field of signal processing and is considered to be the workhorse of choice for many applications. Different works involving the noise cancellation adaptive algorithm developed across this paper are presented [2-3-4-5-6]. In this work, the method used to achieve noise cancellation is known as adaptive filtering. This method is frequently used to enhance communication quality by removing line noise. This is why adaptative filters were developed and tested long before on analog bench platforms until a digital based technique breakthrough emerged, the DSP. This new technique allows better signal filtering design and found its benefits in High Fidelity audio systems or speech networks. 312

This paper will focus on the software based NLMS adaptive algorithm to remove noise in voice communication systems. The Acoustic Noise Cancellation (ANC) is modeled in Simulink using digital filters, especially adaptive Normalized Least Mean Square (NLMS) algorithm. Finally the realtime characteristics of this module are verified on a Digital Signal Processor (DSP) TMS 320 C6713. The paper is structured as follows: section II presents digital adaptive filters for noise cancelling, section III presents the DSK TMS320C6713 card, section IV presents simulation results, Section V presents module design and Section VI concludes this paper. 2. DIGITAL ADAPTIVE FILTERS FOR NOISE CANCELLING Developing a filter that is able to comply with the statistics of the signal is the main scope of adaptive filtering. Adaptive algorithm efficiency depends on three criteria that size up: The complexity of computation and the amount of computation executed at each stage. The behavior of speed adjustment that permits an adaptive filter to reach Weiner solution. The estimated error generated by the dissimilarity between the actual Weiner solution and the adaptive algorithm resolution. Adaptive cancellation of noise is the main pattern of adaptive filters. 2.1 Adaptive Filters In this section we first go through an examination of the filter structure with an emphasis on Finite Impulse Reponses (FIR) filters. This is followed by a review of the Wiener filter leading to the development of the Least Mean Squares (LMS) algorithm. A noise canceller is a closed loop linear adaptive filter used for direct system modeling. (Fig 1) There are many different combinations of filters and algorithms, depending on the requirements of a particular application, from Finite Impulse Response (FIR) to Infinite Impulse Response (IIR) filters, from Least Mean Squares (LMS) to Recursive Least Squares (RLS) algorithms. For noise cancellation, there is a classical standard adaptive filter formation. The filter part is made up of the most commonly used structure: a FIR filter which is also known as a tapped delay line, nonrecursive or feed-forward transversal filter, as shown in Fig 2. Figure 1: FIR filter structure The FIR filter consists of a series of delays, multipliers and adders; has one input, x(n), and one output, y(n). The output is known to be a linear combination of the delayed input samples: N 1 y( n) = w ( n) x( n k) (1) k = 1 K Where w(n) are the filter coefficients and N is the filter length. Therefore y(n) is the convolution (inner product) of the two vectors w(n) and x(n). This output represents the estimated noise. Figure 2: Adaptive filter structure 2.2 Adaptive Noise Cancellation Among adaptive filters practice, we found the adaptive noise canceller. Fig 3 describes its structure where the requested response is composed of an original signal distorted by the noise, which is uncorrelated with that signal. The filter input is a sequence of a noised signal which is correlated with the noised signal in the desired signal. By using the NLMS algorithm within the adaptive filter, the error term e(n) produced by this system is therefore the original signal with the noise signal cancelled [7]. 313

y( n) = w ( n). x( n) (2) e( n) = d ( n) y( n) (3) w ( n + 1) = w ( n) + µ x( n) e( n) (4) x( n) * w( n + 1) = w( n) + µ e ( n) (5) β + 2 x( n) The variables are as follows. Figure 3: Block diagram of the acoustic Noise canceller 2.3 NLMS Algorithm The NLMS Filter block shown in Fig 4 implements an adaptive recursively least-square (NLMS) filter, where the adaptation of filter weights occurs once for every block of samples. The block estimates the filter weights, or coefficients, needed to convert the input signal into the desired signal. Connect the signal you may want to filter to the Input port. This input signal can be a sample-based scalar or a single-channel frame-based signal. Connect the signal you expect to model to the desired port. The desired signal must have the same data type, frame status, complexity, and dimensions as the input signal. The Output port outputs the filtered input signal, which might be sample or frame based. The Error port outputs the result of subtracting the output signal from the desired signal. Table 1: Table variable of NLMS Filter Variable Description n Actual algorithm step x(n) Input at step n ŵ(n) Array with of adaptive filter values at step n y(n) Filtered output at step n e(n) Estimated error at step n d(n) Desired answer at step n μ Step to adjust (must fulfill 0 <µ< 2) β Small number inserted in the denominator to avoid division by zero. 3. DSK TMS320C6713 The DSK TMS320C6713 (Figs. 5 and 6) is a development board from Texas Instruments. It contains the C6713 floating-point digital signal processor (DSP) and a 32 bit stereo codec (AIC23) to handle input and output signals. The AIC23 codec uses a sigma-delta technology that provides Analog to Digital Conversion (ADC) and Digital to Analog Conversion (DAC) [10]. To develop this application the board must be connected to a PC host, and because it offers a 225 MHz system clock, the variable sampling rates can be set from 8 to 96 khz. Figure 4: NLMS Filter block [8] Widrow et al [9] formulated the LMS algorithm for obtaining the minimum output power. Hence, we define the primary input signal to be a delayed one. We then apply the following modified normalized LMS algorithm which Tracks the most suitable solution. 4. SIMULATION RESULTS 4.1 Noise Canceller Modeling Under Simulink The overall performance of the module is guaranteed as shown in Fig 7. 314

Figure 5: DSK TMS320C6713 board Figure 6: DSK TMS320C6713 block diagram Figure 7: Noise cancelation under Simulink 4.2 Simulink Results In the following graphics, we observe the input signal, the original signal affected by noise (Figs. 8,9 et 10) and how this noise is removed from the original signal after crossing by the noise cancellation NLMS Filter module. In this work we modeled the system under Simulink Blockset. We also used an audio data with 8000 Hz sampling rate. ANC implementation is setup with NLMS adaptive filter of length 32. The 315

variable step size is chosen as µ = 0.002. Figure 8: Result obtained using Simulink simulation (Original signal) Figure 9: Result obtained using Simulink simulation (Noised signal) Figure 10: Result obtained using Simulink simulation (Filtered Output) The effect of modifying the Variable step size, the filter length, the delay value on the convergence rate and obtainable performance is tested [11], [12]. The noise signal is switched between an input signal - a wav file - and a square wave. It should be verified that a shorter filter length is required to obtain the desired cancellation while using a wav file as the input signal. Informal hearing tests should prove that the system is working properly: the periodic signal is almost cancelled whereas the speech maintains its regular quality. 5. MODULE DESIGN 5.1 Real Time Implementation and Testing In the following paragraphs, the module implementation on C6713 DSP is discussed. In Layman s terms, the module functionalities are exposed as independent blocks which are thereafter mixed into a single program that integrates C code inside the Code Composer Studio v3.3 (CCS) environment. The CCS compiles it, prepares necessary links, and then loads it into the target processor. Finally, the DSP processes the implemented algorithm and executes the code as shown in fig 11. 316

Figure 11: Real-Time Workshop Program compilation, linking and execution 5.2 Real Time Implementation and Testing Using the work workstation setup (Fig. 12), it has been possible to achieve noise cancelation at the experimental level. Result of implementation phase verifies that implemented module behavior is similar to Simulink model. Figure 12: A typical station setup 317

Figure 13: Real-time Noise canceller system implementation 5.3 Experimental Results In real world application, the module was tested and led to the following results. We notice that this module is a real-time process and that the graphs are similar to those generated using Simulink simulation. The following figures give an idea of what is produced by the module. Then, in order to verify proper switching of the module input, noised and output signals are probed on an analog oscilloscope as illustrated respectively in Figs 14, 15, 16. The Result of Real-time implementation of the NLMS algorithm is carried out with the following specifications: Filter order N=32, Variable step size μ= 0.002 Figure 15: Result of Real-time implementation Noised signal in DSK C6713 with CCS environment Figure 14: Result of Real-time implementation Original signal in DSK C6713 with CCS environment Figure 16: Result of Real-time implementation Filtered output in DSK C6713 with CCS environment 318

6. CONCLUSION In this paper, we have tried to implement a realtime NLMS adaptive filter module within the DSK TMS320C6713 experimentation board. This module, consisting of software blocks rather than electronic blocks, was specifically designed to provide noise cancelation in a voice communications system to achieve ideal sound reproduction as in high-fidelity systems. The NLMS algorithm has a best capacity of tracking the stationary of signals, such as speech or sound, it also has a low computational cost, compared with the recursive algorithme.this algorithm has very high convergence rate with high computational cost, but it is robust for stationary environment. In the future work we will focus on adaptive algorithms with low complexity and high computation speed. REFRENCES: [1] F. Ykhlef and al, Acoustic Echo Cancellation and Suppression of Noise for hands-free communications, 5th International Conference: Sciences of Electronic, Technologies of Information and Telecommunication in Tunisia, March 22-26, 2009. [2] G. Singh, K. Savita, S. Yadav, V. Purwar, Design Of Adaptive Noise Canceller Using Lms Algorithm, International Journal of Advanced Technology & Engineering Research (IJATER), Volume 3, Issue 3, May 2013, pp.85-89. [3] V. J Nayak and M. I Patel, Simulation Of Adaptive Noise Cancellation, Indian Streams Research Journal (ISRJ), Volume 2, Issue. 10, April. 2013, pp.2-7. [4] P. M. Awachat, S.S.Godbole, A Design Approach For Noise Cancellation In Adaptive LMS Predictor Using MATLAB, International Journal of Engineering Research and Applications (IJERA), Vol. 2, Issue4, Julyaugust 2012, pp.2388-2391. [5] S. Singh, and S.S. Sran, Acoustic Noise Cancellation Using Block Lms Filter In Matlab Simulink, IJCSC, Vol. 3, No. 1, January-June 2012, pp. 183-186. [6] J.Jebastine, Dr. B. Sheela Rani, Implementation of block least mean square adaptive algorithm for effective noise cancellation in speech signal, International Journal of Electrical and Electronics Engineering Research, Vol.1, Issue.1, 2011, pp.1-11. [7] Woon-Seng Gan and Sen M. Kuo. 2007. Embedded Signal Processing with the Micro Signal Architecture in Wiley. [8] The Mathworks Inc., Matlab and Simulink User s Guide, 2012. [9] B. Widrow and al, Adaptive Noise Cancelling: Principals and Applications, Proceeding of the IEEE, vol. 63, No. 12, pp.1692 1716, Dec. 1975. [10] Chassaing.R. 2005..Digital Signal Processing and Applications with the C6713 and C6416 DSK in Wiley. [11] S. K. Dhull and all, Performance Comparison of Adaptive Algorithms for Adaptive line Enhancer, IJCSI International Journal of Computer Science Issues, Vol. 8, Issue 3, No. 2, May 2011, pp.553-558. [12] R. Thenua, S.K. Agarwal, Simulation And Performance Analyasis Of Adaptive Filter In Noise Cancellation, International Journal of Engineering Science and Technology, Vol. 2(9), 2010, 4373-4378. 319