124/317
5 - Peripherals
Actually, this method is not very convenient, because the typical error of the converter is 0.3
LSB which is too high compared to the small voltage that we intend to use as an extra step.
Also, the noise would make this increased resolution meaningless.
A practical way of increasing the converter resolution is to use the method of low-pass filtering
of noisy signals.
Let us assume that we disturb the voltage we want to measure with a random voltage that has
the following characteristics:
The statistical average of the random voltage is zero, that is, is has a null D.C. component;
Its average amplitude is about one LSB of the converter or more.
If we take a certain number of readings with the input voltage V0 fixed, but with a noise with
the above characteristics added to it, and we compute the average, we shall find the same
value as a single conversion with no noise, since the average of the noise voltage is zero. But
if we look at the successive values that have been converted, they are not all equal because
of the noise that has either added of subtracted a certain count to or from the ideal conversion
result. If, instead of taking the mean of these values, we just add them, we get a number that
ranges from 0 to n * 255 where n is the number of readings added together. Since the succes-
sive conversion results are not identical, all the values in the range are possible. For example,
if we sum four readings, the result ranges to 4 * 255 = 1020. We can now distinguish 1021 dif-
ferent values of the input voltage.
This explanation is a bit too simple also, for the average of the successive values of the noise
tends to zero for a large number of readings. If we only take a small number of readings, the
sum of the readings will itself be affected by a noise. It is possible to calculate the number of
readings that must be summed together to have that noise smaller than the resolution we ex-
pect to get.
5.6.4.3 Application Examples
The application described in Chapter 7 uses the converter to get a value derived from the po-
sition of a potentiometer. This is a convenient and cheap way of inputting an 8-bit value, also
used in the second application, in Chapter 10, where three calibration values are input using
three potentiometers.
In Chapter 9, the converter is used as a comparator to produce a logical signal depending on
whether the analog input signal is above or below a predefined threshold.
An example of increasing the resolution using the summing method above is given in the
second application, Chapter 10.
Содержание 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 ...