When I ported a project over, the only thing I had to do was change the ADCON setup to make PORTA digital. Are you maybe sticking something bad in TRISE? Andy