Running int osc at 80MHz

Discuss the Firewing development environment

Running int osc at 80MHz

Postby skartalov » Thu Nov 07, 2013 7:36 pm

Hi,
Who can help me configure the right bits to make the processor run on internal osc at full speed 80Mhz?
skartalov
 
Posts: 69
Joined: Sun Sep 15, 2013 1:12 pm

Re: Running int osc at 80MHz

Postby David John Barker » Thu Nov 07, 2013 8:11 pm

just put
Code: Select all
clock = 80

at the very top of your program - be careful though, some timing critical modules such as UART may not play ball at this speed (it works here, but internal OSC does not have the accuracy of an external xtal). Firewing will auto adjust the internal OSC when using clock = 8, 16, 32, 64 or 80.
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: Running int osc at 80MHz

Postby skartalov » Thu Nov 07, 2013 9:17 pm

I forgot to mention that I am not using FireWing board, but another setup with PIC24HJ128GP504 processor.
I am using MPLAB and PICKIT 3 to program.

So I still need the correct bits settings.


Thanks!
skartalov
 
Posts: 69
Joined: Sun Sep 15, 2013 1:12 pm

Re: Running int osc at 80MHz

Postby Jerry Messina » Thu Nov 07, 2013 9:48 pm

If you're using the internal osc, then it doesn't matter that you're not using the Firewing board... it would be setup the same.
Jerry Messina
 
Posts: 280
Joined: Thu Feb 14, 2013 10:16 am

Re: Running int osc at 80MHz

Postby skartalov » Fri Nov 08, 2013 7:27 am

Yes, I know that. But I still need to know how exactly to adjust the PLL multiplier and dividers to achieve 80MHz, with INT OSC.
skartalov
 
Posts: 69
Joined: Sun Sep 15, 2013 1:12 pm

Re: Running int osc at 80MHz

Postby David John Barker » Fri Nov 08, 2013 7:55 am

see here:

viewtopic.php?f=5&t=84

and also take a look at the device file (24HJ128GP502.bas) main sub...
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm


Return to Development Environment

Who is online

Users browsing this forum: No registered users and 1 guest

x