Microchip Technology AC244049 Scheda Tecnica

Pagina di 302
PIC16F72X/PIC16LF72X
DS41341E-page 92
© 2009 Microchip Technology Inc.
7.5
Oscillator Tuning
The INTOSC is factory calibrated but can be adjusted
in software by writing to the OSCTUNE register
(Register 7-2).
The default value of the OSCTUNE register is ‘0’. The
value is a 6-bit two’s complement number.
When the OSCTUNE register is modified, the INTOSC
frequency will begin shifting to the new frequency. Code
execution continues during this shift. There is no
indication that the shift has occurred.
  
REGISTER 7-2:
OSCTUNE: OSCILLATOR TUNING REGISTER
U-0
U-0
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
TUN5
TUN4
TUN3
TUN2
TUN1
TUN0
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-6
Unimplemented: Read as ‘0’
bit 5-0
TUN<5:0>: Frequency Tuning bits
01 1111
 = Maximum frequency
01 1110
 = 



00 0001
 = 
00 0000
 = Oscillator module is running at the factory-calibrated frequency.
11 1111
 = 



10 0000
 = Minimum frequency