John,

I'm not sure which pin you've connected SQW to, but ...
Code:
      TRISA =%00000000 
      TRISB =%00000000 
      TRISC =%00000000 
      TRISD =%00000000
One of the first things you do is set almost all the pins to output.
That would stop any signal from SQW.
<br>