I'm trying to port over code from a 12F683 to a 16F687 from this thread but I get the dreaded 'syntax error' and it highlights the 'CCP1CON = %00001011' line. How do I figure out what's really going on? I know this chip has the CCP1CON register and the '1011' is supposed to set the compare mode, special event trigger.

Code:
DEFINE OSC 20                ; Set oscillator 20Mhz
 
#CONFIG
   __config _FOSC_HS & _WDTE_ON & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _CPD_OFF
#ENDCONFIG

' ***************************************************************
' Initialization
' ***************************************************************

ANSEL    = 0                 
TRISA    = %00000100         ; Make PORTA all output except for INT pin
TRISB    = 0                 ; Make all PORTB pins output
TRISC    = 0                 ; Make all PORTC pins output
 
CCPR1val      CON EXT      : @CCPR1val = (OSC*1000000/4)/ BLINKYFREQ
CCPR1         VAR WORD EXT : @CCPR1 = CCPR1L
Timer1        VAR WORD EXT : @Timer1 = TMR1L
CCPIF         VAR PIR1.2

;-- setup CCP1 and Start Timer1 --
CCPR1   = CCPR1val          ; set compare value
CCP1CON = %00001011         ; compare mode, special event 
Timer1  = 0                 ; clear Timer1
T1CON.0 = 1                 ; start Timer1

Main:
  HIGH PORTB.0
  pause 1000
  LOW PORTB.0
  pause 1000
  
  goto Main