User manual
156
mikoC PRO for dsPIC
MikroElektronika
Prototype
unsigned int Get_Fosc_Per_Cyc();
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’s clock per cycle, rounded to the nearest integer.
Requires Nothing.
Example
unsigned int clk_per_cyc;
...
clk_per_cyc = Get_Fosc_Per_Cyc();
Notes None.
Get_Fosc_Per_Cyc