SW006010 Microchip Technology, SW006010 Datasheet - Page 48

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
MPLAB
2.10
apRNOVS^-page 44
RESET FUNCTIONS
C17 C Compiler Libraries
This section contains a list of individual functions and an example of use of the
functions in this section. Functions may be implemented as macros.
2.10.1
isBOR
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
isMCLR
Device:
Function:
Include:
Prototype:
Arguments:
Remarks:
Return Value:
File Name:
Code Example:
Function Descriptions
PIC17C756
Detects a reset condition due to the Brown-out Reset circuit.
reset16.h
char isBOR (void);
None
This function detects if the microcontroller was reset due to the
Brown-out Reset circuit. This condition is indicated by the
following status bits:
POR = 1
BOR = 0
TO =
PD =
Include the statement
reset16.h
reset16.h
on compilers. Refer to the MPASM™ User's Guide with
MPLINK™ and MPLIB™ (DS33014) for information on linking.
This function returns 1 if the reset was due to the Brown-out
Reset circuit, otherwise 0 is returned.
reset16.c
if(isBOR());
PIC17C756
Detects if a MCLR reset during normal operation occurred.
reset16.h
char isMCLR (void);
None
This function detects if the microcontroller was reset via the
MCLR pin while in normal operation. This situation is indicated
by the following status bits:
POR
BOR
TO
PD
This function returns 1 if the reset was due to MCLR during
normal operation, otherwise 0 is returned.
reset16.c
if(isMCLR());
then ...
then ...
= 1
= 1
= 1
= 1
don't care
don't care
if Brown-out is enabled
if WDT is enabled
. After the definitions have been made, compile the
file. Refer to Chapter 2 of this manual for information
#define BOR_ENABLED
 2002 Microchip Technology Inc.
in the header file

Related parts for SW006010