I get an error when I compile for the 16F819... the same code works for the 16F818. Explaination?
---------------------------------------
DEFINE OSC 4
DEFINE ADC_BITS 10 'Set number of bits in result
DEFINE ADC_CLOCK 3 'Set clock source (3=rc)
DEFINE ADC_SAMPLEUS 50 'Set sampling time in us


TRISA = %11111111 'Set A to inputs
TRISB = %00000000 'Set I/O to output
ADCON1 = %10000010 'Port A Analog and right justify results


X VAR BYTE

LOOP:
ADCIN PORTA.1, X
Pause 50
If X > 100 Then
GOTO BLINK
ENDIF
GOTO LOOP

BLINK:
HIGH PORTB.4
Pause 100
LOW PORTB.4
RETURN

---------------------------------
Here's the error msg:
Error [124] C:\PROGRA~1\PICBAS~1.16\PBPPIC14.LIB [Illegal Argument]