User manual

mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
157
Prototype
sub procedure Reset()
Description This procedure is equal to assembler instruction reset.
Parameters None.
Returns Nothing.
Requires Nothing.
Example
Reset() ‘ Resets the MCU
Notes None.
Reset
Prototype
sub procedure ClrWdt()
Description This procedure is equal to assembler instruction clrwdt.
Parameters None.
Returns Nothing.
Requires Nothing.
Example
ClrWdt() ‘ Clears WDT
Notes None.
ClrWdt
Prototype
sub procedure DisableContextSaving()
Description Use the DisableContextSaving() to instruct the compiler not to automatically perform context-
switching. This means that no register will be saved/restored by the compiler on entrance/exit from
interrupt service routine. This enables the user to manually write code for saving registers upon
entrance and to restore them before exit from interrupt.
Parameters None.
Returns Nothing.
Requires This routine must be called from main.
Example
DisableContextSaving() instruct the compiler not to automatically perform
context-switching
Notes None.
DisableContextSaving()