User manual
214
mikoPascal PRO for PIC32
MikroElektronika
Type Qualiers
The type qualiers const and volatile are optional in declarations and do not actually affect the type of declared
object.
Qualier const
The qualier const implies that a declared object will not change its value during runtime. In declarations with the
const qualier all objects need to be initialized.
The mikroPascal PRO for PIC32 treats objects declared with the const qualier the same as literals or preprocessor
constants. If the user tries to change an object declared with the const qualier compiler will report an error.
For example:
const PI : byte := 3.14159;
Qualier volatile
The qualier volatile implies that a variable may change its value during runtime independently from the program. Use
the volatile modier 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