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 CONVERTERS 261<br />

reference voltage is connected to the integrator. Being <strong>of</strong> opposite polarity,<br />

the integrator starts to recharge toward zero again. The time necessary to<br />

reach and cross zero is monitored by the microcomputer as before. Ifa similar<br />

loop is used in each phase, the converted value will be in fractional terms <strong>of</strong><br />

the reference voltage and the value <strong>of</strong> the capacitor is no longer critical.<br />

Accuracy in excess <strong>of</strong> 12 bits is readily obtained with this dual-slope<br />

circuit, although long conversion times would still be necessary with the<br />

microcomputer doing the timing and control. Every additional bit <strong>of</strong> resolution<br />

would double the time required for conversion. Dual slope takes about<br />

twice as long as the single-slope or single-shot method because both the<br />

reference and the unknown are, in effect, digitized. A hardware counter<br />

could be used instead to increase the speed, but these techniques still remain<br />

relatively slow.<br />

Integrated circuit dual-slope ADCs are available with resolutions as<br />

high as 20,000 steps. Unfortunately, most <strong>of</strong> these are intended for digital<br />

panel meters and therefore have decimal outputs. The MM5863 from National<br />

Semiconductor, however, provides 12-bit binary output and conversion<br />

times as short as 20 msec when used with an LF11300 "analog front<br />

end" circuit. This is adequately fast for digitizing most slowly changing<br />

voltages.<br />

Linear Search and Tracking ADC<br />

The better techniques for analog-to-digital conversion work by comparing<br />

the unknown analog voltage with the output <strong>of</strong> a DAC using the basic<br />

configuration in Fig. 7-29. In practice, the DAC output is systematically<br />

varied until it matches the unknown as closely as possible as determined by<br />

the comparator. When this is accomplished, the input to the DAC is the<br />

digital equivalent <strong>of</strong> the unknown voltage. The key to high speed is an<br />

efficient search algorithm and a fast DAC and comparator.<br />

The simplest search method is the linear search. The DAC is set to zero<br />

(or negative full scale ifit is bipolar) and then incremented one step at a time<br />

UNKNOWN<br />

INPUT VOLTAGE<br />

OAC<br />

'f tf:ltt===t>---- CONVERTED<br />

VALUE<br />

Fig. 7-29. Analog-to-digital conversion using a DAC

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

Saved successfully!

Ooh no, something went wrong!