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

Increase the execution speed for PIC16f877a

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



Joined: 10 Sep 2009
Posts: 47

View user's profile Send private message

Increase the execution speed for PIC16f877a
PostPosted: Wed Feb 10, 2010 7:32 am     Reply with quote

Hey all,
I am using PIC16F877A and a crystal of value 20MHz. I want to increase the execution speed. Can I use a crystal greater than 20MHz ?
Guest








PostPosted: Wed Feb 10, 2010 8:09 am     Reply with quote

While it is possible to -try- to use a faster xtal, it may not work, or may be erratic.

Instead, you can either use a newer, faster pin compatible PIC.
or
Rewrite your code to trim out bad code, delays, long jump tables, use int math instead of fp math, build your own libraries, use asm code if smaller than C, etc.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Wed Feb 10, 2010 8:11 am     Reply with quote

First look at the PIC data sheet. Is this a commercial product, or a home experiment? If it is a product or if failure could be life threatening etc. then stick with what is on the data sheet, or get a written waiver from Microchip.

If it is a home project, give it a try! Be aware it may not work over all voltages or temperatures. But if it is a cat toy, who cares if it croaks in the icebox.

Also, tell us how you make out. How fast can a PIC16F877A REALLY go?
_________________
The search for better is endless. Instead simply find very good and get the job done.
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

View user's profile Send private message Visit poster's website

PostPosted: Wed Feb 10, 2010 9:18 am     Reply with quote

Overclocking a PIC haha :-D I myself have pushed a PIC16F628A to 25MHz. :-)

I read this ( http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=54 ) a long while back. Have fun!

Rohit
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Fri Feb 12, 2010 12:48 am     Reply with quote

Use a 18F4620 its pin compatible, faster with max. speed at 40 Mhz, has more RAM and ROM.

If your application needs a smaller pin count, consider using a 18F2620, has the same max. speed as the 4620 but has smaller pin count at 28 pins.

Hope this was helpful..

thanks
arunb
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Tue Feb 16, 2010 2:46 pm     Reply with quote

I read a while ago some guy ran a 16F84 up to 32MHz without any issues... exept a bit of heat and more power comsumption.... but that was expected.... as one of the previous posters said... if its for a home experiment, you should try it.

Your timing routines will need tuning though... and baud rates too.
_________________
CCS PCM 5.078 & CCS PCH 5.093
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