English
Language : 

PIC16F628-20P Datasheet, PDF (26/170 Pages) Microchip Technology – FLASH-Based 8-Bit CMOS Microcontroller
PIC16F62X
3.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
clearing the BODEN bit in the
Configuration word).
REGISTER 3-6:
PCON REGISTER (ADDRESS: 0Ch)
U-0
U-0
U-0
U-0
—
—
—
—
bit 7
R/W-1
OSCF
U-0
R/W-q R/W-q
—
POR
BOD
bit 0
bit 7-4
bit 3
bit 2
bit 1
bit 0
Unimplemented: Read as '0'
OSCF: INTRC/ER oscillator frequency
1 = 4 MHz typical(1)
0 = 37 KHz typical
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)
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 frequency to
change to the frequency specified by the external resistor.
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
DS40300C-page 24
Preliminary
 2003 Microchip Technology Inc.