Declaration:
void Wait(unsigned long microseconds);
Description
Suspends execution of the script file until the specified interval of the time is up.
The <%CM%> cannot trace extremely short time intervals, because some time is needed for data transmission through the serial channel.
Example:
while (1) // endless cycle
{
Wait(100); // to wait for 100 microseconds.
$P1 ^= 1; // to invert bit 0 in port P1
}
}
|