PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 254

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
restart_cause( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
240
value = restart_cause()
None
A value indicating the cause of the last processor reset. The actual values are
device dependent. See the device .h file for specific values for a specific device.
Some example values are: RESTART_POWER_UP, RESTART_BROWNOUT,
RESTART_WDT and RESTART_MCLR
Returns the cause of the last processor reset.
In order for the result to be accurate, it should be called immediately in main().
All devices
Constants are defined in the devices .h file.
switch ( restart_cause() ) {
}
ex_wdt.c
restart_wdt(),
case RESTART_WDT:
case RESTART_MCLR:
case RESTART_BROWNOUT:
handle_error();
reset_cpu()

Related parts for PCDIDE COMPILER