WAITMICRO
Syntax
WAITMICRO ( microseconds )
Description
Delay program execution
a number of microseconds. This
function was added to Cortex
parts in version 8.27 firmware and later
It has better resolution than using TIMER. It
is limited to times less than 65536 microseconds.
Example
Wiggle a line at 100 KHz.\
IO(5)=
0
WHILE 1
OUT(5)=
0
WAITMICRO(50)
OUT(5)=
1
WAITMICRO(50)
LOOP
Differences from other BASICs
\
- no equivalent in Visual BASIC
- PBASIC has a similar function PAUSE that uses a CPU dependent "tick" value