Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN
HANEL
PROGRAMMING THE 8255Mode Selectionof 8255(cont’)
D0
D1
D2
D3
D4
D5
D6
D7 1 = I/O MODE0 = BSR ModeMode Selection00 = MODE 001 = MODE 11x = Mode 2Port A1 = Input0 = OutputPort C(Upper Pc7 – PC4)1 = Input0 = OutputMode Selection0 = MODE 01 = MODE 1Port B1 = Input0 = OutputPort C(LowerPC3 – PC0)1 = Input0 = Output8255 Control Word Format (I/O Mode)
Group A
Group B