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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DIGITAL-TO-ANALOG AND ANALOG-TO-DIGITAL CONVERTERS 227<br />

<strong>of</strong> the rectangular wave into the filter is the clock frequency divided by the<br />

number <strong>of</strong> counter states, which is equivalent to the resolution <strong>of</strong> the DAC.<br />

Thus, a 4096 level (12-bit) resolution would give a frequency <strong>of</strong> 10 MHzI<br />

4096 or 2,441 Hz, which is a period <strong>of</strong> about 410 f.1-sec.<br />

The output <strong>of</strong>the low-pass filter will have some ripple superimposed on<br />

top <strong>of</strong> the average dc level, since its cut<strong>of</strong>f is not infinitely sharp. It would be<br />

reasonable to desire a ripple amplitude <strong>of</strong> less than one-half the least<br />

significant bit. With the· simple RC filter shown, the cut<strong>of</strong>f frequency would<br />

have to be roughly 1/8,000 <strong>of</strong> the rectangular wave input frequency to have<br />

an acceptable ripple. The cut<strong>of</strong>ffrequency in this example then would have to<br />

be around 0.3 Hz, which is equivalent to an RC time constant <strong>of</strong> over 0.5<br />

sec. Even though this sounds slow, the worst-case settling time <strong>of</strong> the filter to<br />

one-half LSB would be roughly nine times the time constant or nearly 5 sec!<br />

Adding a bit <strong>of</strong> resolution to this DAC would multiply the settling time by<br />

slightly greater than four. Although more complex filters and switching<br />

sequences may reduce the response time to tens <strong>of</strong>milliseconds, this clearly is<br />

not a high-speed technique. Differential linearity, however, is essentially<br />

perfect regardless <strong>of</strong> resolution, and integral linearity is limited only by the<br />

regulation <strong>of</strong> the reference voltage under a varying load. Accuracy can also be<br />

excellent, limited primarily by the reference and the difference between<br />

switch turn-on and turn-<strong>of</strong>f times.<br />

Resistor String DAC<br />

Another approach to D-to-A conversion that is inherently much faster<br />

is to use various combinations <strong>of</strong> resistors and switches along with a stable<br />

reference voltage. The idea is to use the digital code to operate the switches<br />

such that the resistors are connected in various configurations to produce the<br />

desired fraction <strong>of</strong> the reference voltage at the output.<br />

Conceptually, the simplest arrangement <strong>of</strong> switches and resistors is<br />

shown in Fig. 7-4. This 3-bit example uses seven equal-value resistors<br />

connected in series between the reference voltage source and ground. Eight<br />

analog switches, only one <strong>of</strong> which is on at a time, select the desired fraction<br />

<strong>of</strong> the reference voltage according to the 3-bit digital input to the 3-to-8<br />

decoder and connects it to the analog output. One drawback to the circuit<br />

should be immediately clear; for every added bit <strong>of</strong> resolution, the number <strong>of</strong><br />

resistors and switches doubles. An 8-bit converter, therefore, would require<br />

255 resistors and 256 switches! In the past, such a circuit was completely<br />

impractical beyond 4 or 5 bits. Its advantages, however, actually make it<br />

attractive in integrated form where the repeated resistor-switch chain<br />

structure can be laid out inexpensively on a chip. National Semiconductor,<br />

for example, has a line <strong>of</strong> D-to-A and A-to-D converters that use this<br />

structure at the 8-bit level. Another drawback is that the output must be<br />

buffered by an op-amp voltage follower. Connecting a finite load resistance to<br />

the output will greatly affect the circuit's linearity because its output<br />

impedance changes with the digital code.

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

Saved successfully!

Ooh no, something went wrong!