SW006010 Microchip Technology, SW006010 Datasheet - Page 49

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
 2002 Microchip Technology Inc.
isPOR
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
isWDTTO
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
PIC17C4X, PIC17C756
Detects a Power-on Reset condition.
reset16.h
char isPOR (void);
None
This function detects if the microcontroller just left a Power-on
Reset. This condition is indicated by the following status bits:
PIC17C4X
This condition also for MCLR reset during normal operation and
CLRWDT
PIC17C756
This function returns 1 if the device just left a Power-on Reset,
otherwise 0 is returned.
reset16.c
if(isPOR());
PIC17C4X, PIC17C756
Detects a reset condition due to the WDT during normal
operation.
reset16.h
char isWDTTO (void);
None
This function detects if the microcontroller was reset due to the
WDT during normal operation. This condition is indicated by the
following status bits:
PIC17C4X
PIC17C756
Include the statement
reset16.h.
reset16.c
on compilers. Refer to the MPASM™ User's Guide with
MPLINK™ and MPLIB™ (DS33014) for information on linking.
then ...
TO = 1
PD = 1
POR = 0
BOR = 0
TO = 1
PD = 1
TO
PD
POR
BOR
TO
PD
= 0
= 1
= 0
= 1
= 1
= 1
instruction executed.
Hardware Peripheral Library
file. Refer to Chapter 2 of this manual for information
After the definitions have been made, compile the
#define WDT_ENABLED
in the header file
apRNOVS^-page 45

Related parts for SW006010