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

16F628A - internal oscilator 32 khz or 48 khz??

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



Joined: 01 Nov 2006
Posts: 5
Location: Bahia -> Brazil

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

16F628A - internal oscilator 32 khz or 48 khz??
PostPosted: Mon Nov 06, 2006 9:51 pm     Reply with quote

Hi guys, I have a question about the "setup_oscillator()" function.

in the datasheet of the PIC 16F628A, pag. 29, say

PCON REGISTER
bit 3 - OSCF: INTOSC oscillator frequency
1 =
4 MHz typical
0 = 37 kHz typical

but in the 16f628a.h of CCS we have:

////////////////////////////////////////////////////////////////// INTERNAL RC
// Constants used in setup_oscillator() are:

#define OSC_48KHZ 0
#define OSC_4MHZ 8

I would like to know what is right, 37 Khz or 48Khz?

how can I configure the internal oscilator to 32 khz?

thank you
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 06, 2006 10:19 pm     Reply with quote

Quote:
I would like to know what is right, 37 Khz or 48Khz?

Early data sheets specified 37 KHz. Later data sheets changed this
to 48 KHz.

Quote:
How can I configure the internal oscilator to 32 khz?

With the internal oscillator, your only choices are 48 KHz or 4 MHz.

If you want 32.768 KHz, you can use an external crystal in LP mode.
__JEREK__



Joined: 01 Nov 2006
Posts: 5
Location: Bahia -> Brazil

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

PostPosted: Mon Nov 06, 2006 10:41 pm     Reply with quote

PCM programmer, really I had the old datasheet of 16f628.

thank you very much!!


best regards!
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