Pages: [1]   Go Down
Author Topic: Y delay after analogread()?  (Read 308 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi folks,

often I find Code that looks like this:
accelerometer[i] = analogRead(i);
// delay to allow analog-to-digital converter to settle:

I recognized that this delay is used sometimes after digital and sometimes after analog input.
My question is why?
I think that the analog-to-digital-conversion must be finished after analogRead was executed.
And when, why so long?
In the atmel manuals it is written that the maximum amount of time needed for analog conversion is about 320 micro seconds (depending on processor).

Thanks for your help!

Pages: [1]   Go Up
Jump to: