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

Hi folks,

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

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!
Logged

Pages: [1]   Go Up
Jump to: