I guess the Power-Up Timer and the Brown-out Voltage config bit maybe TRIS, maybe this, maybe that.

Post your code here, even if we are close, we are not god