16F627A and internal oscillator

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
aloha777
Posts: 1
Joined: Fri Feb 29, 2008 11:35 am

16F627A and internal oscillator

Post by aloha777 »

Configuration word and C instruction "OSCF=1;" make the processor works @ 4MHz with its internal clock (PICCLITE & MPLABIDE).

With flowcode, this instruction has been implemented in a C block. But the compilator stops working just before semicolon and says "error: left operand must be l-value".

So my question : how to do for using internal oscillator @ 4MHz with flowcode ?

Thank's a lot in advance.

Pierre

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: 16F627A and internal oscillator

Post by Benj »

Hello Pierre

The following command will put the internal oscillator into the 4MHz mode.

Code: Select all

pcon.OSCF = 1;
Or you can use the set_bit command.

Code: Select all

set_bit(pcon, OSCF);

Post Reply