Quote Originally Posted by Ioannis View Post
pause 10 is too little time.

Maybe you need to make this 1000.

Then check with a timer that it actually pauses every 1 sec confirming that osc is setup correctly.

Recently I had similar matter setting up system oscillator again with 4xPLL and was running slow. Richard got it and we are OK now.

Ioannis
Ioanni,

thanks a lot for the help. I'll do it tonight and try to increase the time.

To be honest i made many changing to the pause commands like : 10ms , 100ms, 1000ms, 2000ms. All seem to work fine.

It would be a good practice to see how could we identify that the PIC clock now is running at 64Mhz?

Is there any way to measure this with an Oscilloscope? I believe that this is a question have been asked many times.

If someone could help me to identify the cpu clock speed of the PIC with the new setting of external 16Mhz crystal and 4xPLL, i can do the testing, and share the information step by step in here. If there is already posted an example like this i would like to have a look at it.

thanks a lot.