|
PIC16F753 Datasheet, PDF (41/238 Pages) Microchip Technology – 14/16-Pin, Flash-Based 8-Bit CMOS Microcontrollers | |||
|
◁ |
PIC16F753/HV753
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.
REGISTER 4-2: OSCTUNE: OSCILLATOR TUNING REGISTER
U-0
â
bit 7
U-0
U-0
R/W-0/u
R/W-0/u
R/W-0/u
â
â
TUN<4:0>
R/W-0/u
R/W-0/u
bit 0
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
bit 7-5
bit 4-0
Unimplemented: Read as â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
TABLE 4-2: SUMMARY OF REGISTERS ASSOCIATED WITH CLOCK SOURCES
Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Register
on Page
OSCCON
â
â
IRCF<1:0>
â
HTS
LTS
â
40
OSCTUNE
â
â
â
TUN<4:0>
41
Legend: x = unknown, u = unchanged, â = unimplemented locations read as â0â. Shaded cells are not used by
oscillators.
TABLE 4-3: SUMMARY OF CONFIGURATION WORD CLOCK SOURCES
Name Bits Bit -/7
Bit -/6 Bit 13/5
Bit 12/4
Bit 11/3 Bit 10/2 Bit 9/1 Bit 8/0
CONFIG(1) 13:8
â
7:0
â
â
DEBUG CLKOUTEN
WRT<1:0>
CP
MCLRE
PWRTE
WDTE
â
BOREN<1:0>
â
FOSC0
Legend: â = unimplemented location, read as â1â. Shaded cells are not used by oscillator module.
Note 1: See Configuration Word register (Register 19-1) for operation of all register bits.
Register
on Page
162
ï£ 2013 Microchip Technology Inc.
Preliminary
DS40001709A-page 41
|
▷ |