Its probably not what's causing your problem, but to do what your comment says, the TRISIO line needs to be:

TRISIO = %00000011

What do you see when you hook up an LED to the output of GP5?