12f675 oscon!

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

jgu1
Posts: 1179
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1104 times
Been thanked: 295 times
Contact:

12f675 oscon!

Postby jgu1 » Sat Feb 11, 2012 9:27 pm

Hi all!

The novice need help again :lol:

How is it possible to configure the internal oscillator in a pic 12f675 if I don´t want to use a crystal.
And if possible to use Oscon, should I then change anything in "configure chip" if I use (osccon = 0x60;) in a C box, the compiler make error when I compile to hex if I use Oscon In a Cbox.

Hope you understand me, bad English :D

Best regard

jorgen

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8825
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2561 times
Been thanked: 3720 times
Contact:

Re: 12f675 oscon!

Postby medelec35 » Sat Feb 11, 2012 11:07 pm

Hi jorgen,
osccon register is not used in those target devices.

This is because there is only one fixed internal oscillator speed which runs at 4MHz.
so all you do is select internal RC. Then set the Clock speed in project options to 4000000Hz

Martin
Last edited by medelec35 on Sun Feb 12, 2012 11:55 am, edited 1 time in total.
These users thanked the author medelec35 for the post:
jgu1 (Sun Feb 12, 2012 9:43 am)
Rating: 5%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

jgu1
Posts: 1179
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1104 times
Been thanked: 295 times
Contact:

Re: 12f675 oscon!

Postby jgu1 » Sun Feb 12, 2012 9:44 am

Hi Martin!

Thank you wery much. :D

Best regard

Jorgen.