PIC16F630/676
2.2.2.6
PCON Register
The Power Control (PCON) register contains flag bits
to differentiate between a:
• Power-on Reset (POR)
• Brown-out Detect (BOD)
• Watchdog Timer Reset (WDT)
• External MCLR Reset
The PCON Register bits are shown in Register 2-6.
REGISTER 2-6:
PCON — POWER CONTROL REGISTER (ADDRESS: 8Eh)
U-0
—
U-0
—
U-0
—
U-0
—
U-0
—
U-0
—
R/W-0
POR
R/W-x
BOD
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)
bit 0
BOD: Brown-out Detect STATUS bit
1= No Brown-out Detect occurred
0= A Brown-out Detect occurred (must be set in software after a Brown-out Detect occurs)
Legend:
R = Readable bit
W = Writable bit
’1’ = Bit is set
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared x = Bit is unknown
- n = Value at POR
2.2.2.7
OSCCAL Register
The Oscillator Calibration register (OSCCAL) is used to
calibrate the internal 4 MHz oscillator. It contains 6 bits
to adjust the frequency up or down to achieve 4 MHz.
The OSCCAL register bits are shown in Register 2-7.
REGISTER 2-7: OSCCAL—INTERNALOSCILLATORCALIBRATIONREGISTER(ADDRESS:90h)
R/W-1
CAL5
R/W-0
CAL4
R/W-0
CAL3
R/W-0
CAL2
R/W-0
CAL1
R/W-0
CAL0
U-0
—
U-0
—
bit 7
bit 0
bit 7-2
bit 1-0
CAL5:CAL0: 6-bit Signed Oscillator Calibration bits
111111= Maximum frequency
100000= Center frequency
000000= Minimum frequency
Unimplemented: Read as '0'
Legend:
R = Readable bit
W = Writable bit
’1’ = Bit is set
U = Unimplemented bit, read as ‘0’
’0’ = Bit is cleared x = Bit is unknown
- n = Value at POR
DS40039E-page 16
© 2007 Microchip Technology Inc.