4.1

Filter Order:

The order of a filter is the order of its transfer function. If the filter order is increased (i.e. a first order low-pass to a second-order low-pass), a sharper transition between the stopband and passband of the filter is possible.

Example: For the two low-pass filters, determine circuit parameters such that (fc) is 100 Hz, and GDC is . Plot transfer function magnitudes and observe the transition near fc.

Transfer functions are:

First-order filter:Second order filter:

GDC = 1+Rf / R1For GDC = K=

fc = 1 / (2RC)fc = 1 / (2RC) (Not valid for any other value of K.

The value of K was contrived so the cutoff wouldcome out this way). For a generalK value fc =  / (2RC) , where . Why are there 4 distinct possible values that can be obtained for the cut-off frequency?

Matlab Plots:

w = [0:1024]*2*pi;

p = j*w;

h1 = (3-sqrt(2)) ./ (1 + (p / (2*pi*100)));

h2 = (3-sqrt(2)) ./ (1 + (sqrt(2)*p / (2*pi*100)) + ( p / (2*pi*100)) .^2);

figure(1)

plot(w/(2*pi),abs(h1),'b-', w/(2*pi), abs(h2), 'b:')

title('first order (-), second order (---)')

xlabel('Hz')

ylabel('gain')

Useful Circuits:

Describe the transfer functions of these circuits:

Non-Inverting Op Amp: (gain = 1 + Rf / R1)Inverting Op Amp: (gain = - Rf / R1)

Voltage Follower: (gain = 1)

Cascading Filter Stages with no Loading Effects:

Given two active filter circuits with transfer functions and , a circuit composed of these circuits connected in series has a transfer function equal to the product of the individual circuit transfer functions , provided that the connection of these circuits does not significantly alter the output resistance of the first circuit or the input resistance of the second circuit (i.e. no loading effects).

Example: Sketch the transfer function magnitude of a first-order low-pass filter (with GDC = 2 and fc = 1 kHz) in series with a second order band-reject filter ( with f0 = 500 Hz, B = 200 Hz, and GDC = G = 1 ).

Other Useful Circuits:

Describe the transfer functions of these circuits.

The summing amp:The differential amp:

Adding Outputs of Filter Stages:

Given two filter circuits with transfer functions and , a circuit composed of these circuits connected in parallel with a common input and their outputs summed together (through a summing amp) has a transfer function equal to the scaled sum of the individual transfer functions , provided that the connection of these circuits does not significantly alter the output resistance or input resistance of these circuits (i.e. no loading effects).

Matlab Example:

Given 3 second-order band-pass filters with center frequencies 300, 1000, 3000 Hz, bandwidths 200, 500, 600 Hz, and gains at resonance of 1, 1.5, 5, respectively. Connect the filters so they have a common input and their outputs are fed into a summing amp with input resistors 10k, 8k, and 20 k corresponding respectively to the outputs of the 3 band-pass filters. The feedback resistor is 80 k. Plot the resulting transfer function magnitude.

% This script will plot the sum of 3 band-pass filters.

% The range of interest will correspond to the center frequencies,

% so plotfromabout a decade before 300 to a decade after 3000

% (let's say 10 - 10,000 Hz)

f = logspace(1, 4, 256); % Create Frequency Axis

p = j*f*2*pi;

% Compute Individual Transfer Functions

h1 = (200*2*pi)*p ./ (p.^2 + 200*2*pi*p + (2*pi*300)^2);

h2 = 1.5*(500*2*pi)*p ./ (p.^2 + 500*2*pi*p + (2*pi*1000)^2);

h3 = 5*(600*2*pi)*p ./ (p.^2 + 600*2*pi*p + (2*pi*3000)^2);

% Sum Transfer Functions Together

ht = -(80/10)*h1 - (80/8)*h2 - (80/20)*h3;

figure(1)

semilogx(f, 20*log10(abs(ht)), '.b') % Plot the sum

xlabel('Frequency (Hz)')

ylabel('TF Magnitude in dB')

grid

hold % Hold current plot so others can be plotted on top

semilogx(f, 20*log10(abs(h1)), '-b');

semilogx(f, 20*log10(abs(h2)), ':b');

semilogx(f, 20*log10(abs(h3)), '-.b');

Title('Magnitude of the sum of 3 bandpass filters')

hold off % Remove hold on plot

Matlab Example:

Given 2 first order low-pass filters both with cut-off frequencies at 10000 Hz, and gains at DC of10and 5. Connect the filters in series so that there are no significant loading effects. Plot the magnitudes of the individual filters and the resultant.

% This script will plot the product of 2 lowpass filters.

% The range of interest will go from near DC to about a decade after

% The cutoff frequency 10000

f = logspace(1, 5, 256); % Create Frequency Axis

p = j*f*2*pi;

wc = 2*pi*10000;

% Compute Individual Transfer Functions

h1 = 10 ./ ((p/wc) + 1);

h2 = 5 ./ ((p/wc) +1);

% Multiply Transfer Functions Together

hp = h1.*h2;

figure(1)

semilogx(f, 20*log10(abs(hp)), '.b') % Plot the product

xlabel('Frequency (Hz)')

ylabel('TF Magnitude in dB')

grid

hold % Hold current plot so others can be plotted on top

semilogx(f, 20*log10(abs(h1)), '-b');

semilogx(f, 20*log10(abs(h2)), '-.b');

Title('Magnitude of the product of 2 low-pass filters')

hold off % Remove hold on plot