Quote Originally Posted by mr.sneezy View Post
Doesn't PBP force the pin to an output anyway even if not set in the TRIS statement ?
Normally PBP takes care of it but you enabled Parallel Slave Port by using TRISE and a few extra "1" By doing this you kill the PortD function of the PortD port and make it to a 8 bit super special data bus and PBP have absolutly no idea.

It is really good to make your own TRIS statements you were just a bit unlucky