Uno cf ProMini handling of micros()

I suspect i know the answer to this question, but I'll ask it anyway.
Background, I have a sketch using interrupts; first interrupt records micros(), second interrupt records micros() again to get the interval between.
The interval is compared to a target and causes a stepper to move CW or CCW depending on greater or less than target.

All works as expected on the Uno. I transferred the sketch to a Pro Mini and now find the sketch works as though the target is half.
The Uno is 16Mhz, the Mini is 8 Mhz.
The question is does the Mini handle micros() same as the Uno? (my thought is that it would).

Did you program the Mini for 8MHz?
Chose the right frequency before compilation.

Hi DrD, I copied the sketch from the uno to the mini without change. My choices for the board selection were 3.3v 8mhz or 5v 16 mhz. As the board is 5v 8mhz I chose the 5v 16mhz option. If there was a 5v 8mhz option I would have chosen that but it was not in the menu.

The voltage irrelevant. Select the 8 MHz option.

Thank you both for troubling to answer. Makes perfect sense now.

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