Delay – Remote Processing CAMBASIC User Manual
Page 65
Comm ands - 32
DELAY
Statement
SYNTAX:
DELAY n
PURPOSE:
To create a precision delay. T he resolution is 5 mS (10 mS on 9 MHz systems).
REMARK S:
Program execution is suspended during the delay period. Interrupt service will be delayed until the
end of the delay period. For breakable delays, use a F OR/N EXT loop.
For applications which require high accuracy, the execution of the DELAY statement itself and the
number of interrupts occurr ing must be considered.
If a delay of 0 is specified, the delay will be less than 0.5 mS.
NOTE: This command uses a 5 mS system clock (10 mS in 9 MHz systems). The actual delay can
vary by 0.005 (0.010) seconds. Background tasks are latched but not serviced during the delay
p e r io d . P r es si ng < E S C > w i ll ab o r t t he d el a y a n d s to p th e pr o g ra m .
RELATED:
None
EXAMPLE:
10 DELAY .5
delays ½ second
10 DELAY 3.25
delays 3.25 seconds
ERROR:
< Data negative> – for n
< Time > 327.67> - for n