User manual
mikroPascal PRO for dsPIC30/33 and PIC24
MikroElektronika
138
Predened Globals and Constants
To facilitate dsPIC30/33 and PIC24 programming, the mikroPascal PRO for dsPIC30/33 and PIC24 implements a
number of predened globals and constants.
All dsPIC30/33 and PIC24 SFRs are implicitly declared as global variables of volatile word. These identiers have an
external linkage, and are visible in the entire project. When creating a project, the mikroPascal PRO for dsPIC30/33
and PIC24 will include an appropriate (*.mpas) le from defs folder, containing declarations of available SFRs and
constants (such as PORTB, ADPCFG, etc). All identiers are in upper case, identical to nomenclature in the Microchip
datasheets.
For a complete set of predened globals and constants, look for “Defs” in the mikroPascal PRO for dsPIC30/33 and
PIC24 installation folder, or probe the Code Assistant for specic letters (Ctrl+Space in the Code Editor).
Predened project level denes
mikroPascal PRO for dsPIC30/33 and PIC24 provides several predened project level denes that you can use in your
project :
First one is equal to the name of selected device for the project. For example:
{$IFDEF 30F4013}
...
{$ENDIF}
Other predened project level denes are:
{$IFDEF P30}...{$ENDIF}
{$IFDEF P33}...{$ENDIF}
{$IFDEF P24}...{$ENDIF}
{$IFDEF MIKRO_ICD}...{$ENDIF}
Related topics: Project Level Denes