SlideShare a Scribd company logo
1 of 32
PPI-PROGRAMMABLEPPI-PROGRAMMABLE
PHERIPHERAL INTERFACE (8255)PHERIPHERAL INTERFACE (8255)
Microprocessor Interfacing Techniques
computer Printer
8
2
5
5
Intel 8255A
 Programmable peripheral device
 It is a general purpose programmable i/o device which is
designed for use with all intel and most other
microprocessors
 for parallel data transfer (parallel i/o device)
Features
24 I/O ports (3 – 8 bit I/O ports PA, PB, PC)
PC – PCU(4 bit) and PCL(4 bit)
PA and PCU are Group A (GA)
PB and PCL are Group B (GB)
Can be programmed in two modes.
1. Bit set/reset mode BSR.
2. I/O mode
BSR is used to set/reset bits in PC
I/O mode – 1. mode 0 simple I/O
2. mode 1 I/O with handshake
3. mode 2 bidirectional I/O data transfer
Features
 I/O pins and their modes of operation can be
programmed by writing each bits into the CONTROL
WORD Reg
 PA can be set for Modes 0, 1, 2.
 PB for 0,1
 PC for mode 0 and for BSR.
 Modes 1 and 2 are interrupt driven.
 Address/data bus must be externally demux'd.
D0 - D7 These are the data input/output lines for the device. All
information read from and written to the 8255 occurs via these 8
data lines.
CS (Chip Select Input). If this line is a logical 0, the microprocessor
can read and write to the 8255.
RD (Read Input) Whenever this input line is a low the CPU can read
data in the ports or the status word, through the data buffer.
WR (Write Input) Whenever this input line is low, the CPU can write
data in the ports or in the control register through the data buffer.
A0 - A1 (Address Inputs) The logical combination of these two
input lines determines which internal register of the 8255 data is
written to or read from.
RESET The 8255 is placed into its reset state if this input line is a
logical 1. All peripheral ports are set to the input mode.
PA0 - PA7, PB0 - PB7, PC0 - PC7
These signal lines are used as 8-bit I/O ports.
They can be connected to peripheral devices.
The 8255 has three 8 bit I/O ports and each one can be
connected to the physical lines of an external device.
These lines are labeled PA0-PA7, PB0-PB7, and PC0-
PC7.
Port Selection
A1 A0 Select
0 0 PA
0 1 PB
1 0 PC
1 1 Control reg.
Block diagram of the 8255
Data Bus buffer
It is a 8-bit bidirectional Data bus.
Used to interface between 8255 data bus with system bus.
The internal data bus and Outer pins D0-D7 pins are connected in
internally.
The direction of data buffer is decided by Read/Control Logic.
Read/Write Control Logic
This is getting the input signals from control bus and
Address bus
Control signal are RD and WR.
Address signals are A0,A1,and CS.
8255 operation is enabled or disabled by CS.
Group A and Group B control
Group A and B get the Control Signal from CPU and send the
command to the individual control blocks.
Group A send the control signal to port A and Port C (Upper)
PC7-PC4.
Group B send the control signal to port B and Port C (Lower)
PC3-PC0.
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 and an Output latch.
It is splitted into two parts.
It can be programmed by bit set/reset operation.
Operating modes
Bit Set-Reset (BSR)mode
I/O modes
1.Mode 0
2.Mode 1
3.Mode 2
Bit Set-Reset (BSR)mode
The individual bits of Port C can be set or reset by
sending out a single OUT instruction to control register
Bit set/reset control word format
PC0-PC7 is set or reset as per the status 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 don’t care.
Control Word Format
I/O MODES
MODE 0
Each of the 3 ports can be programmed to be either an
input/output.
No handshaking is required.
Features
- outputs are latched
- Inputs are buffered, not latched
-ports do not have handshake or interrupt capability
I/O MODES
MODE 0
MODE 1
Ports A and B are programmed to have 8 lines of input or
output
3 pins of PC in each group are used for handshaking and
interrupt control signals, and one is used for simple I/O
functions
I/O are latched.
Interrupt logic is supported.
MODE 1
I/p ctrl signalsI/p ctrl signals
Processor 8
2
5
5
Peripheral
Device
(Keyboard)
STB
IBF
RD
INTR
Mode 1 Input control SignalsMode 1 Input control Signals
O/p Ctrl Signals
Processor 8
2
5
5
Peripheral
Device
(Printer)
OBF
WR
INTR
data data
ACK
MODE 2
It is a strobed bi-directional bus configuration.
This feature is available only in GroupA with port A as
8-bit bidirectional data bus ; and PC3-PC7 are used for
handshaking purpose
Mode 2 –Bi-directional Operation
WR
RD
Mode Definition Summary
MODE 0 MODE 1 MODE 2
IN OUT IN OUT Group A only
PA (0-7) YES YES YES YES
PB (0-7) YES YES YES YES In mode 0 or mode
1 only
PC (0-7) YES YES PC0 - INTRB
PC1 - IBFB
PC2 - STBB
PC3 - INTRA
PC4 - STBA
PC5 - IBFA
PC6 - I/O
PC7 - I/O
PC0 - INTRB
PC1 - OBFB
PC2 - ACKB
PC3 - INTRA
PC4 - I/O
PC5 - I/O
PC6 - ACKA
PC7 - OBFA
PC0 - I/O
PC1 - I/O
PC2 - I/O
PC3 - INTRA
PC4 - STBA
PC5 - IBFA
PC6 - ACKA
PC7 - OBFA

