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

16F628 vs 16F628A oscillator

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



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

16F628 vs 16F628A oscillator
PostPosted: Sat Jun 14, 2008 12:54 pm     Reply with quote

Hello,
I am just a bit confused about setup_oscillator. This function does not work with 16F628 (I get "undefined identifier -- setup_oscillator") but it works with 16F628A.

I want to achieve internal 4MHz oscillator:
INTRC_IO fuse and setup_oscillator(OSC_4MHz);

Or is the oscillator config set automatically by "#use delay(clock=4000000)" ?

My compiler is v3.242
Cheers guys.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jun 15, 2008 1:26 am     Reply with quote

This thread shows how to make your own setup_oscillator() function
that will work with the 16F628:
http://www.ccsinfo.com/forum/viewtopic.php?t=18258
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Sun Jun 15, 2008 2:08 am     Reply with quote

Hello,
thanks for the hint. I was trying to search the forum but it didnt lead me to the thread you posted (i was looking for "16F628" not 627).

Have a nice sunday,
Meereck
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