microseconds


is there way measure microseconds? want find out interval between events (in case, bytes received arduino) , milliseconds bit crude.

there not call measuring microseconds.
you use delaymicroseconds() , polling repeatedly wait while , check rough idea of how long was.
you @ tcnt1 16 bit register increments every 4 microseconds in standard arduino configuration. going roll on frequently, , should block interrupts around reads it, this...
code: [select]
cli();
myvar = tcnt1;
sei();

... assumes know interrupts off when started. (true normal arduino code).


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > microseconds


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums