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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
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 PCWHD IDE COMPILER