For some reason I can't get an external oscillator to work on a 16F887 using the following code:

[code/]DEFINE OSC 20

'SETUP PIC FUSES
@ __config _CONFIG1, _DEBUG_OFF & _LVP_OFF & _FCMEN_OFF & _IESO_OFF & _BOR_ON & _CPD_ON & _CP_ON &_MCLRE_ON & _PWRTE_OFF & _WDT_ON & _HS_OSC


ADCON0.0=0

'PORT A
ANSEL= %00000000
ANSELH=%00000000
PORTA= %00000000
TRISA= %00000000

'PORT B
PORTB= %00000000
TRISB= %00000000
WPUB= %00000000
IOCB= %00000000
'PORT C
PORTC= %00000000
TRISC= %00000000

'Port D
PORTD= %00000000
TRISD= %00000000

'PORT E
PORTE= %00000000
TRISE= %00000000

CM1CON0.7=0 'turn off comparator1
CM2CON0.7=0 'turn off comparator2


main:

porta.1=1
pause 200
porta.1=0
pause 200
goto main
[/code]

If I turn the "Fail-Safe Clock Monitor" on the chip it will default to the internal 4-mhz oscillator and my led will blink.

Any help getting the 20Mhz to work is appreciated.