11 adc conversion result, 12 temperature measurement – Rainbow Electronics ATtiny43U User Manual

Page 125

Advertising
background image

125

8048B–AVR–03/09

• Differential Non-linearity (DNL): The maximum deviation of the actual code width (the interval

between two adjacent transitions) from the ideal code width (1 LSB). Ideal value: 0 LSB.

Figure 16-12. Differential Non-linearity (DNL)

• Quantization Error: Due to the quantization of the input voltage into a finite number of codes,

a range of input voltages (1 LSB wide) will code to the same value. Always ± 0.5 LSB.

• Absolute Accuracy: The maximum deviation of an actual (unadjusted) transition compared to

an ideal transition for any code. This is the compound effect of offset, gain error, differential
error, non-linearity, and quantization error. Ideal value: ± 0.5 LSB

16.11 ADC Conversion Result

After the conversion is complete (ADIF is high), the conversion result can be found in the ADC
Result Registers (ADCL, ADCH). For single ended conversion, the result is

where V

IN

is the voltage on the selected input pin and V

REF

the selected voltage reference (see

Table 16-3 on page 126

and

Table 16-4 on page 127

). 0x000 represents analog ground, and

0x3FF represents the selected reference voltage minus one LSB. The result is presented in one-
sided form, from 0x3FF to 0x000.

16.12 Temperature Measurement

The temperature measurement is based on an on-chip temperature sensor that is coupled to a
single ended ADC channel. Selecting the ADC4 channel by writing the MUX2:0 bits in ADMUX
register to “111” enables the temperature sensor. The internal 1.1V reference must also be
selected for the ADC reference source in the temperature sensor measurement. When the tem-

Output Code

0x3FF

0x000

0

V

REF

Input Voltage

DNL

1 LSB

ADC

V

IN

1024

V

REF

--------------------------

=

Advertising