![](http://datasheet.mmic.net.cn/260000/PIC16F877A_datasheet_15942856/PIC16F877A_29.png)
2001 Microchip Technology Inc.
Advance Information
DS39582A-page 27
PIC16F87XA
2.2.2.8
PCON Register
The Power Control (PCON) Register contains flag bits
to allow differentiation between a Power-on Reset
(POR), a Brown-out Reset (BOR), a Watchdog Reset
(WDT), and an external MCLR Reset.
REGISTER 2-8:
PCON REGISTER (ADDRESS 8Eh)
Note:
BOR is unknown on Power-on Reset. It
must be set by the user and checked on
subsequent RESETS to see if BOR is
clear, indicating a brown-out has occurred.
The BOR status bit is a
“
don
’
t care
”
and is
not predictable if the brown-out circuit is
disabled (by clearing the BODEN bit in the
configuration word).
U-0
—
U-0
—
U-0
—
U-0
—
U-0
—
U-0
—
R/W-0
POR
R/W-1
BOR
bit 7
bit 0
bit 7-2
bit 1
Unimplemented:
Read as '0'
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)
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)
bit 0
Legend:
R = Readable bit
- n = Value at POR
W = Writable bit
’
1
’
= Bit is set
U = Unimplemented bit, read as
‘
0
’
’
0
’
= Bit is cleared
x = Bit is unknown