Do you wish to use all eight inputs, or just one? If just one, connect pin one of the port through an inverter to pin seven of the chip, and pins 8, 14, 15, and 17 through 21 of the chip through inverters to pins 2 - 9 of the port. (Pay attention to MSB and LSB - pins on the chip are not in order of bits.) The inverters are needed because the port uses hardware inversion.