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 223<br />

/<br />

INPUT CODE<br />

Fig. 7-1. DAC linearity errors<br />

arithmetic and is just as fast on microcomputers. This topic will be discussed<br />

in Chapter 18.) When a number is sent to the DAC to be converted, all 16<br />

bits are sent out. The DAC in turn is interfaced so that it sees the most<br />

significant N bits <strong>of</strong> the word, N being the DAC's resolution. An ADC<br />

likewise would connect to the most significant bits <strong>of</strong> the word and supply<br />

zeroes for the unused low order bits. The ultimate resolution implied by 16<br />

bits is an astounding 305 JLV. An 8-bit microcomputer would probably<br />

handle things in a similar manner unless converter resolutions <strong>of</strong>8 bits or less<br />

are being used.<br />

Linearity<br />

Another term used in specifying DACs is /inearity. Linearity is related<br />

to accuracy but is definitely not the same thing. Although the voltage levels<br />

<strong>of</strong>an ideal DAC are perfectly equally spaced, real DACs have severe difficulty<br />

even approaching the ideal for reasonably high resolutions. The most common<br />

linearity error is called differentia/linearity error. Although the physical<br />

reason for this will become clear later, Fig. 7-1 illustrates this error. The<br />

stepped plot shown represents the output that would occur if the DAC were<br />

driven by a binary counter. Differential linearity refers to the actual difference<br />

in step position between any two adjacent steps compared to the ideal<br />

difference. When a differential linearity error occurs, it is because one step is<br />

either higher or lower than it should be. The diagram shows a differential<br />

linearity error <strong>of</strong> one-half <strong>of</strong> the ideal step size, which is equivalent to<br />

one-half <strong>of</strong> the least significant bit (LSB) <strong>of</strong> the digital input. If the error

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

Saved successfully!

Ooh no, something went wrong!