Dear Sirs,
I buying new Arduino MKR ZERO (that equipped with SAMD21 micros)
I found there is a problem with ADC speed!!!
I used for my purposes AnalogRead(A0);
I found a problem...
I decided to test ADC..
I wrote sketch where I measure duration of AnalogRead(A0) and store it in buffer with 1024 samples.
Then print it! I found duration is 840microseconds!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHAT IS GOING ON!! WHAT IS THAT ADC????
PLEASE HELP IF I WRONG!
My sketch:
int check[1024];
double t1;
double t2;
int bufer[1024];
void setup(){
Serial.begin(115200);
}
void loop(){
for (int i=0; i<1024; i++){
t1=micros();
bufer*=analogRead(A0);*
- t2=micros();*
_ check*=t2-t1;_
_}_
for (int i=0; i<1024; i++){
_ Serial.println(check);
}*_
}