English
Language : 

DSPIC30F5015-30I Datasheet, PDF (155/234 Pages) Microchip Technology – High-Performance, 16-bit Digital Signal Controllers
21.2.2 OSCILLATOR START-UP TIMER
(OST)
In order to ensure that a crystal oscillator (or ceramic
resonator) has started and stabilized, an Oscillator
Start-up Timer is included. It is a simple 10-bit counter
that counts 1024 TOSC cycles before releasing the
oscillator clock to the rest of the system. The time-out
period is designated as TOST. The TOST time is involved
every time the oscillator has to restart (i.e., on POR,
BOR and wake-up from Sleep). The Oscillator Start-up
Timer is applied to the LP, XT, XTL, and HS Oscillator
modes (upon wake-up from Sleep, POR and BOR) for
the primary oscillator.
21.2.3 LP OSCILLATOR CONTROL
Enabling the LP oscillator is controlled with two
elements:
• The current oscillator group bits COSC<2:0>
• The LPOSCEN bit (OSCCON register)
The LP oscillator is ON (even during Sleep mode) if
LPOSCEN = 1. The LP oscillator is the device clock if:
• COSC<2:0> = 000 (LP selected as main oscillator)
and
• LPOSCEN = 1
Keeping the LP oscillator ON at all times allows for a
fast switch to the 32 kHz system clock for lower power
operation. Returning to the faster main oscillator will
still require a start-up time.
21.2.4 PHASE-LOCKED LOOP (PLL)
The PLL multiplies the clock which is generated by the
primary oscillator. The PLL is selectable to have either
gains of x4, x8 and x16. Input and output frequency
ranges are summarized in Table 21-3.
TABLE 21-3: PLL FREQUENCY RANGE
Fin
PLL
Multiplier
Fout
4 MHz-10 MHz
4 MHz-10 MHz
4 MHz-7.5 MHz
x4
16 MHz-40 MHz
x8
32 MHz-80 MHz
x16 64 MHz-120 MHz
The PLL features a lock output, which is asserted when
the PLL enters a phase locked state. Should the loop
fall out of lock (e.g., due to noise), the lock signal will be
rescinded. The state of this signal is reflected in the
read-only LOCK bit in the OSCCON register.
21.2.5 FAST RC OSCILLATOR (FRC)
The FRC oscillator is a fast (7.37 MHz ±2% nominal)
internal RC oscillator. This oscillator is intended to pro-
vide reasonable device operating speeds without the
use of an external crystal, ceramic resonator or RC net-
work. The FRC oscillator can be used with the PLL to
obtain higher clock frequencies.
dsPIC30F5015/5016
The dsPIC30F operates from the FRC oscillator when-
ever the current oscillator selection control bits in the
OSCCON register (OSCCON<14:12>) are set to ‘001’.
The 6-bit field specified by TUN<4:0> (OSCTUN<4:0>)
allows the user to tune the internal fast RC oscillator
(nominal 7.37 MHz). The user can tune the FRC oscillator
within a range of +12.6% (930 kHz) and -13% (960 kHz)
in steps of 0.4% around the factory-calibrated setting, see
Table 21-4.
Note:
OSCTUN functionality has been provided
to help customers compensate for
temperature effects on the FRC frequency
over a wide range of temperatures. The
tuning step size is an approximation and is
neither characterized nor tested.
If OSCCON<14:12> are set to ‘111’ and FPR<4:0> are
set to ‘00101’, ‘00110’ or ‘00111’, then a PLL
multiplier of 4, 8 or 16 (respectively) is applied.
Note:
When a 16x PLL is used, the FRC oscilla-
tor must not be tuned to a frequency
greater than 7.5 MHz.
TABLE 21-4: FRC TUNING
TUN<5:0>
Bits
FRC Frequency
01 1111
01 1110
01 1101
•
•
•
00 0100
00 0011
00 0010
00 0001
00 0000
11 1111
11 1110
11 1101
11 1100
•
•
•
10 0011
10 0010
10 0001
10 0000
+12.6%
+12.2%
+11.8%
•
•
•
+1.6%
+1.2%
+0.8%
+0.4%
Center Frequency (oscillator is
running at calibrated frequency)
-0.4%
-0.8%
-1.2%
-1.6%
•
•
•
-11.8%
-12.2%
-12.6%
-13.0%
© 2011 Microchip Technology Inc.
DS70149E-page 155