Then if we can use 8MHz internal oscilator (16F8xx) with no external components, than why most diagrams have external quarc chrystal? I understand that max frequency with HFINTOSC is 8MHz and if you want to use max permitted freq (20MHz for 16F887) you must use 20MHz external oscilator, but most diagrams have 8MHz external quarc chrystal.
As manual for my dev board stated, you choose osilator mode prior flasing the code to the MCU.
You do that in PICflash aplication, where you can choose osilator mode
But how do you set IRCF2-0 bits in OSCCON register that determine the clock signal (1,1,1 for example is 8MHz; 1,1,0 is 4MHz; 1,0,1 is 2MHz and so on)?
I thought you do that is compiler aplication (I use mikroPascal), where you set the clock that is by default 8MHz. But I can write any number even 100. And I noticed that program was excetuted faster when I lowered the number. When I set clock to be 0.1 leds was blinking faster than when I set clock to be 8???
Also strange to me is that leds is still blinking if I remove quarc crystal (with two jumpers) and oscilator mode is set to HSOSC. It seems that whatever I choose for osilator mode leds are still blinking with the same speed.