English
Language : 

PIC16F193X Datasheet, PDF (116/418 Pages) Microchip Technology – 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology
PIC16F193X/LF193X
8.5.6 OSCTUNE REGISTER
The HFINTOSC and MFINTOSC are factory calibrated
but can be adjusted in software by writing to the
OSCTUNE register (Register 8-3).
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 oscillator
frequency will begin shifting to the new frequency. Code
execution continues during this shift. There is no
indication that the shift has occurred.
The OSCTUNE register applies the same adjustment to
both the HFINTOSC and the MFINTOSC
simultaneously.
OSCTUNE does not affect the LFINTOSC frequency.
Operation of features that depend on the LFINTOSC
clock source frequency, such as the Power-up Timer
(PWRT), Watchdog Timer (WDT), Fail-Safe Clock
Monitor (FSCM) and peripherals, are not affected by the
change in frequency.
REGISTER 8-3: OSCTUNE: OSCILLATOR TUNING REGISTER
U-0
—
bit 7
U-0
R/W-0/0
R/W-0/0
R/W-0/0
R/W-0/0
—
TUN5
TUN4
TUN3
TUN2
R/W-0/0
TUN1
R/W-0/0
TUN0
bit 0
Legend:
R = Readable bit
u = bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7-6
bit 5-0
Unimplemented: Read as ‘0’
TUN<4:0>: Frequency Tuning bits
011111 = Maximum frequency
011110 =
•
•
•
000001 =
000000 = Oscillator module is running at the factory-calibrated frequency.
111111 =
•
•
•
100000 = Minimum frequency
DS41364A-page 114
Preliminary
© 2008 Microchip Technology Inc.