Datasheet

PIC16F716
DS41206B-page 16 © 2007 Microchip Technology Inc.
2.2.2.6 PCON Register
The Power Control (PCON) register contains a flag bit
to allow differentiation between a Power-on Reset
(POR) to an external MCLR
Reset or WDT Reset.
These devices contain an additional bit to differentiate
a Brown-out Reset condition from a Power-on Reset
condition.
Note: If the BOREN Configuration bit is set, BOR
is ‘1on Power-on Reset and reset to ‘0
when a Brown-out condition occurs. BOR
must then be set by the user and checked
on subsequent Resets to see if it is clear,
indicating that another Brown-out has
occurred.
If the BOREN Configuration bit is clear,
B
OR is unknown on Power-on Reset.
REGISTER 2-6: PCON: POWER CONTROL REGISTER
U-0 U-0 U-0 U-0 U-0 U-0 R/W-0 R/W-x
—PORBOR
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 7-2 Unimplemented: Read as ‘0
bit 1 POR
: Power-on Reset Status bit
1 = No Power-on Reset occurred
0 = A Power-on Reset occurred (must be set in software after a Power-on Reset occurs)
bit 0 BOR
: Brown-out Reset Status bit
1 = No Brown-out Reset occurred
0 = A Brown-out Reset occurred (must be set in software after a Brown-out Reset occurs)