User manual

mikroBasic PRO for PIC32
MikroElektronika
135
- sbit
- bit
- iv
Related topics: Keywords, PIC32 Specic
Predened Globals and Constants
To facilitate PIC32 programming, the mikroBasic PRO for PIC32 implements a number of predened globals and
constants.
All PIC32 SFRs are implicitly declared as global variables of volatile word. These identiers 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 identiers are in upper case, identical to nomenclature in the Microchip datasheets.
For a complete set of predened globals and constants, look for “Defs” in the mikroBasic PRO for PIC32 installation
folder, or probe the Code Assistant for specic letters (Ctrl+Space in the Code Editor).
Predened project level denes
mikroBasic PRO for PIC32 provides predened project level denes 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 Denes