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.

594 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

RATE MULT OUT I II I III III III III III III III III III III III III<br />

+ 2 FILTER OUT ..L1--'_"--..1--'_"------'----'------'---'---'--------'_"----..L-L..-L.-...I.-----'----'----'----'--'-_.L-..L.-<br />

+ 4 FILTER OUT ..11~-"---------'-----'-----'------'----.L--"-------'--- __--'-----'----'--<br />

+ 8 FILTER OUT --'- --'- ---' ---L- ----L --'-- _<br />

Fig. 17-4. Operation <strong>of</strong> jitter filter for rate multiplier<br />

M bits that just continuously counts through its 2M possible states. The<br />

gating network compares the content <strong>of</strong> the counter with the frequency<br />

control word and based on the comparison either allows a clock pulse through<br />

or blocks it. The average output frequency is equal to FN/2 M , where F is the<br />

clock frequency and M and N are as before. Note that unlike the divide-by-N<br />

approach, the rate multiplier produces an output frequency directly proportional<br />

to N rather than inversely proportional. Note also that by increasing<br />

the number <strong>of</strong> counter bits that the frequency resolution may be made as<br />

high as desired without altering the clock frequency.<br />

So far this sounds ideal but there is a catch. Examining the gating<br />

structure and truth table for N = 11, it is seen that the output pulses are<br />

erratically spaced, although there are indeed 11 <strong>of</strong> them per 16 input pulses.<br />

A little further study <strong>of</strong> the effect <strong>of</strong> different Ns reveals that the instantaneous<br />

output frequency never varies over a range greater than two to one, although<br />

it is never less than that either unless N is a power <strong>of</strong> two, in which case it<br />

does not vary at all. The audible effect <strong>of</strong> such frequency jitter is a very rough<br />

sound to say the least. Thus, it is clear that a rate multiplier alone is<br />

unsuitable as an audio tone source.<br />

One can, however, "digitally filter" the jittery output with a simple<br />

binary counter and reduce the percentage <strong>of</strong> frequency modulation. Figure<br />

17-4 shows how a divide-by-8 counter smooths the frequency jitter substantially<br />

from 100% to about 12%. Unfortunately, the clock frequency must be<br />

increased by a factor <strong>of</strong>8 to compensate for the frequency division <strong>of</strong> the jitter<br />

filter. By adding stages to the filter counter, the jitter may be made as small<br />

as desired, subject only to the clock-frequency limit <strong>of</strong> the rate-multiplier<br />

counter. A divide-by-256 filter counter, which leaves only a trace <strong>of</strong> roughness<br />

in the sound, is probably adequate in most cases. Thus, if the rate<br />

multiplier is to be used to produce frequencies up to 20 kHz, the clock<br />

frequency must be 5.12 MHz, about what it was with the divide-by-N<br />

approach.<br />

With an overall output frequency relation <strong>of</strong> FN/2 M +], where} is the<br />

number <strong>of</strong> bits in the jitter filter, it is seen that frequency is a linear function<br />

<strong>of</strong> the digital word, N. Thus, frequency resolurion is poorest at low frequencies<br />

rather than at high frequencies. If one wishes to experiment with rate<br />

multipliers, the 7497 is a 6-bit cascadable unit that functions up to 20 MHz.<br />

Four <strong>of</strong> these, an 8-bit filter counter (74393), and a 5-MHz crystal oscillator<br />

are sufficient to build a frequency soutce with good resolution at all but the<br />

very lowest audio frequencies (1. 5% at 20 Hz).

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

Saved successfully!

Ooh no, something went wrong!