To port B.

As for the programs, what programs? Depends on what are the programs doing... Usually the port B with PU enabled, reads as all 1s.

Ioannis