Datasheet

2011 Microchip Technology Inc. Preliminary DS41576B-page 43
PIC12F752/HV752
4.5.1 OSCTUNE REGISTER
The oscillator is factory calibrated, but can be adjusted
in software by writing to the OSCTUNE register
(Register 4-2).
The default value of the OSCTUNE register is 0’. The
value is a 5-bit two’s complement number.
When the OSCTUNE register is modified, the frequency
will begin shifting to the new frequency. Code execution
continues during this shift. There is no indication that the
shift has occurred.
TABLE 4-2: SUMMARY OF REGISTERS ASSOCIATED WITH CLOCK SOURCES
TABLE 4-3: SUMMARY OF CONFIGURATION WORD CLOCK SOURCES
REGISTER 4-2: OSCTUNE: OSCILLATOR TUNING REGISTER
U-0 U-0 U-0 R/W-0/u R/W-0/u R/W-0/u R/W-0/u R/W-0/u
TUN<4:0>
bit 7 bit 0
Legend:
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-5 Unimplemented: Read as ‘0
bit 4-0 TUN<4:0>: Frequency Tuning bits
01111 = Maximum frequency
01110 =
00001 =
00000 = Oscillator module is running at the calibrated frequency.
11111 =
10000 = Minimum frequency
Name Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Register
on Page
OSCCON
—IRCF<1:0>—HTSLTS 42
OSCTUNE
—TUN<4:0> 43
Legend: x = unknown, u = unchanged, = unimplemented locations read as ‘0’. Shaded cells are not used by
oscillators.
Note 1: Other (non Power-up) Resets include MCLR Reset and Watchdog Timer Reset during normal operation.
2: See Configuration Word register (Register 17-1) for operation of all register bits.
Name Bits Bit -/7 Bit -/6 Bit 13/5 Bit 12/4 Bit 11/3 Bit 10/2 Bit 9/1 Bit 8/0
Register
on Page
CONFIG
13:8
DEBUG CLKOUTEN WRT<1:0> BOREN<1:0>
142
7:0
CP MCLRE PWRTE WDTE —FOSC0
Legend: — = unimplemented location, read as ‘1’. Shaded cells are not used by oscillator module.