Hi:
8255 chip does support bi-directional mode.Two handshaking lines are used, STB (PC4) and ACK (PC6), both active low. Initially, hold both handshaking lines high, port A is in high impedance state.
To write to port A, hold ACK* low and STB* high, use Digital Single Write.vi to write to the port. As soon as you bring the ACK* line high again, port A goes back to high impedance mode, thus the pattern you just wrote will no longer be present.
To use port A as input port, hold ACK* high. Port A is now an input port and you can externally drive the lines of the port without damage, However, you have to "latch in" the inputes from the port to the input buffer by toggling STB*, then read by calling Digital Single Read.vi
Penny