119/317
5 - Peripherals
The COCO bit is reset when the ADCCSR register is written.
05-adc0
5.6.3 The problem of the converter's accuracy
Linearity and accuracy are different ways of expressing the same reality: the successive
voltage steps that correspond to each of the binary values are not absolutely equally spaced
(otherwise the converter would be perfect), leading to a conversion error. Depending on the
type of work the converter is employed for, one way or the other is better for expressing the
suitability of the converter.
If the converter is to be used as a measuring input, like measuring a temperature, a voltage,
the level in a tank, to send it for information purposes, accuracy is the best expression. It indi-
cates how much confidence one can have in the data.
If the converter is to be used as the feedback input for a servo loop of the second order, for ex-
ample a positioning device using a DC motor and a feedback potentiometer, then linearity is
the key factor. Not only must a servo loop be accurate (since this accuracy translates into an
error expressed in mm in the positioning system) but also it must be stable. So, the parame-
ters of the whole system must meet certain conditions summarized in the so-called Nyquist
AIN0
AINn
Analog
mux
Sample
and
hold
ADC
COCO
-
ADON
0
-
CH2
CH1
CH0
f
CPU
AD0
AD7
ADC Data register (ADCDR)
ADC Control / Status register (ADCCSR)
COCO : Conversion Complete
ADON: A/D converter On
CH2-CH0: Channel selection
ADC block diagram
AD6
AD5 AD4
AD3
AD2
AD1
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...