Go Down

Topic: micros() step size with due improved? (Read 1 time) previous topic - next topic

suggy

Hello,

what is the step size of the mircos() command on the Arduino due?

Still 4┬Ás?
Or was it improved because of the more powerful Microcontroller on the Arduino Due Board?

Another little question:
Does the "T020040 - TinkerKit Mega Sensor Shield V.2" works fine with the Due and all of the TinkerKit Sensors?

Thanks




robtillaart

HOw about a small program to test the granularity? (code not tested)
Code: [Select]

unsigned long x[100];
void setup()
{
  Serial.begin(9600);
  for (inti=0;i<100;i++)
  {
    x[i] = micros();
  }
  for (inti=0;i<100;i++)
  {
    Serial.println(x[i], DEC);
  }
}

void loop()
{
}

Please post the output...
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

schwingkopf

it is improved down to 1us.. but of course not below  ;)

suggy

Thank you for that information,
that was my criteria to buy a Due  :)

Sorry for not mentioning that i do not have a Due until now.   :smiley-red:


Also i would like to Order the "T020040 - TinkerKit Mega Sensor Shield V.2". But only if it works with the Due and Sensors.

Does anybody run this combination?



Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy