David,
http://www.crossroadsfencing.com/stopwatch_22Jan/stopwatch_22Jan.zip
With windows vista, going to this link prompts me to open/save the file. What happens for you?
David,
Should be doable - I use 100uS for my time check intervals:
unsigned long currentMicros = 0; // start of loop interval timer
unsigned long previousMicros = 0; // end of interval?
unsigned long hundred_uS_interval = 100; // = 0.1mS, use 1000 for 1mS
:
:
// ********************************************************************************
// start timing interval
// ********************************************************************************
currentMicros = micros(); // sample the time
if (currentMicros - previousMicros >= hundred_uS_interval) // more than our interval?
{
// save the last time we okayed time updates
previousMicros = currentMicros; // save the current time for next comparison
toggle = 1-toggle; // -> 1-1, 1-0, 1-1, 1-0, results in 0 1 0 1 ...
// do stuff on 0.1mS intervals, 1mS intervals, ets.