testing ADC of Arduino MKR Zero

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);
    }*_

}

In your previous thread,
https://forum.arduino.cc/index.php?topic=694634.0
you were told to read the forum instructions to learn how to properly post code and ask questions. Apparently you have not done so. Please do.

I doubt that code will even compile.

Having said that, yes, analogRead() is on the slow side on SAMD21-based Arduinos.

See speeding up analogread() at the Arduino Zero - #6 by MartinL - Arduino Zero - Arduino Forum and the thread around it.