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

Is it possible to bypass clock frequency limit of CCS ?

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



Joined: 14 May 2021
Posts: 24

View user's profile Send private message

Is it possible to bypass clock frequency limit of CCS ?
PostPosted: Fri Jul 30, 2021 7:50 am     Reply with quote

Hello,

I know this is not recommended, but I would like to try to overclock a dsPIC33EP.
This is not possible with CCS. You can't exceed the official maximum clock speed.
Is there a way to remove this limitation ?

Thank you very much Smile
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Fri Jul 30, 2021 8:09 am     Reply with quote

On most of the DSPIC's, you can change the clock rate by manually setting
the PLLFBD register. However unlike a lot of the older chips, the clock rates
have very little margin. The clocks have comments like:
"This frequency range must be met at all times", and in fact the chips are
often borderline for cooling, even 'at' their rated frequencies.
However the compiler usually does not limit this. It may well be refusing
because there is no PLL option to get to the frequency.
For example on my current chip it won't allow you to select 150MHz, but does
if you use an external oscillator at a slightly higher frequency than the internal
RC. On the RC there is not a PLL ratio that gives a frequency much above the
rated max.
WalkOver



Joined: 14 May 2021
Posts: 24

View user's profile Send private message

PostPosted: Fri Jul 30, 2021 9:27 am     Reply with quote

Hello Ttelmah,

I think there is a limitation on CCS because when using this directive:
Code:
#use delay(clock=XXXMHz,oscillator=8Mhz)

The compiler return me the error : "there is no PLL option" as soon as the clock is > 140Mhz

But I didn't know that we could use this instead:
Code:
#use delay(clock=XXXMHz)

I think I can use a 8Mhz or a 16Mhz oscillator with a PLLFBD of 78 or 38 and still meet the clock tree.
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Fri Jul 30, 2021 10:24 am     Reply with quote

Have a boot clock=, and then a second #use delay after you change
the PLL.
What chip?
newguy



Joined: 24 Jun 2004
Posts: 1908

View user's profile Send private message

PostPosted: Fri Jul 30, 2021 2:31 pm     Reply with quote

As Ttelmah has stated, you can "manually" do anything you want via register-level access to the clock. The dsPICs have a 7.37MHz internal oscillator - boot from that, then attempt a switchover to something out of spec. After that, flash an LED or toggle a line (observe with a scope) just to see if the change worked and if the processor is actually running at the new speed.

http://www.ccsinfo.com/forum/viewtopic.php?p=159723&highlight=crystal#159723
Ttelmah



Joined: 11 Mar 2010
Posts: 19520

View user's profile Send private message

PostPosted: Sat Jul 31, 2021 10:34 am     Reply with quote

Also remember that when you overclock, other things can often go wrong. So
(for instance) the SPI, UART or ADC are ones that will often fail. The failures
are commonly intermittent and only when temperatures rise. I consider
most of the DsPIC's 'too close to their limit', to be reliably overclocked. I
usually underclock them since I have had several develop oddities at their
rated clock rates when temperatures get high...
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