Microchip Technology MCP9800DM-DL2 Data Sheet
2004-2013 Microchip Technology Inc.
DS40001239E-page 21
PIC10F200/202/204/206
4.6
OSCCAL Register
The Oscillator Calibration (OSCCAL) register is used to
calibrate the internal precision 4 MHz oscillator. It
contains seven bits for calibration
calibrate the internal precision 4 MHz oscillator. It
contains seven bits for calibration
.
After you move in the calibration constant, do not
change the value. See Section 9.2.2 “Internal 4 MHz
Oscillator”.
change the value. See Section 9.2.2 “Internal 4 MHz
Oscillator”.
Note:
Erasing the device will also erase the pre-
programmed internal calibration value for
the internal oscillator. The calibration
value must be read prior to erasing the
part so it can be reprogrammed correctly
later.
programmed internal calibration value for
the internal oscillator. The calibration
value must be read prior to erasing the
part so it can be reprogrammed correctly
later.
REGISTER 4-3:
OSCCAL REGISTER
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-0
CAL6
CAL5
CAL4
CAL3
CAL2
CAL1
CAL0
FOSC4
bit 7
bit 0
Legend:
R = Readable bit
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-1
CAL<6:0>: Oscillator Calibration bits
0111111 = Maximum frequency
•
•
•
0000001
0000000 = Center frequency
1111111
•
•
•
1000000 =Minimum frequency
0111111 = Maximum frequency
•
•
•
0000001
0000000 = Center frequency
1111111
•
•
•
1000000 =Minimum frequency
bit 0
FOSC4: INTOSC/4 Output Enable bit
(1)
1 = INTOSC/4 output onto GP2
0 = GP2/T0CKI/COUT applied to GP2
0 = GP2/T0CKI/COUT applied to GP2
Note 1:
Overrides GP2/T0CKI/COUT control registers when enabled.