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.

DIGITAL FILTERING 487<br />

where 0 is now the output <strong>of</strong> the filter. Although this is certainly slower in<br />

BASIC because <strong>of</strong> the extra statement, it is likely to be much faster in<br />

assembly language because <strong>of</strong> the elimination <strong>of</strong> a multiplication operation.<br />

At this point one can repeat the Fig. 14-2 experiment with several<br />

different frequencies to observe the typical R-C low-pass characteristic,<br />

which was done to create Fig. 14-3. Note that near the O.SF} point the<br />

-6 dB/octave cut<strong>of</strong>f slope decreases somewhat. This is due to actual aliasing<br />

<strong>of</strong> the filter response, since it is not zero at or beyond Fs/2. As digital filters<br />

are studied, it will be found that their amplitude response always tends to<br />

depart from the ideal as the Nyquist frequency is approached.<br />

One can also apply digital square waves to the filter and observe that<br />

the output samples show the same kind <strong>of</strong> leading edge rounding that the<br />

analog filter exhibits. In fact, the samples <strong>of</strong> the square-wave response (step<br />

response in general) are exactly the same as ADC samples from the response <strong>of</strong><br />

an analog R-C low-pass filter would be. A digital filter having this property<br />

is said to be impulse invariant, which for our purposes means that the time<br />

domain response is the same as the corresponding analog filter.<br />

Signal Flow Graphs<br />

Although the calculations involved in a digital filter can be represented<br />

as equations or program fragments, they do not give a very clear picture <strong>of</strong> the<br />

AMPLIFIER WITH GAIN OF 0314<br />

MULTIPLIES INPUT SAMPLES BY 0314<br />

MIXER OR ADDER<br />

ADO SAMPLES A AND B TOGETHER AND SuBTRACT C TO PRODUCE<br />

THE OUTPUT SAMPLE<br />

-[J-<br />

ONE SAMPLE PERIOl) DELAY<br />

SAVE THE INPUT SAMPLE FOR ONE SAMPLE PERIOD AND THEN PASS<br />

ON TO THE OUTPUT<br />

Fig. 14-4. Symbols used in signal flow graphs

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

Saved successfully!

Ooh no, something went wrong!