What's Up DOC?

The SD button is on portb.7, but at the very top TRISB is set to all outputs.

The button command never sees the pin.

HTH,
  Darrel