More Related Content

What's hot

Proteus Circuit Simulation
Proteus Circuit SimulationProteus Circuit Simulation
Proteus Circuit SimulationAbdul Haseeb
 
Module 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and ProgrammingModule 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and ProgrammingAmogha Bandrikalli
 
Uart VHDL RTL design tutorial
Uart VHDL RTL design tutorialUart VHDL RTL design tutorial
Uart VHDL RTL design tutorialNabil Chouba
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adcPRADEEP
 
PLC data types and addressing
PLC data types and addressingPLC data types and addressing
PLC data types and addressingAmeen San
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERsravannunna24
 
Microcontoller and Embedded System
Microcontoller and Embedded SystemMicrocontoller and Embedded System
Microcontoller and Embedded SystemKaran Thakkar
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051DominicHendry
 
8255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 08255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 0ABHIMANYUJHA8
 
Basic structures in vhdl
Basic structures in vhdlBasic structures in vhdl
Basic structures in vhdlRaj Mohan
 
Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)Moe Moe Myint
 
Timing and control circuit
Timing and control circuitTiming and control circuit
Timing and control circuitRajan Shah
 
Basic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixProBasic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixProbkhairullah
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfacesanishgoel
 

What's hot (20)

8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Proteus Circuit Simulation
Proteus Circuit SimulationProteus Circuit Simulation
Proteus Circuit Simulation
 
Module 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and ProgrammingModule 2 ARM CORTEX M3 Instruction Set and Programming
Module 2 ARM CORTEX M3 Instruction Set and Programming
 
Uart VHDL RTL design tutorial
Uart VHDL RTL design tutorialUart VHDL RTL design tutorial
Uart VHDL RTL design tutorial
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
 
Encoder
EncoderEncoder
Encoder
 
PLC data types and addressing
PLC data types and addressingPLC data types and addressing
PLC data types and addressing
 
LPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLERLPC 2148 ARM MICROCONTROLLER
LPC 2148 ARM MICROCONTROLLER
 
Microcontoller and Embedded System
Microcontoller and Embedded SystemMicrocontoller and Embedded System
Microcontoller and Embedded System
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
Switch level modeling
Switch level modelingSwitch level modeling
Switch level modeling
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
 
8255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 08255 PPI (programmable Peripheral Interface) mode 0
8255 PPI (programmable Peripheral Interface) mode 0
 
Basic structures in vhdl
Basic structures in vhdlBasic structures in vhdl
Basic structures in vhdl
 
Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)Introduction to Embedded System I : Chapter 2 (3rd portion)
Introduction to Embedded System I : Chapter 2 (3rd portion)
 
