Using Internal Oscillators on a pic16F628A

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
alb10811
Posts: 7
Joined: Sun Jan 23, 2011 4:01 am
Has thanked: 3 times

Using Internal Oscillators on a pic16F628A

Post 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.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Using Internal Oscillators on a pic16F628A

Post 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.

Post Reply