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

External Oscillator frequency for 16f689

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







External Oscillator frequency for 16f689
PostPosted: Mon Feb 22, 2010 3:42 am     Reply with quote

Hi

I would like to know if 16f689 supports external Oscillator frequency
6 MHz for external Oscillator frequency 4Mhz to be used in function:
Code:

setup_oscillator(OSC_4MHZ, OSC_NORMAL);

Is it right ?

yrb
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 22, 2010 1:22 pm     Reply with quote

The setup_oscillator() function is used for the internal oscillator,
not external. The internal oscillator supports 4 MHz and 8 MHz, and
other frequencies but not 6 MHz. If you want 6 MHz, then use an
external crystal (with 22pf capacitors) and use HS in the #fuses.
Don't use setup_oscillator() for an external crystal.
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