Timing and control circuit
Timing and control circuitTiming and control circuit
Timing and control circuit
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
Basic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixProBasic PLC Symbols and Addresses in LogixPro
Basic PLC Symbols and Addresses in LogixPro
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
Unit 4
Unit 4Unit 4
Unit 4
 

Similar to 8255 class

Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptxTechCook1
 
Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Prof. Swapnil V. Kaware
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255Marajulislam3
 
Operation of 8255A
Operation of 8255AOperation of 8255A
Operation of 8255AAnuj Yadav
 
363118864 8255-nptel
363118864 8255-nptel363118864 8255-nptel
363118864 8255-nptelZerihunDemere
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)Vasu Ch
 
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255
PROGRAMMABLE PERIPHERAL  INTERFACE (PPI) -8255PROGRAMMABLE PERIPHERAL  INTERFACE (PPI) -8255
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255Zahid Parvez
 
8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc studySirisha Vamsi
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3deepakdmaat
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxGowrishankar C
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral InterfaceAmit Kumer Podder
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.pptkhushiduppala
 

Similar to 8255 class (20)

Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptx
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
8255 ppi.pptx
8255 ppi.pptx8255 ppi.pptx
8255 ppi.pptx
 
Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.Interfacing of 8255 IC By Er. Swapnil Kaware.
Interfacing of 8255 IC By Er. Swapnil Kaware.
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
 
Operation of 8255A
Operation of 8255AOperation of 8255A
Operation of 8255A
 
363118864 8255-nptel
363118864 8255-nptel363118864 8255-nptel
363118864 8255-nptel
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
 
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255
PROGRAMMABLE PERIPHERAL  INTERFACE (PPI) -8255PROGRAMMABLE PERIPHERAL  INTERFACE (PPI) -8255
PROGRAMMABLE PERIPHERAL INTERFACE (PPI) -8255
 
8255_Ppi new
8255_Ppi new8255_Ppi new
8255_Ppi new
 
8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study8255 ppi students material for ppi mpmc study
8255 ppi students material for ppi mpmc study
 
unit-3-8255.pdf
unit-3-8255.pdfunit-3-8255.pdf
unit-3-8255.pdf
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
 
8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface
 
8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt8255-PPI MPMC text book for engineering.ppt
8255-PPI MPMC text book for engineering.ppt
 
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
 

Recently uploaded

