Microsecond WAIT

Questions about the BASICtools and MakeItC
thangtamfive
Posts: 1
Joined: Tue Jul 18, 2017 4:02 pm

Microsecond WAIT

Postby thangtamfive » Tue Jul 18, 2017 5:23 pm

>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

basicchip
Posts: 759
Joined: Fri Oct 19, 2012 2:39 am
Location: Lake Tahoe, CA
Contact:

Re: Microsecond WAIT

Postby basicchip » Tue Jul 18, 2017 6:39 pm

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.


Return to “Software issues”

Who is online

Users browsing this forum: No registered users and 2 guests