HI................................................ ................
I use PIC 18f452 , mikroC compiler , WinPic800 and jmd programmer.
and I wrote this simple code for led blinking on PORTA.0
I use Crystal Oscillator as clock source
My problem is : my controller does not run with high frequency Crystal .
I tried several values (4 MHz,8 MHz,16 MHz,20 MHz,25 MHz).Only 4 MHz and 8 MHz worked
I tried all Oscillator setting of the controller, just HS + PLL worked
It looks like you have traces on the PCB going between the crystal and the PIC. Crossing over the crystal tracks with other tracks (obviously on different layers) or having tracks routed between the crystal pins can sometimes cause problems. These are worse at higher frequencies.
I am not saying that is your issue, but it is best to avoid such things.