Average reading of a fluctuating A/D signal?
Dan Mulally email (remove spam text)
If you add five 8-bit samples and use two 8 bit registers for the result
(16bits) you can then do a right shift five times on the 16 bit result to
obtain an average. You need to take into account the carry from the lo byte
to the high byte.
----- Original Message -----
From: "Quentin" <ICON.CO.ZA> qsc
To: <MITVMA.MIT.EDU> PICLIST
Sent: Friday, May 19, 2000 6:01 AM
Subject: Average reading of a fluctuating A/D signal?
> My A/D input signal is such that I will always have a +/- 10 fluctuation
> in my register value. Can somebody tell me how to get an average reading
> over say 5 A/D samples?
See also: www.piclist.com/techref/io/atod.htm?key=a%2Fd
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the