Sign in

username:

password:



Not a member?

Search compdsp



Search tips

comp.dsp by Keywords

Adaptive Filter | ADPCM | ADSP | ADSP-2181 | Aliasing | AMR | Anti-Aliasing | ARMA | Autocorrelation | AutoCovariance | Beamforming | Bessel | Blackfin | Butterworth | C6713 | CCS | Chebyshev | CIC Filter | Circular Convolution | Code Composer Studio | Comb Filter | Compression | Convolution | Cross Correlation | DCT | Decimation | Deconvolution | Demodulation | DM642 | DSP Boards | DSP/BIOS | DTMF | Echo Cancellation | Equalization | Equalizer | ETSI | EZLITE (Ez-kit Lite) | FFT | FFTW | FIR Filter | Fixed Point | FSK | G.711 | G.723 | G.729 | Gaussian Noise | Goertzel | GPIO | Hilbert Transform | IFFT | IIR Filter | Interpolation | Invariance | JTAG | Kalman | Laplace Transform | Levinson | LPC | McBSP | MIPS | Modulation | MPEG | Multirate | Notch Filter | Nyquist | OFDM | Oversampling | Pink Noise | Pitch | PLL | Polyphase | QAM | QDMA | Quantization | Quantizer | Radar | Random Noise | Reed Solomon | Remez | Resampling | RTDX | Sampling | Sharc | TI C6711 | Undersampling | Viterbi | Wavelets | White Noise | Wiener Filter | Windowing | XDS510PP | Z Transform

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

Free Online Books

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | Comp.DSP | Help: Phase Delay of Butterworth Filters

There are 4 messages in this thread.

You are currently looking at messages 0 to 4.


Help: Phase Delay of Butterworth Filters - Stewart - 2004-04-02 02:42:00

Hi All,

Hoping someone can help me out.  I'm working with Butterworth Filters
and have some great equations for calculating the coefficients as a
function of cut-off frequency:

http://www.planetanalog.com/showArticle.jhtml?articleID=12802683&pgno=3

However I need a function which gives me the phase delay of the filter
as a function of cut-off frequencies.  For example, a second order
Butterworth Filter (Low Pass) with a cut-off frequency of 0.05 has a
lag (phase shift) of ??? radians.

Hope someone has a formula for this.  If it was genereric for N-Order
that would be best.

Regards,

Stewart
______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Help: Phase Delay of Butterworth Filters - Jerry Avins - 2004-04-02 10:51:00



Stewart wrote:

> Hi All,
> 
> Hoping someone can help me out.  I'm working with Butterworth Filters
> and have some great equations for calculating the coefficients as a
> function of cut-off frequency:
> 
> http://www.planetanalog.com/showArticle.jhtml?articleID=12802683&pgno=3
> 
> However I need a function which gives me the phase delay of the filter
> as a function of cut-off frequencies.  For example, a second order
> Butterworth Filter (Low Pass) with a cut-off frequency of 0.05 has a
> lag (phase shift) of ??? radians.
> 
> Hope someone has a formula for this.  If it was genereric for N-Order
> that would be best.
> 
> Regards,
> 
> Stewart

The phase performance of a digital Butterworth filter varies not only 
with the particular frequency in the passband, but also with the ratio 
of cut-off to sampling frequencies. It's not just one number.

Jerry
-- 
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Help: Phase Delay of Butterworth Filters - Jon Harris - 2004-04-02 13:34:00

"Jerry Avins" <j...@ieee.org> wrote in message
news:406d8bf0$0$3057$6...@news.rcn.com...
> Stewart wrote:
>
> > Hi All,
> >
> > Hoping someone can help me out.  I'm working with Butterworth Filters
> > and have some great equations for calculating the coefficients as a
> > function of cut-off frequency:
> >
> > http://www.planetanalog.com/showArticle.jhtml?articleID=12802683&pgno=3
> >
> > However I need a function which gives me the phase delay of the filter
> > as a function of cut-off frequencies.  For example, a second order
> > Butterworth Filter (Low Pass) with a cut-off frequency of 0.05 has a
> > lag (phase shift) of ??? radians.
> >
> > Hope someone has a formula for this.  If it was genereric for N-Order
> > that would be best.
> >
> > Regards,
> >
> > Stewart
>
> The phase performance of a digital Butterworth filter varies not only
> with the particular frequency in the passband, but also with the ratio
> of cut-off to sampling frequencies. It's not just one number.

When the OP mentioned sample rate ("0.05"), since no units were given, I assumed
this was normalized to the sample rate.  If that is indeed the case, then the
order and normalized cut-off would be enough to calculate the phase shift vs.
frequency.

However, it is not a simple calculation, especially for higher orders.  In the
past, when I've needed this, I've started with the s-domain transfer function,
and just worked it out with brute-force algebra (substitute s = jw, separate
real/imaginary parts, take the arctan of imaginary/real).  I also found I had to
do some pre-warping correction for improved accuracy near the Nyquist frequency.
It was messy and ugly and what I came up with wasn't that general--only did 1st
and 2nd order filters.  However, if you have that, you can work out the higher
order filters by first decomposing them to 1st/2nd order sections (factoring)
and then simply summing the phase responses.

Probably there is a better way to do this directly in the z-domain, but I don't
know how.  That's the way Matlab does it.  If you don't have Matlab, then you'd
probably at least want to use Excel or some other tool for crunching the
numbers.


______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.

Re: Help: Phase Delay of Butterworth Filters - Jerry Avins - 2004-04-02 13:48:00

Jon Harris wrote:

   ...

> When the OP mentioned sample rate ("0.05"), since no units were given, I assumed
> this was normalized to the sample rate.  If that is indeed the case, then the
> order and normalized cut-off would be enough to calculate the phase shift vs.
> frequency.

I assumed that too, and .05 makes agreement between the digital filter
and its analog prototype very good. The OP seemed to want a single
number, though, not a function of frequency. If that's the case, the
rest of any discussion is beside the point. Let's wait to hear from him.

   ...

Jerry
-- 
Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

______________________________
New DSP Code Snippets Section now Live.   Learn more about the reward program for contributors here.