Arduino micros () function - Arduino

What is Arduino micros () function?

The micros() function returns the number of microseconds from the time, the Arduino board begins running the current program. This number overflows i.e. goes back to zero after approximately 70 minutes. On 16 MHz Arduino boards (e.g. Duemilanove and Nano), this function has a resolution of four microseconds (i.e. the value returned is always a multiple of four). On 8 MHz Arduino boards (e.g. the LilyPad), this function has a resolution of eight microseconds.

Micros () function Syntax

This function returns number of microseconds since the program started (unsigned long)


All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd Protection Status

Arduino Topics