True, there are ways to improve the resolution of this timing, but
given the original question (timing for ~10 sec) I think a resolution
of 1/40 second should do.
Of course, the resolution (or error as you put it) can also be
improved by lowering the "wait until ms multiple" input to 5 ms
It
Tick Count (ms) is probably the best and easiest way to perform this
task, however you do need to be aware of the wrap around, whereby the
function starts at 0 after the maximum number of counts has elapsed.
You can get over this by simply checking for this event and handling
it by adding a consta
I am using a while loop with a task in it involving the serial port. I
only want the task in the loop to run for a certain amount of time
(~10s). I have tried putting the 'wait' function in but this doesn't
seem to work. Does anyone know what would work best.
Thanks