Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Noisy ADC lines

2004-05-11 by Craig Limber

David VanHorn wrote:

>>supply of bypass and filter capacitors. A 'scope on the power and ADC
>>lines doesn't show any noise that it can detect.
>
>AC couple, at about 1mV/Div. Your ADC is 10 bit, so that's 1mV per volt on AREF,
>per ADC count.

Sorry, I am something of a newb when it comes to analog signals and the
ADC.  Does your statement mean that my scope might not show up
something that could affect the accuracy of the ADC?

> >the same as that found on the chip's VCC lines. I have a .1uf disk cap
> >going from AREF to ground
> 
> Which ground?

I have one "ground" in my circuit.  The other terminal of the cap
attached to AREF is electrically connected to pins 11 and 31 on the
mega32 (both labled as GND), the negative terminal of the voltage
regulator and the negative connection on my battery. 

> >half a volt around the reading I expect to get.
> 
> Key point. IIRC you're supposed to toss the conversion immediately
> after a channel change.  I've done this by using an int to roll through
> the channels, changing the channel before starting the next conversion.

> I seem to remember there's a finite time that you have to wait after an
> ADMUX selection, for the mux output amplifier to settle, as well.

So, it sounds like it might be a good idea to set the mux, wait a 
period of time, start the conversion, toss the result, do another right
after and use that as my actual value.

All good suggestions to try out tonight.  Thanks for the speedy
responses.

Craig

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.