friends,

this is writing for a 16f873 and it is exactly this that I need for a 16f676

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
ADCON1 = 4 ;Set PORTA analog and right justify result
OPTION_REG = $7f ; Enable PORTB pullups

in the place (pull-up) portb to configure for porta

in advance thankful.