Hi Insiders,

Iīm trying to convince a Pic16F628A to work at 20MHz (yes it is a 20Mhz device) with an external canned oscillator

but i donīt get the right configs:

@config_EXTCLK_OSC

this shows no error when compiled but the setup doesnīt work

this is my simple testcode.

NEVER GOT ANY 20MHZ DEVICE WORKING!!!! only 10MHz or below.

'************************************************* *******************************************
' 16F628A 4 Mhz crystal
' damn program should blink an LED every time a pulse goes into RB.0
' later a value should be serial loaded and set a delay before the blink pulse
'************************************************* *******************************************

'
' DEFINITIONS


@config_EXTCLK_OSC


CMCON=%00000111
led var portb.7



' START OF MAIN PROGRAM
'
CMCON = 7 ' RA0-RA3 are digital I/O
TRISA = 0 ' PORT A is output
TRISB = 1 ' RB0 is Input others output



main:
led = 1
pause 500
led = 0
pause 500
goto main


END ' End of program