Code:
'declare inputs and outputs appropriately
PortA = 0
PortB = 0
TRISA = %00111100 ' a.5 is INPUT only
TRISB = %11100100
Try to set portA and B to zero before Tris
What value is your pulldown resistor?

Al.