User manual

mikroBasic PRO for PIC32
MikroElektronika
152
Prototype
sub procedure Delay_ms(const time_in_ms as longword)
Description Creates a software delay in duration of time_in_ms milliseconds.
This is an “inline” routine; code is generated in the place of the call, so the call doesn’t count against
the nested call limit.
Parameters time_in_ms: delay time in milliseconds. Valid values: constant values, range of applicable constants
depends on the oscillator frequency
Returns Nothing.
Requires Nothing.
Example
Delay_ms(1000); /* One second pause */
Notes For generating delays with variable as input parameter use the Vdelay_ms routine.
Prototype
sub procedure Vdelay_ms(dim time_in_ms as word)
Description Creates a software delay in duration of Time_ms milliseconds. Generated delay is not as precise as
the delay created by Delay_ms.
Parameters Time_ms: delay time in milliseconds
Returns Nothing.
Requires Nothing.
Example
pause = 1000
‘ ...
Vdelay_ms(pause) ‘ ~ one second pause
Notes None.
Delay_ms
Vdelay_ms