User manual

158
mikoPascal PRO for PIC32
MikroElektronika
Prototype
function CP0_GET(const register: TCP0REG): dword;
Description Function returns the value of the coprocessor register or part of the register, based upon the argument
entered.
Parameters Parameter must be a constant from the enumerated built-in constants list, which can be found at the
bottom of this page.
Returns Value of the coprocessor register or part of the register.
Requires Nothing.
Example
var register_value : dword;
register_value := CP0_GET(CP0_CONFIG);
Notes None.
Prototype
procedure CP0_SET(const register: TCP0REG; value: dword);
Description Function sets the value of the coprocessor register or part of the register, based upon the register
argument.
Parameters Function sets the value of the coprocessor register or part of the register, based upon the register
argument.
Returns Nothing.
Requires Nothing.
Example
CP0_SET(CP0_CONFIG, 0x1A2C0000);
Notes None.
Prototype
procedure EnableInterrupts();
Description Function enables interrupts.
Parameters None.
Returns Nothing.
Requires Nothing.
Example
EnableInterrupts();
Notes None.
CP0_GET
CP0_SET
EnableInterrupts