Page 1 of 1

Using Internal Oscillators on a pic16F628A

Posted: Mon Feb 28, 2011 6:46 am
by alb10811
Hi all

I'm having a bit of trouble getting RS232 comms to work. I'm using a pic16F628A with internal oscillator and my question is do I need to add a line of c code such as osccon = 0x070; because I'm using an internal oscillator.

Thanks for any help.

Re: Using Internal Oscillators on a pic16F628A

Posted: Mon Feb 28, 2011 9:16 am
by Benj
Hello,

You will need to choose what clock speed you require and then go into the Flowcode project options and put the clock speed you are using into the text field. This allows delays etc to be created correctly.

Looking at the datasheet there are no settings for the internal oscillator and this simply runs at 4000000. Eg you do not need the osccon line of C code in your program.