CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

16F1825 internal 32Mhz

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
picprogrammer



Joined: 10 Sep 2003
Posts: 35

View user's profile Send private message

16F1825 internal 32Mhz
PostPosted: Fri Jan 20, 2012 11:48 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Jan 20, 2012 12:09 pm     Reply with quote

Always post your compiler version for a question of this type.
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Fri Jan 20, 2012 12:51 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Apr 13, 2013 5:10 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Apr 13, 2013 6:49 pm     Reply with quote

Quote:
I've tried this as well and can only get 8mhz no matter what I try.

Post your test program. Preferably make it an LED blinking program:


Examples of short test programs for 32 MHz operation of PICs in
the 16F18xx series:

16F1823:
http://www.ccsinfo.com/forum/viewtopic.php?t=47854&start=4

16F1828:
http://www.ccsinfo.com/forum/viewtopic.php?t=47219&start=2
jgschmidt



Joined: 03 Dec 2008
Posts: 184
Location: Gresham, OR USA

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Apr 14, 2013 9:56 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group