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.
Using Internal Oscillators on a pic16F628A
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel