Action
Suspends program execution for a given time in mS.
Syntax
WAITMS mS
Remarks
mS |
The number of milliseconds to wait. (1-65535) |
The delay time is based on the used X-tal (frequency).
So it is important that you provide the right $CRYSTAL value.
The use of interrupts can slow down this routine.
For a real precise delay you should use a timer.
The WAITMS statement can only delay for 255 mS. That is why the WAITMSE statement was added, it can give a longer delay.
See also
Example
WAITMSE 1000 'wait for 1000 mS
Print "*"