Resulution of micros() in nano33 iot

Experience that when practicing communication through wifi, the micros() resolution changes from 1us to 1.5us per tick. Anyone suggestions here what could be the issue ?

Not enough info

I use the micros() in a timing loop to make 1ms ticks.

#include <WiFiNINA.h>
WiFiServer server(port)                ;
WiFiClient webserver                   ; 
WiFiUDP ntpUDP                         ;  

void setup() {
  while (status != WL_CONNECTED ) {  
       Serial.print ("Attempt to connect to SSID: ");  Serial.println(ssid);          
       status = WiFi.begin(ssid, pass) ;  
        Serial.print (" WiFi status = " ) ; Serial.println(WiFi.status()) ;                                                                                                                                                
       delay (100) ;  
}
server.begin();  
}
void loop() {

.....
 webserver = server.available(); 
 if (webserver) {   
.....
} 

As soon as webserver is true the micros() time tick changes from 1 to 1.5 us.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.