can anyone prvide clarification on the setup_oscillator function?
I am using a PIC18F4680 and trying to use the iternal oscillator at 8MHZ and use the PLL to clock it up to 32MHZ.
using the CCS constants in setup_oscillator doesn't seem to work. However setting the registers manually does seem to work. If I want to run @ 32Mhz immediately when should I call setup_oscillator?
Ttelmah Guest
Posted: Sat Dec 30, 2006 10:31 am
What compiler version?.
On 3.249, if you call 'setup_oscillator(OSC_32MHZ);', it works OK.
It also does it OK, if you just define the fuse as 'INTRC', and on the next line set the clock as 32MHz.
With either (or both) of these, it correctly sets the PLL enable bit, and sets the oscillator to 8Mhz.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum