User manual

154
mikoBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
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.
Vdelay_ms
Prototype
sub procedure VDelay_advanced_ms(dim time_ms, Current_Fosc_kHz as word)
Description Creates a software delay in duration of time_in_ms milliseconds (a variable), for a given oscillator
frequency. Generated delay is not as precise as the delay created by Delay_ms.
Note that Vdelay_ms is library function rather than a built-in routine; it is presented in this topic for
the sake of convenience.
Parameters - time_ms: delay time in milliseconds
- Current_Fosc_kHz: frequency in kHz
Returns Nothing.
Requires Nothing.
Example
pause = 1000
fosc = 10000
VDelay_advanced_ms(pause, fosc) Generates approximately one second
pause, for a oscillator frequency of 10 MHz
Notes None.
VDelay_advanced_ms