Department of Computer Scien
ce and Information Engineering
National Cheng Kung University, TAIWAN
HANEL
PROGRAMMING THE 8255Mode Selection
of 8255
While ports A, B and C are used to input or output data, the control register must be programmed to select operation mode of three ports
The ports of the 8255 can be programmed in any of the following modes:1.Mode 0, simple I/O
Any of the ports A, B, CL, and CU can be programmed as input out outputAll bits are out or all are inThere is no signal-bit control as in P0-P3 of 8051