PIC16F62X
4.2.2.6
PCON REGISTER
The PCON register contains flag bits to differentiate
between a Power-on Reset, an external MCLR reset,
WDT reset or a Brown-out Detect.
Note: BOD is unknown on Power-on Reset. It
must then be set by the user and checked
on subsequent resets to see if BOD is
cleared, indicating
a
brown-out has
occurred. The BOD status bit is a "don’t
care" and is not necessarily predictable if
the brown-out circuit is disabled (by
programming
BOREN
bit
in
the
Configuration word).
REGISTER 4-6: PCON REGISTER (ADDRESS 8Eh)
U-0
—
U-0
U-0
U-0
R/W-1
U-0
R/W-q
R/W-q
BOD
bit0
—
—
—
OSCF
—
POR
R = Readable bit
W = Writable bit
bit7
U = Unimplemented bit, read
as ’0’
-n = Value at POR reset
bit 7-4,2:Unimplemented: Read as '0'
bit 3:
bit 1:
bit 0:
OSCF: INTRC/ER oscillator speed
1= 4 MHz typical(1)
0= 37 KHz typical
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)
BOD: Brown-out Detect 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)
Note 1: When in ER oscillator mode, setting OSCF = 1 will cause the oscillator speed to change to the speed
specified by the external resistor.
DS40300B-page 24
Preliminary
1999 Microchip Technology Inc.