View previous topic :: View next topic |
Author |
Message |
jjude Guest
|
16F628A internal oscilator |
Posted: Thu Nov 01, 2007 12:03 pm |
|
|
I need internal oscilator.
How i config?
What is frecuence?
Is internal oscilator reliable (or trustworthy? i dont know this word).
Sorry my bad english. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Nov 01, 2007 12:21 pm |
|
|
This code will setup the 16F628A for a 4 MHz internal oscillator.
Code: | #include <16F628A.h>
#fuses INTRC_IO, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
//==========================
void main()
{
// Put your code here.
while(1);
} |
|
|
|
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
|
|
Posted: Thu Nov 01, 2007 1:07 pm |
|
|
Lots of people use it so I would say it is reliable within its specifications. For those specifications you should read that section of the datasheet. _________________ The search for better is endless. Instead simply find very good and get the job done. |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Thu Nov 01, 2007 1:37 pm |
|
|
The internal oscillator is reliable but there is a large variation in speed between chips. This is no problem for many applications except when you have special timing requirements, for example RS232 will work on some chips and fails on others. Also temperature changes will change the frequency. |
|
|
|