Tag Archives: micros()

Arduino Timing Failure

Why does this attempt to time a fixed-point math multiplication yield 0 microseconds? After examining the resultant assembly code produced, it appears the optimizing compiler performed the math, eliminated the fixed-point code and treated the answer as a constant. Look … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

FREQUENCY and TIME

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

Examination of the Arduino micros() Function

Background To fully understand the micros() function, you first need to understand the Timer #0 overflow interrupt handler which was covered in this post. Recall the typical Ardiuno runs on a 16MHz oscillator. Both the millis() and micros() functions base … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 3 Comments