User manual
mikroPascal PRO for PIC32
MikroElektronika
153
Prototype
function Get_Fosc_kHz() : longint;
Description Function returns device clock in kHz, rounded to the nearest integer.
Parameters None.
Returns Device clock in kHz.
Requires Nothing.
Example
clk := Get_Fosc_kHz();
Notes - Get_Fosc_kHz is a library function rather than a built-in routine; it is presented in this topic for the
sake of convenience.
Prototype
function Get_Fosc_Per_Cyc() : word;
Description Function returns device’s clock per cycle, rounded to the nearest integer.
Note that Get_Fosc_Per_Cyc is library function rather than a built-in routine; it is presented in this
topic for the sake of convenience.
Parameters None.
Returns Device clock in kHz.
Requires Nothing.
Example
var clk_per_cyc : word;
...
clk_per_cyc := Get_Fosc_Per_Cyc();
Notes None.
Prototype
procedure Reset();
Description This procedure is equal to assembler instruction reset.
Parameters None.
Returns Nothing.
Requires Nothing.
Example
Reset(); // Resets the MCU
Notes None.
Get_Fosc_kHz
Get_Fosc_Per_Cyc
Reset