I am new to PIC Programming, and thought of blinking LEDs as my first project. Now I copied a code from net which blinks two LEDs and its working, the LEDs are blinking.
My settings:-
I haven't connected any external oscillator to the PIC18f4550 and I am simulating the project using Proteus 8.1, In the Edit Components of PIC, Processor Clock Frequency is at 4MHz. But when I stop the simulation, I get the following message,"clocking 4Mhz specified in the component is ignored for oscillator mode INT-RC , NO CLKO". And note, I haven't used OSCCON register in my code.
My code:-
#include<PIC18f4550.h>
#pragma config PLLDIV = 5 , CPUDIV = OSC1_PLL2 , USBDIV = 2
#pragma config FOSC = INTOSCIO_EC
#pragma config FCMEN = OFF
#pragma config BORV = 3
#pragma config WDT = OFF
#pragma config CPB = OFF
#pragma config CPD = OFF
void main(void)
{
//blinking code here
//OSCCON register is not set.
}
My question:-
I am curious, if there is no external oscillator, internal oscillator register is not set and the Proteus is ignoring the schematic 4Mhz as clock frequency, then at what frequency is the microcontroller operating?