What do you mean by

... I have a clean nice looking analog signal on the oscilloscope
and what do you mean by
...as soon as I hook up the input to PORTA.0 ... the signal gets nasty