Pages: [1]   Go Down
Author Topic: micros() step size with due improved?  (Read 1040 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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



Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 211
Posts: 13471
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

HOw about a small program to test the granularity? (code not tested)
Code:
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...
Logged

Rob Tillaart

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

Offline Offline
Newbie
*
Karma: 1
Posts: 42
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it is improved down to 1us.. but of course not below  smiley-wink
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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?


Logged

Pages: [1]   Go Up
Jump to: