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-TO-ANALOG AND ANALOG-TO-DIGITAL CONVERSION 375<br />

quantization noise increases by 6 dB, but the signal has also increased by 6<br />

dB; thus, the SiN ratio is nearly constant.<br />

One problem in using this setup is that the sample data must be<br />

converted from their typical 16-bit signed integer format into the floating<br />

point format, which can be time consuming. A relatively simple hardware<br />

translator, however, can be placed between the computer and the DAC to<br />

accomplish this on the fly. Essentially, the translator must determine which<br />

<strong>of</strong> several "ranges" each sample lies in. The range determination then controls<br />

the amplifier and a parallel shifter, which insures that the most significant<br />

12 bits in the particular sample are sent to the DAC. Operation would<br />

be as follows:<br />

Digital sample values<br />

000D-07FF<br />

080D-OFFF<br />

100Q--.1FFF<br />

2000-3FFF<br />

4000-7FFF<br />

Bits to DAC<br />

0-11<br />

1-12<br />

2-13<br />

3-14<br />

4-15<br />

Gain selection<br />

0.0625<br />

0.125<br />

0.25<br />

0.5<br />

1.0<br />

A similar table can be constructed for negative sample values. Note<br />

that the lowest gain used is 0.0625. If the input samples are normal 16-bit<br />

integers, it is not possible to get the extra dynamic range that floating-point<br />

format allows.<br />

Aside from the parallel shifter, constructing a floating-point DAC is<br />

fairly simple. For the DAC part, one would use a standard 12-bit DAC<br />

module set up for <strong>of</strong>fset binary coding with an inverter in the most significant<br />

bit to make it twos complement. The gain-controlled amplifier must be<br />

accurate, at least to the 0.012% level to retain 12-bit performance. If the<br />

gains are not accurate, there can be a nonlinearity at points where the gain<br />

switches such as in Fig. 12-6. Simple analog switches with precision gainsetting<br />

resistors can be used for the amplifier. A multiplying DAC could also<br />

be used if it can accept a bipolar reference. The main DAC output would be<br />

connected to the reference input <strong>of</strong> the multiplying DAC. The 3-bit "exponent"<br />

would be sent to a 1-<strong>of</strong>-8 decoder whose outputs would be connected<br />

to the most significant 8 bits <strong>of</strong> the MDAC. The MDAC output then<br />

becomes the final system output.<br />

Exponential DACs<br />

Just as exponential control voltages in analog synthesizers allow accurate,<br />

noise-free representation <strong>of</strong>parameters having a wide range, exponential<br />

DACs, which are also called companding DACs, can increase audio dynamic<br />

range with a limited number <strong>of</strong>sample bits. For use with audio signals, which<br />

are inherently linear, one would first take the logarithm <strong>of</strong> the sample value.

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

Saved successfully!

Ooh no, something went wrong!