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 support@ccsinfo.com

Crystal problems!

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



Joined: 28 Aug 2007
Posts: 99
Location: New Zealand

View user's profile Send private message

Crystal problems!
PostPosted: Wed Aug 05, 2009 3:28 am     Reply with quote

Is it possible to run PIC's without an external crystal?

For some reason I thought it was possible but don't seem to be able to get it to work.

Micro is a 16F628a so pins 15/16 can be connected to external crystal but don't want them to be.
Ttelmah
Guest







PostPosted: Wed Aug 05, 2009 4:57 am     Reply with quote

Basic answer. It depends on the PIC. Some have an internal complete oscillator, others _require_ external components.

In your case, the 16F628A, supports this.
Just select the oscillator fuse, as 'INTRC_IO'. Make sure no other oscillator fuse is selected.
Set your 'clock' statement, to use 4000000.

The compiler will then set this up for you.

Only two speeds are available fo the internal oscillator on this chip. 4MHz, or 48KHz. Unless you want super low power, and very low speed, 4Mhz, is your only option.

The extra pins are A6, and A7.

Best Wishes
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