Tuesday September 28, 2010
Hello,
I was wondering if someone can give me a complete list of the files I need to copy from the github repository to my Windows XP Professional SP3 system to implement the micros() function.
I am currently using Maple-IDE 0.0.6.
I have some code (originally written for the Arduino Duemilanove) which uses the strcmp() function to interpret a command sent from the system to the microcontroller. I want to determine the execution time of one call to strcmp() in different situations (eg. different values of the string being compared).
The code works on the Arduino (yes, I included the string.h file), but when I use the modified code (eg. deleted Serial.begin() and using SerialUSB()) on the Maple it pauses for several seconds every 21st iteration of the while loop. The delay I experience is different at each "hiccup". Sometimes it pauses at 42 (getting through the 21st iteration of the while loop) or 63 (getting through the 21st and 42nd iteration of the while loop), etc. I think I once saw the code reach the 168th iteration without stopping, but this is not common.
I am speculating the problem might involve timing, so I want to see if the execution of strcmp is slower or faster every 21n iteration. This is why I cannot execute strcmp 1000X and then use millis().
If I can create a short version of my code which produces the problem I will post the code another time.
Thanks for the help!
Stephen from NYC