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.

112 MUSICAL ApPLICATIONS OF MICROPROCESSORS<br />

termed quantization error because a sample pulse, which can be any amplitude<br />

whatsoever, has been quantized to the nearest available numerical representation.<br />

Background noise due to quantization error is termed quantization<br />

nOIse.<br />

An actual ADC or DAC usually has a definite maximum signal<br />

amplitude that it can handle. A typical value is from -10 to + 10 V. Inputs<br />

to an ADC beyond this range are effectively clipped, and numerical inputs to<br />

a DAC beyond this range are converted into a value that fits. The 20-V range<br />

is then broken up into a large number <strong>of</strong>quantization levels, which is usually a<br />

power <strong>of</strong> two, since DACs and ADCs are typically binary devices. The<br />

number <strong>of</strong> quantization levels generally ranges from 256 to 65,536, which<br />

corresponds to 2 8 and 2 16 or 8 and 16 bits, respectively.<br />

Let us try to estimate the amount <strong>of</strong> background noise present in a<br />

12-bit (4,096 level) DAC output so that the number <strong>of</strong> levels necessary for<br />

high-fidelity reproduction can be determined. Twenty volts divided by 4,096<br />

equals 4.88 mV per level. Thus, the 500th level would be 2.44141 V and<br />

would have to be used for all desired voltages between 2.43895 and 2.44384<br />

V. It is reasonable to assume that if the desired voltage level falls in this<br />

range, it is equally likely to be anywhere in the range and the same should be<br />

true for any other quantization level. Thus, the average error (difference<br />

between desired level and the nearest quantization level) is one-quarter <strong>of</strong> the<br />

difference between quantization levels. This works out to an average error<br />

amplitude <strong>of</strong> 1.22 mY. The maximum signal amplitude without distortion<br />

is 10 V. Therefore, the maximum signal-to-noise ratio is 10/<br />

0.00122 = 8,192. Expressed in decibels, this is about 78 dB. Actually, due<br />

to an oversimplified analysis, the average noise amplitude is really one-third<br />

<strong>of</strong> the quantization interval; thus, a more accurate figure is 76 dB.<br />

If the number <strong>of</strong> quantization levels were doubled (one bit added to<br />

make 13), the denominator <strong>of</strong> the previous equation would be halved, resulting<br />

in an increase in the signal-to-noise ratio <strong>of</strong> 6 dB. Eliminating a bit<br />

would subtract 6 dB from the signal-to-noise ratio. In real DACs and ADCs,<br />

the quantization levels are not perfectly spaced or perfectly equal in size.<br />

Such imperfections add about 4 dB to the noise level. Thus, the signal-tonoise<br />

ratio that can be expected is approximately 6 dB times the number <strong>of</strong><br />

bits in the DAC or ADC.<br />

Compared with analog audio equipment, the 72 dB available from a<br />

12-bit DAC is quite good, in fact better than any program source available to<br />

consumers and better even than much pr<strong>of</strong>essional recording equipment. An<br />

increase to 16 bits, which is achieved by the newer direct synthesis<br />

installations, and one has dynamic range far exceeding any available analog<br />

recording device!<br />

As a result, direct computer synthesis utilizing a 50-ks/s to 60-ks/s<br />

sample rate and 16-bit DACs is capable <strong>of</strong> unsurpassed audio quality. At the<br />

other end <strong>of</strong> the spectrum, 15 ks/s to 20 ks/s with 10 to 12 bits gives AM

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

Saved successfully!

Ooh no, something went wrong!