Code covered by the BSD License  

Highlights from
Echo Canceller Workbook targeting a dsPIC

image thumbnail

Echo Canceller Workbook targeting a dsPIC

by

 

22 Jan 2008 (Updated )

This set of models and word documents show an echo canceller development workflow.

near_to_mic_filt_ws_0p6
function Hd = near_to_mic_filt_ws_0p6
%NEAR_TO_MIC_FILT_WS_0P6 Returns a discrete-time filter object.

%
% M-File generated by MATLAB(R) 7.4 and the Signal Processing Toolbox 6.7.
%
% Generated on: 08-Aug-2007 14:30:51
%

% Equiripple Lowpass filter designed using the FIRPM function.

% All frequency values are normalized to 1.
%   Copyright 2008 The MathWorks, Inc.

Fpass = 0.35;             % Passband Frequency
Fstop = 0.6;              % Stopband Frequency
Dpass = 0.0057563991496;  % Passband Ripple
Dstop = 0.001;            % Stopband Attenuation
dens  = 20;               % Density Factor

% Calculate the order from the parameters using FIRPMORD.
[N, Fo, Ao, W] = firpmord([Fpass, Fstop], [1 0], [Dpass, Dstop]);

% Calculate the coefficients using the FIRPM function.
b  = firpm(N, Fo, Ao, W, {dens});
Hd = dfilt.dffir(b);

% [EOF]

Contact us