User manual

214
mikoPascal PRO for PIC32
MikroElektronika
Type Qualiers
The type qualiers const and volatile are optional in declarations and do not actually affect the type of declared
object.
Qualier const
The qualier const implies that a declared object will not change its value during runtime. In declarations with the
const qualier all objects need to be initialized.
The mikroPascal PRO for PIC32 treats objects declared with the const qualier the same as literals or preprocessor
constants. If the user tries to change an object declared with the const qualier compiler will report an error.
For example:
const PI : byte := 3.14159;
Qualier volatile
The qualier volatile implies that a variable may change its value during runtime independently from the program. Use
the volatile modier to indicate that a variable can be changed by a background routine, an interrupt routine, or I/O port.
Declaring an object to be volatile warns the compiler not to make assumptions concerning the value of an object while
evaluating expressions in which it occurs because the value could be changed at any moment.
Operators
Operators are tokens that trigger some computation when being applied to variables and other objects in an
expression.
There are four types of operators in mikroPascal PRO for PIC32:
- Arithmetic Operators
- Bitwise Operators
- Boolean Operators
- Relational Operators