piclist 2000\05\19\221933a >
Thread: Average reading of a fluctuating A/D signal?
www.piclist.com/techref/io/atod.htm?key=a%2Fd
flavicon
face BY : Dan Mulally email (remove spam text)



Quentin,

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.

Dan

----- Original Message -----
From: "Quentin" <RemoveMEqscspam_OUTspamICON.CO.ZA>
To: <PICLISTRemoveMEspamMITVMA.MIT.EDU>
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?
>
> Thanks
> Quentin

<001701bfc201$a2c8fce0$2a01fea9@computer> 7bit

See also: www.piclist.com/techref/io/atod.htm?key=a%2Fd
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Average reading of a fluctuating A/D signal?

month overview.

new search...