# Raised Cosine Filters

## Introduction

A raised cosine filter is a low-pass filter which is commonly used for pulse shaping in data transmission systems (e.g. modems). The frequency response |H(f)| of a perfect raised cosine filter is symmetrical about 0 Hz, and is divided into three parts (just like Gallia): it is flat (constant) in the pass-band; it sinks in a graceful cosine curve to zero through the transition region; and it is zero outside the pass-band. The response of a real filter is an approximation to this behaviour.

The equations which defined the filter contain a parameter ``beta'', which is known as the roll-off factor or the excess bandwidth. ``beta'' lies between 0 and 1.

I'd like to show you the equations which define the frequency-domain and time-domain response, but HTML is not up to it. If you can view PostScript, you can see the equations here, or consult Proakis.

## Design

The filter is designed as a finite-impulse-response (FIR) filter. You specify the length of the impulse response; that is equal to the number (n, say) of x coefficients in the ``C'' code. The filter will have:

• n - 1 zeros, and
• n - 1 poles at z = 0, just for causality.

Here we go:

We need to know the sample rate (in samples per second).
Sample rate:

Enter corner frequency ``alpha'', in Hz. This is the frequency at which the response is 0.5 = -6 dB (unless you select ``square root'' below, in which case it's -3 dB). In a pulse-shaping application, ``alpha'' is half the baud rate.
Corner frequency:

Enter the value of ``beta'', in the range 0 to 1:

Enter the length of the finite-impulse response, in samples. A suggested starting value is

• 4 × (sample rate / corner frequency) + 1 .

The larger the value, the more accurate the filter, but the slower its execution.
Impulse length:

Do you want the filter to include x / sin x compensation for the step output of real-life DACs? You may select the raised-cosine response and the compensation individually. Tick (check) the ``Sqrt'' button for a square-root raised-cosine response.

•  Raised-cosine response: Yes Sqrt No Compensation function: Yes No

You may apply a Hamming window to the time-domain impulse response. This can improve the frequency-domain response by significantly reducing the amplitude of the sidelobes, but for short filters it can distort the shape of the response in the passband. Tick (check) here to apply windowing:

If you are going to execute the generated filter on a fixed-point processor, you will want to know how the filter behaves when the coefficents are truncated to n bits. To find out, enter the value of n in the box. (If you are not interested in this feature, leave the field blank. For more information, click here.)
Truncate coefficients to bits

By default, the frequency response graph has a linear magnitude scale. If that is what you want, leave the following box blank. If you want a logarithmic magnitude scale in dB, enter the lower limit of the magnitude scale in dB here (e.g. -80).
Lower limit (dB), or blank for linear scale:

Submit form:

Reset form:

Tony Fisher / fisher@minster.york.ac.uk

 file: /Techref/uk/ac/york/cs/www-users/http/~fisher/mkfilter/racos.htm, 4KB, , updated: 2000/6/29 18:32, local time: 2022/8/9 18:30, TOP NEW HELP FIND:  3.238.204.167:LOG IN

 ©2022 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?Please DO link to this page! Digg it! / MAKE! Raised Cosine Filters

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
 Did you find what you needed? "No. I'm looking for: " "No. Take me to the search page." "No. Take me to the top so I can drill down by catagory" "No. I'm willing to pay for help, please refer me to a qualified consultant"

 PICList 2022 contributors: o List host: MIT, Site host massmind.org, Top posters @20220809 * Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr.

.