while adcon0.1 and while adcon0.1=1 are functionally identical.

However, the A/D module must be turned on before it will perform a conversion.

ADCON0.0 = 1

PBP does that automatically.