fvnktion
Joined: 27 Jun 2006 Posts: 39
|
enalbe pll with internal osc |
Posted: Wed Dec 13, 2006 2:34 pm |
|
|
Hello,
I am using a 18F4520 and see that the PLL is available to the internal OSC, but i do not see any fuses or configuration functions in the .h file to enable the PLLEN. See the below quote, which came from the data sheet.
Do i need to set the bit with directly writing assembly to access the register in my code???
Quote: | 2.6.4 PLL IN INTOSC MODES
The 4x frequency multiplier can be used with the internal
oscillator block to produce faster device clock
speeds than are normally possible with an internal
oscillator. When enabled, the PLL produces a clock
speed of up to 32 MHz.
Unlike HSPLL mode, the PLL is controlled through
software. The control bit, PLLEN (OSCTUNE<6>), is
used to enable or disable its operation.
The PLL is available when the device is configured to
use the internal oscillator block as its primary clock
source (FOSC3:FOSC0 = 1001 or 1000). Additionally,
the PLL will only function when the selected output frequency
is either 4 MHz or 8 MHz (OSCCON<6> = 111
or 110). If both of these conditions are not met, the PLL
is disabled.
The PLLEN control bit is only functional in those internal
oscillator modes where the PLL is available. In all
other modes, it is forced to ‘0’ and is effectively
unavailable. |
Thank you for input! |
|