In post #37 the code worked but was slow.
In post #43 the outputs on PORTA does not work.

ADCON1 and ADCON0 has been changed between the two post??