I don't quite follow your code, but anyways, have you set the TRISA register to all 1's?

ie TRISA = 255

J