Page 1 of 1

Microsecond WAIT

Posted: Tue Jul 18, 2017 5:23 pm
by thangtamfive
>from the help line
>Is there a way to use WAIT with microseconds? If not, I would like to request
this function as it would be handy. Is there another way to do this easily?

There are examples of this in the BASIC libraries, where it is normally done in
line using the builtin TIMER.

START = TIMER
WHILE (TIMER-START < numOfMicroseconds)
LOOP

It could be done as a SUB

SUB WAIT_USECONDS (numOfMicroseconds)
DIM START
START = TIMER
WHILE (TIMER-START < numOfMicroseconds)
LOOP
END SUB

Re: Microsecond WAIT

Posted: Tue Jul 18, 2017 6:39 pm
by basicchip
There is a WAITMICRO(x)

http://www.coridium.us/ARMhelp/index.ht ... Micro.html

WAITMICRO was not in the original version, but was added about 6-7 years ago. Other than the actual TIMER examples I should probably update those.