Acording to me this chould read the 0 - 5v signal on PORTA.0 and sends the digital value to hiperterminal, nothing seems to happen ,any help please
Also i have just bought myself a ICD2 is there any special code i need to add to use the debug functions?

DEFINE OSC 20 ' Define crystal as 20Mhz
DEFINE HSER_BAUD 9600 ; 9600 Baud
DEFINE HSER_CLROERR 1 ; Clear overflow automatically


'This Part set PORTA 0-5 an analog inputs

ADCON1 = %01110000 'FRC (clock derived from a dedicated internal oscillator = 500 kHz max)
ANSEL = %00011111 'The ANSEL (91h) and CMCON0 (9Ch)registers must be initialized to configure an
CMCON0 = %00000111 'analog channel as a digital input. Pins configured as analog inputs will read ‘0’.
TRISA = %00011111 'set PORTA 0-5 as inputs

TRISC = %10001111 'Set PORTC for serial coms and pins 0 - 3 as inputs
TRISB = %00000000 'Sert PORTb as outputs and for use with the ICD2

INTCON = 0 ;Disable interrupts

V1 var byte

loop:
ADCIN PORTA.0,V1
HSEROUT [DEC V1]
PAUSE 500
goto loop