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

PIC24 Oscillator

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



Joined: 06 Oct 2006
Posts: 13

View user's profile Send private message

PIC24 Oscillator
PostPosted: Mon Sep 21, 2015 9:02 am     Reply with quote

I have been looking at oscillator configs for a PIC24FJ128GA204 and I am getting more confused. I was reading this post: http://www.ccsinfo.com/forum/viewtopic.php?p=159723&highlight=crystal#159723. Does anybody have PIC24s going at a fast frequency? (I wanted to go 24MHz + 4x PLL = 96Mhz) I look at the data sheet and they state 8MHz is the fastest internal CLK with PLL but they do not state what the fastest Ext CLK is using PLL. I'm thinking I will have to start with the internal (8MHz) and switch to my EXT crystal + PLL. Has anybody done this?
-Bruce
Edit: the more I look at this 32MHz is as fast as this "puppy" is gonna go.


Last edited by dish_moose on Mon Sep 21, 2015 10:39 am; edited 1 time in total
newguy



Joined: 24 Jun 2004
Posts: 1907

View user's profile Send private message

PostPosted: Mon Sep 21, 2015 10:38 am     Reply with quote

The issue I was having came down to a line buried in the datasheet. That particular dsPIC cannot be started from powerup with a 12MHz crystal. Lower values are okay, but 12MHz isn't guaranteed to start. That's why I had to use the internal oscillator initially, then perform the switchover to the external crystal & PLL.

I was a little annoyed that CCS sold (and I believe still sell) a kit that is equipped with a 12MHz crystal but they don't supply working code to automatically perform the switchover.

Consult the data sheet for your PIC. I'm willing to bet that your PIC has the same issue. If that's the case, using the code I posted as a guideline and the data sheet for your PIC, you should be able to get the internal/external switchover working just fine.
jeremiah



Joined: 20 Jul 2010
Posts: 1346

View user's profile Send private message

PostPosted: Mon Sep 21, 2015 4:57 pm     Reply with quote

Typically the "FJ" parts are not the fast ones. You find more low power and general purpose PICs in this part of the family. Most PIC24FJ parts only going up to 32MHz (PLL) or 24ishMHz external.

Look at the PIC24EP or dsPIC. They allow the higher frequencies.
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