10.07.2015 Views

CHAPTER 3 METHODOLOGY 3.1 Overview The Water Monitoring ...

CHAPTER 3 METHODOLOGY 3.1 Overview The Water Monitoring ...

CHAPTER 3 METHODOLOGY 3.1 Overview The Water Monitoring ...

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.

ADC0802, ADC0803, ADC0804DIGITAL OUTPUT CODED + 1DD - 1123 45 6ERROR+1 LSB+ 1 / 2 LSB0- 1 / 2 LSB1 3 52 46* QUANTIZATION ERRORA - 1AA + 1-1 LSBA - 1AA + 1ANALOG INPUT (V IN )ANALOG INPUT (V IN )TRANSFER FUNCTIONERROR PLOTFIGURE 11A. ACCURACY = ±0 LSB; PERFECT A/DDIGITAL OUTPUT CODED + 1DD - 1135426ERROR+1 LSB01346*QUANTIZATIONERRORA - 1AA + 1-1 LSBA - 12A A + 1ANALOG INPUT (V IN )ANALOG INPUT (V IN )TRANSFER FUNCTIONERROR PLOTFIGURE 11B. ACCURACY = ± 1 / 2 LSBFIGURE 11. CLARIFYING THE ERROR SPECS OF AN A/D CONVERTERUnderstanding A/D Error SpecsA perfect A/D transfer characteristic (staircase wave-form) isshown in Figure 11A. <strong>The</strong> horizontal scale is analog input voltageand the particular points labeled are in steps of 1 LSB(19.53mV with 2.5V tied to the V REF /2 pin). <strong>The</strong> digital outputcodes which correspond to these inputs are shown as D-1, D,and D+1. For the perfect A/D, not only will center-value (A - 1,A, A + 1, . . .) analog inputs produce the correct output digitalcodes, but also each riser (the transitions between adjacentoutput codes) will be located ± 1 / 2 LSB away from each centervalue.As shown, the risers are ideal and have no width. Correctdigital output codes will be provided for a range of analog inputvoltages which extend ± 1 / 2 LSB from the ideal center-values.Each tread (the range of analog input voltage which providesthe same digital output code) is therefore 1 LSB wide.<strong>The</strong> error curve of Figure 11B shows the worst case transferfunction for the ADC0802. Here the specification guaranteesthat if we apply an analog input equal to the LSB analog voltagecenter-value, the A/D will produce the correct digital code.Next to each transfer function is shown the corresponding errorplot. Notice that the error includes the quantization uncertainty ofthe A/D. For example, the error at point 1 of Figure 11A is+ 1 / 2 LSB because the digital code appeared 1 / 2 LSB in advanceof the center-value of the tread. <strong>The</strong> error plots always have aconstant negative slope and the abrupt upside steps are always1 LSB in magnitude, unless the device has missing codes.Detailed Description<strong>The</strong> functional diagram of the ADC0802 series of A/Dconverters operates on the successive approximation principle(see Application Notes AN016 and AN020 for a moredetailed description of this principle). Analog switches areclosed sequentially by successive-approximation logic untilthe analog differential input voltage [V lN(+) - V lN(-) ] matchesa voltage derived from a tapped resistor string across thereference voltage. <strong>The</strong> most significant bit is tested first andafter 8 comparisons (64 clock cycles), an 8-bit binary code(1111 1111 = full scale) is transferred to an output latch.<strong>The</strong> normal operation proceeds as follows. On the high-to-lowtransition of the WR input, the internal SAR latches and theshift-register stages are reset, and the INTR output will be sethigh. As long as the CS input and WR input remain low, theA/D will remain in a reset state. Conversion will start from 1 to8 clock periods after at least one of these inputs makes a lowto-hightransition. After the requisite number of clock pulses tocomplete the conversion, the INTR pin will make a high-to-lowtransition. This can be used to interrupt a processor, orotherwise signal the availability of a new conversion. A RDoperation (with CS low) will clear the INTR line high again.6-12

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

Saved successfully!

Ooh no, something went wrong!