Hi Jan,
To change frequency of the internal oscillator so its a different value to the default 4MHz, you will need to do two things.
1) Change Clock speed within 'Build', Project options to desired frequency. This clock speed does not alter the physical oscillator frequency of the microcontroller, it only alters delays, Component macros that have built in delays like LCD and any formulas involving clock frequency like software baud rate.
2) Add or change a C code block in the form of
For 8MHz you would use
at the very start of your flowchart before the main loop.
0x just means expect value in hex and hh being correct hex value for desired frequency.
it does not have to be hex, you can use osccon=0bBinaryValue;
Again using 8MHz as an example:
If you look at page 48 of the data sheet you will see:
As you can see the highest frequency available using internal oscillator is 8MHz.
If you want a much higher internal oscillator then a newer type of microcontroller can run with PLL enabled, which is usually (not always) x 4 so osc speed could be 8MHz x 4 =32MHz
This is not the highest as PIC18F25K22 for example can have an internal oscillator running at 64MHz
To determine correct osccon value in hex (as it's easier to remember) after looking at the data sheet see:
http://www.matrixmultimedia.com/mmforum ... 29&#p28829
Example used is with a microcontroller that has PLL, so you will need to ignore that part.
I have altered your Flowchart so it should now work at 8MHz
Flowcode is very powerful indeed.
Your only scratching the surface.
My advice you be to visit the learning center:
http://www.matrixmultimedia.com/lc_index.php
Try the free course and look at example flowcharts.
Martin