User manual

153
mikoPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
Prototype
procedure VDelay_ms(Time_ms : 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
var pause : word;
...
VDelay_ms(pause); // ~ one second pause
Notes None.
Vdelay_ms
Prototype
procedure VDelay_advanced_ms(time_ms, Current_Fosc_kHz: 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