View previous topic :: View next topic |
Author |
Message |
picprogrammer
Joined: 10 Sep 2003 Posts: 35
|
16F1825 internal 32Mhz |
Posted: Fri Jan 20, 2012 11:48 am |
|
|
According the datasheet of the 16F1825 it must be possible to set the internal clock to 32mhz 4x8Mhz PLL
However
setup_oscillator(OSC_8MHZ|OSC_INTRC|OSC_PLL_ON,0);
Does not work, pll_on or off no difference. Always off.
Also #FUSES PLL no difference, the 4xPLL stays off in MPlab. When i override the configuration bits no change. So why is internal oscillator and PLL not possible?
In the datasheet: INTOSC – Internal oscillator (31 kHz to 32 MHz).
In figure FIGURE 5-1 shows 8Mhz can be routed to the 4xPLL |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jan 20, 2012 12:09 pm |
|
|
Always post your compiler version for a question of this type. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9220 Location: Greensville,Ontario
|
|
Posted: Fri Jan 20, 2012 12:51 pm |
|
|
Section 5.2.2.6 details how the various fuses have to be set to enable the 4XPLL with Internal Oscillator.
I suspect that the fuses are not being setup in the correct sequence but I don't have that chip to confirm what is actually programmed into one. |
|
|
Tasark
Joined: 25 Jan 2011 Posts: 12
|
|
Posted: Sat Apr 13, 2013 5:10 pm |
|
|
Compiler 4.138
I've tried this as well and can only get 8mhz no matter what I try. I'm not sure how to set the FOSC bits that are described in the datasheet. Any help? |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
jgschmidt
Joined: 03 Dec 2008 Posts: 184 Location: Gresham, OR USA
|
|
Posted: Sun Apr 14, 2013 9:56 am |
|
|
I'm currently using this family of processors. Here is my setup for 32MHz internal clock:
Code: | #include <16f1825.h>
#FUSES INTRC_IO //Internal RC Osc, no output
#FUSES NOWDT //No Watch Dog Timer
#FUSES NOPUT //No Power Up Timer
#FUSES NOMCLR //Engages weak pullup
#FUSES NOBROWNOUT //No brownout reset
#use delay(internal=32M) |
Cheers, _________________ Jürgen
www.jgscraft.com |
|
|
|