View previous topic :: View next topic |
Author |
Message |
__JEREK__
Joined: 01 Nov 2006 Posts: 5 Location: Bahia -> Brazil
|
16F628A - internal oscilator 32 khz or 48 khz?? |
Posted: Mon Nov 06, 2006 9:51 pm |
|
|
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
|
|
Posted: Mon Nov 06, 2006 10:19 pm |
|
|
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
|
|
Posted: Mon Nov 06, 2006 10:41 pm |
|
|
PCM programmer, really I had the old datasheet of 16f628.
thank you very much!!
best regards! |
|
|
|