You got analog all to heck on port B, shut off the comparators and don't forget anselh