(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 

Recently uploaded (20)

(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 

8255 class

  • 1. PPI-PROGRAMMABLEPPI-PROGRAMMABLE PHERIPHERAL INTERFACE (8255)PHERIPHERAL INTERFACE (8255) Microprocessor Interfacing Techniques computer Printer 8 2 5 5
  • 2. Intel 8255A  Programmable peripheral device  It is a general purpose programmable i/o device which is designed for use with all intel and most other microprocessors  for parallel data transfer (parallel i/o device)
  • 3. Features 24 I/O ports (3 – 8 bit I/O ports PA, PB, PC) PC – PCU(4 bit) and PCL(4 bit) PA and PCU are Group A (GA) PB and PCL are Group B (GB) Can be programmed in two modes. 1. Bit set/reset mode BSR. 2. I/O mode BSR is used to set/reset bits in PC I/O mode – 1. mode 0 simple I/O 2. mode 1 I/O with handshake 3. mode 2 bidirectional I/O data transfer
  • 4. Features  I/O pins and their modes of operation can be programmed by writing each bits into the CONTROL WORD Reg  PA can be set for Modes 0, 1, 2.  PB for 0,1  PC for mode 0 and for BSR.  Modes 1 and 2 are interrupt driven.  Address/data bus must be externally demux'd.
  • 5.
  • 6. D0 - D7 These are the data input/output lines for the device. All information read from and written to the 8255 occurs via these 8 data lines. CS (Chip Select Input). If this line is a logical 0, the microprocessor can read and write to the 8255. RD (Read Input) Whenever this input line is a low the CPU can read data in the ports or the status word, through the data buffer. WR (Write Input) Whenever this input line is low, the CPU can write data in the ports or in the control register through the data buffer.
  • 7. A0 - A1 (Address Inputs) The logical combination of these two input lines determines which internal register of the 8255 data is written to or read from. RESET The 8255 is placed into its reset state if this input line is a logical 1. All peripheral ports are set to the input mode. PA0 - PA7, PB0 - PB7, PC0 - PC7 These signal lines are used as 8-bit I/O ports. They can be connected to peripheral devices. The 8255 has three 8 bit I/O ports and each one can be connected to the physical lines of an external device. These lines are labeled PA0-PA7, PB0-PB7, and PC0- PC7.
  • 8. Port Selection A1 A0 Select 0 0 PA 0 1 PB 1 0 PC 1 1 Control reg.
  • 9. Block diagram of the 8255
  • 10. Data Bus buffer It is a 8-bit bidirectional Data bus. Used to interface between 8255 data bus with system bus. The internal data bus and Outer pins D0-D7 pins are connected in internally. The direction of data buffer is decided by Read/Control Logic.
  • 11. Read/Write Control Logic This is getting the input signals from control bus and Address bus Control signal are RD and WR. Address signals are A0,A1,and CS. 8255 operation is enabled or disabled by CS.
  • 12. Group A and Group B control Group A and B get the Control Signal from CPU and send the command to the individual control blocks. Group A send the control signal to port A and Port C (Upper) PC7-PC4. Group B send the control signal to port B and Port C (Lower) PC3-PC0. PORT A: This is a 8-bit buffered I/O latch. It can be programmed by mode 0 , mode 1, mode 2 .
  • 13. 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 and an Output latch. It is splitted into two parts. It can be programmed by bit set/reset operation.
  • 14. Operating modes Bit Set-Reset (BSR)mode I/O modes 1.Mode 0 2.Mode 1 3.Mode 2
  • 15. Bit Set-Reset (BSR)mode The individual bits of Port C can be set or reset by sending out a single OUT instruction to control register
  • 16. Bit set/reset control word format
  • 17. PC0-PC7 is set or reset as per the status 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 don’t care.
  • 19. I/O MODES MODE 0 Each of the 3 ports can be programmed to be either an input/output. No handshaking is required. Features - outputs are latched - Inputs are buffered, not latched -ports do not have handshake or interrupt capability
  • 21. MODE 1 Ports A and B are programmed to have 8 lines of input or output 3 pins of PC in each group are used for handshaking and interrupt control signals, and one is used for simple I/O functions I/O are latched. Interrupt logic is supported.
  • 23. I/p ctrl signalsI/p ctrl signals Processor 8 2 5 5 Peripheral Device (Keyboard) STB IBF RD INTR
  • 24. Mode 1 Input control SignalsMode 1 Input control Signals
  • 25.
  • 26.
  • 27. O/p Ctrl Signals Processor 8 2 5 5 Peripheral Device (Printer) OBF WR INTR data data ACK
  • 28.
  • 29.
  • 30. MODE 2 It is a strobed bi-directional bus configuration. This feature is available only in GroupA with port A as 8-bit bidirectional data bus ; and PC3-PC7 are used for handshaking purpose
  • 31. Mode 2 –Bi-directional Operation WR RD
  • 32. Mode Definition Summary MODE 0 MODE 1 MODE 2 IN OUT IN OUT Group A only PA (0-7) YES YES YES YES PB (0-7) YES YES YES YES In mode 0 or mode 1 only PC (0-7) YES YES PC0 - INTRB PC1 - IBFB PC2 - STBB PC3 - INTRA PC4 - STBA PC5 - IBFA PC6 - I/O PC7 - I/O PC0 - INTRB PC1 - OBFB PC2 - ACKB PC3 - INTRA PC4 - I/O PC5 - I/O PC6 - ACKA PC7 - OBFA PC0 - I/O PC1 - I/O PC2 - I/O PC3 - INTRA PC4 - STBA PC5 - IBFA PC6 - ACKA PC7 - OBFA