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
16F627A and internal oscillator
- 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
Hello Pierre
The following command will put the internal oscillator into the 4MHz mode.
Or you can use the set_bit command.
The following command will put the internal oscillator into the 4MHz mode.
Code: Select all
pcon.OSCF = 1;
Code: Select all
set_bit(pcon, OSCF);
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