Department of Computer Scien
ce and Information Engineering
National Cheng Kung University, TAIWAN
HANEL
PROGRAMMING THE 8255Mode Selection
of 8255(cont’)
- Mode 1Port A and B can be used as input or output ports with handshaking capabilitiesHandshaking signals are provided by the bits of port C
Mode 2Port A can be used as a bidirectional I/O port with handshaking capabilities provided by port C Port B can be used either in mode 0 or mode^1
BSR (bit set/reset) modeOnly the individual bits of port C can be programmed