Question about compiler free X pay

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

Moderator: Benj

Post Reply
RLOPES780
Posts: 119
Joined: Tue Apr 07, 2015 11:01 am
Been thanked: 3 times

Question about compiler free X pay

Post by RLOPES780 »

I'm using the pic18f2423 with the internal clock of 8mhz.

With the compiler free:

1-Will I be working with the frequency of 8 mhz?
2-Will my code size be the same?
3-If I enable PLL x 4 will I be working with a clock frequency of 32 mhz?
4-To enable the PLL x 4 what commands in c should I add?
5-What is the XC8 version that flowcode uses?
6-Someone could help me how to enable pll x4 in the attached code?

Grateful;

Ricardo.
Attachments
FISICO.fcfx
(8.72 KiB) Downloaded 225 times

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times

Re: Question about compiler free X pay

Post by QMESAR »

RLOPES780 wrote: With the compiler free:
1-Will I be working with the frequency of 8 mhz?
The compiler has got nothing to do with the micro controller speed you are working with the compiler will work with any selected Clock speed
If I enable PLL x 4 will I be working with a clock frequency of 32 mhz?
yes
4-To enable the PLL x 4 what commands in c should I add?
Set the PLL enable bit in the OSCCON register with a C component

I do not have such a device to test my settings , however I tried to set the clock speed Internal OSC with PLL enable = 32MHZ for you in your Flowchart try it

good luck and just in my opinion if you are not doing very high level and speed critical application you probably will never need any thing more than the Free compilers and if you do such time critical stuff then may be it is better to use assembler than a compile The free compiler is a very good compiler and do not let the message you can get 60% speed improvement mislead you ,as that statement depends on many factors
:D
Attachments
FISICO.fcfx
(8.72 KiB) Downloaded 227 times

Post Reply