Features: It Is A Programmable Device. It Has 24 I/O Programmable Pins Like PA, PB, PC (3-8 Pins) - T T L Compatible. Improved DC Driving Capability
Features: It Is A Programmable Device. It Has 24 I/O Programmable Pins Like PA, PB, PC (3-8 Pins) - T T L Compatible. Improved DC Driving Capability
PERIPHERAL INTERFACE
-8255
Features:
It is a programmable device.
T T L compatible.
Improved dc driving capability
Pin Diagram
Function of pins:
Data bus(D0-D7):These are 8-bit bi-
A0
Select
PA
PB
PC
Control
reg.
PB0-PB7:Similar to PA
PC0-PC7:This is also 8-bit bidirectional I/O
Block Diagram
PORT A:
This is a 8-bit buffered I/O latch.
It can be programmed by mode 0 , mode 1,
mode 2 .
PORT B:
This is a 8-bit buffer I/O latch.
It can be programmed by mode 0 and
mode 1.
PORT C:
This is a 8-bit Unlatched buffer Input
Operation modes:
BIT SET/RESET MODE:
The PORT C can be Set or Reset by sending OUT
instruction to the CONTROL registers.
I/O MODES:
MODE 0(Simple input / Output):
In this mode , port A, port B and port C is used as
individually (Simply).
Features:
Outputs are latched , Inputs are buffered not
latched.
Ports do not have Handshake or interrupt
capability.
DATA BUS
STB
ACK
Printer
Busy
Example:
The computer send the data to the printer
D6
D5
D4
D3
X X X
Dont care
D2
D1
D0
BIT
SET/RESET
1=SET
0=RESET
Bit select
0 1 2 3 4 5 6 7
0 1 0 1 0 1 0 1
B0
0 0 1 1 0 0 1 1
0 0 0 0 1 1 1 1
B1
B2
of D0.
A BSR word is written for each bit
Example:
PC3 is Set then control register will be
0XXX0111.
PC4 is Reset then control register will be
0XXX01000.
X is a dont care.
D
6
D
5
D
4
D
3
D
2
D
1
Group A
Mode set
flag=1=Activ
e
Port C Upper
1=Input
0=Output
Port B
1=Input
0=Output
Mode
selection
00=mode 0
01=mode 1
1x=mode 2
D
0
Group B
Port C Lower
1=Input
0=Output
Port B
1=Input
0=Output
Mode selection
0=mode 0
1=mode 1
same.
Bit D7 is used for specifying whether
word loaded in to Bit set/reset mode
or Mode definition word.
D7=1=Mode definition mode.
D7=0=Bit set/Reset mode.
Thank you
Q&A
Prepared by
Prof.R.K.Kumar