22.09.2015 Views

of Microprocessors

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

Musical-Applications-of-Microprocessors-2ed-Chamberlin-H-1987

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

482 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

INPUT 0-""""' ....-.<br />

(8)<br />

C<br />

AP'""""~~OUTPUT<br />

F=_Ic<br />

2"RloakC<br />

GAIN= Rloak<br />

Rgain<br />

Fig. 14-1. Analog R-C filters. (A) Passive implementation. (B) Active implementation.<br />

zero phase shift at all passband frequencies is asking exactly that. For example,<br />

if the filter were presented the first three samples <strong>of</strong> a low-frequency yet<br />

high-amplitude wave, it would have no way <strong>of</strong> "knowing" whether it really<br />

was part <strong>of</strong> a low-frequency cycle or part <strong>of</strong> a high-frequency but lowamplitude<br />

cycle without further data. Zero phase shift implies that such a<br />

decision is made immediately and the samples either pass to the output or are<br />

blocked. Linear phase shift, which implies constant time delay independent <strong>of</strong><br />

frequency, however, is readily available. Note that for filtering outside <strong>of</strong> real<br />

time this constraint can be effectively overcome by delaying everything else<br />

to match.<br />

Digital filtering, like other aspects <strong>of</strong> digital signal processing, can be<br />

highly mathematical. After all, a digital filter is nothing more than a<br />

mathematical function that accepts a string <strong>of</strong> input numbers and provides a<br />

string <strong>of</strong> output numbers. In this chapter, however, digital filters will be<br />

discussed as a natural outgrowth <strong>of</strong> fundamental analog filtering circuits.<br />

Later, an intuitive approach will be used to discuss filters with an arbitrary<br />

amplitude response shape. It should be noted that many <strong>of</strong> the filtering<br />

concepts mentioned here are equally applicable to analog filtering and some<br />

in fact were not mentioned in the sections on analog filtering.<br />

Digital Equivalents <strong>of</strong> Analog Filters<br />

The simplest analog filters consist <strong>of</strong> just two components: a resistor<br />

and a capacitor. These can be configured in two ways to provide single-pole<br />

(6 dB/octave) low-pass or high-pass filters. For the moment, we will concentrate<br />

on the low-pass circuit.<br />

Back in Chapter 6, it was shown that the exact same R-C low-pass<br />

response could be obtained with an op-amp and an R-C feedback circuit such<br />

as in Fig. 14-1. Careful examination <strong>of</strong> this circuit reveals a standard analog<br />

integrator with a "leak" resistor placed across the capacitor. The resistor<br />

causes the capacitor charge to leak away and thereby puts an upper limit on<br />

the very low frequency and dc gain <strong>of</strong> the circuit. In fact, the 3-dB attenuation<br />

point is the frequency at which the capacitive reactance equals the leak

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!