Help needed - ESP32 C2/3/6 analogRead execution time

Hey guys,
Unfortunately, I don’t own one of the esp32c2/esp32c3/esp32c6 boards I was wondering if some of you guys could help me testing :smiley:

I would like to know what is the elapsed time of analogRead on that board.
So if someone could let me know what would be the output of this code that would be very very helpful.

void setup() {
  Serial.begin(115200);
}

int t = 0;
unsigned int timestamp = micros();

int tmp_read;
void loop() {

  tmp_read = analogRead(A0); // read analog input from any analog pin - feel free to change it 

  if(t++> 10000){ // 10k analog reads
     t = 0;
     Serial.println(micros() - timestamp);
     timestamp = micros();
  }
}

Thanks a lot!

I only have Esp32C3 Supermini.

Does that help?

Hey @2hry,

That’s exactly what I was searching for. Yeah it’s around 30us per call. That’s a lot.