User manual

Table Of Contents
156
mikoC PRO for PIC32
MikroElektronika
Prototype
void CP0_SET(TCPOReg register, unsigned long value);
Description Function sets the value of the coprocessor register or part of the register, based upon the register
argument.
Parameters - register: Register or register part, must be a constant from the enumerated built-in constants list,
which can be found at the bottom of this page.
- value: Register Value.
Returns Nothing.
Requires Nothing.
Example
CP0_SET(CP0_CONFIG, 0x1A2C0000);
Notes None.
CP0_SET
Prototype
void EnableInterrupts();
Description Function enables interrupts.
Parameters None.
Returns Nothing.
Requires Nothing.
Example
EnableInterrupts();
Notes None.
EnableInterrupts
Prototype
void DisableInterrupts();
Description Function disables interrupts.
Parameters None.
Returns Nothing.
Requires Nothing.
Example
DisableInterrupts();
Notes None.
DisableInterrupts
Coprocessor Registers
CP0_HWRENA CP0_BADVADDR CP0_COUNT CP0_COMPARE CP0_STATUS
CP0_INTCTL CP0_SRSCTL CP0_SRSMAP CP0_CAUSE CP0_EPC
CP0_PRID CP0_EBASE CP0_CONFIG CP0_CONFIG1 CP0_CONFIG2
CP0_CONFIG3 CP0_DEBUG CP0_TRACECONTROL CP0_TRACECONTROL2 CP0_USERTRACEDATA
CP0_TRACEBPC CP0_DEBUG2 CP0_DEPC CP0_ERROREPC CP0_DESAVE