Yes, thanks, now that clear, changed TRISA to TRISA=%00111101 and it now works just fine!
Just it is a bit silly, why it can be possible to have same pin both as ADC IN and LOGIC OUT at same time (circuitry-wise)