User manual
mikroBasic PRO for PIC32
MikroElektronika
135
- sbit
- bit
- iv
Related topics: Keywords, PIC32 Specic
Predened Globals and Constants
To facilitate PIC32 programming, the mikroBasic PRO for PIC32 implements a number of predened globals and
constants.
All PIC32 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 mikroBasic PRO for PIC32 will include an appropriate
(*.mbas) 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 mikroBasic PRO for PIC32 installation
folder, or probe the Code Assistant for specic letters (Ctrl+Space in the Code Editor).
Predened project level denes
mikroBasic PRO for PIC32 provides 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 P32MX460F512L
...
#ENDIF
Second one is equal to the family name:
#IFDEF PIC32
...
#ENDIF
Related topics: Project Level Denes