Hallo Henrik,

also:

Code:
Config Adc = Free , Prescaler = Auto , Reference = Avcc 

config porta.0 = input
Richtig so ?

Gruß
Matthias