SlideShare una empresa de Scribd logo
1 de 9
Architecture of 8255
8255 - Programmable Peripheral Interface
• To communicate with the outside world, Microprocessor use
Peripherals (I/O devices).
• Commonly used input devices are Keyboards, A/D converters etc.,
and output devices are CRT, Printers, LEDs etc.
• These input and output devices are called Peripherals (or) I/Os.
• Peripherals are connected to the microprocessor through electronic
circuits known as interfacing circuits.
8255 - Programmable Peripheral Interface
• Generally, each I/O devices requires a separate interfacing circuit.
• The interfacing circuits convert the data available from an input device into
compatible format for the computer.
• The interface associated with the output device converts the output of the
microprocessor into the desired peripheral format.
• To simplify the work, the designers of microprocessor manufacturers have
developed a number of general purpose and special purpose single chip
interfacing devices.
Main functions of the interfacing devices
(i) To relieve the processor from time-consuming activities like
keyboard scanning and display refreshing.
(ii) To interface slow I/O devices to the fast microprocessor unit
and the data transfer between them can be effected more efficiently.
Block Diagram of 8255
1. Data Bus Buffer
• This three-state bi-directional 8-bit buffer is used to interface the
82C55A to the system data bus.
• Data is transmitted or received by the buffer upon execution of input
or output instructions by the CPU.
2. Read/Write and Control Logic
• Read- This control signal enables the Read operation. When the signal
is low, the CPU reads data from a selected I/O port of the 8255.
• Write- This control signal enables the Write operation. When the
signal is low, the CPU writes data or controls word into 8255.
• Control Logic- The control logic block, accepts control bus signals as
well as inputs from the address bus and generates the commands to
the individual group control of Group A and Group B.
i. (A0 and A1) Port Select 0 and Port Select 1 :
• These input signals, in conjunction with the RD and WR inputs,
control the selection of one of the three ports.
ii. (CS) Chip Select :
• A "low" on this input pin enables the communication between the
82C55A and the CPU.
iii. (RD) Read :
• A "low" on this input pin enables 82C55A to send the data or status
information to the CPU on the data bus.
• Group A and Group B Controls
• The Group A and Group B Control Blocks receives control words from
the CPU and issues appropriate commands to the ports associated
with it.
• The Group A Control block controls port A and PC7, — PC4, while the
Group B Control block controls Port B and PC3, — PC0.
• Port A: It has an 8-bit latched and buffered output and an 8-bit input
latch. It can be programmed in three modes; Mode 0, Mode 1 and
Mode 2.
• Port B: It has an 8-Bit data I/O latch/buffer and an 8-bit data input
buffer. It can be programmed in Mode 0 and Mode 1.
• Port C: It has one 8-Bit unlatched input buffer and an 8-bit output
latch/buffer,
The 8255 can operate in three I/O modes :
• Mode 0: Simple input/ output
• Mode 1: Input/ output with handshake
• Mode 2 : Bi-directional I/O data transfer

Más contenido relacionado

Similar a 8255 PPI.pptx

UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE ravis205084
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptkarthik R
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.pptMohanumar S
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Mohanumar S
 
System Connection Of 8254 and Its Port Selection
System Connection Of 8254 and Its Port SelectionSystem Connection Of 8254 and Its Port Selection
System Connection Of 8254 and Its Port SelectionMohammedIrfanulAlamT
 
8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptxVikasMahor3
 
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
 
Lecture 10.cont,11 (plc)
Lecture 10.cont,11 (plc)Lecture 10.cont,11 (plc)
Lecture 10.cont,11 (plc)Mohamed Atef
 
Microprocessors-based systems (under graduate course) Lecture 1 of 9
Microprocessors-based systems (under graduate course) Lecture 1 of 9 Microprocessors-based systems (under graduate course) Lecture 1 of 9
Microprocessors-based systems (under graduate course) Lecture 1 of 9 Randa Elanwar
 
Basics and applications of programmable logic controller (plc)
Basics and applications of programmable logic controller (plc)Basics and applications of programmable logic controller (plc)
Basics and applications of programmable logic controller (plc)Ali Altahir
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automationAloka Patro
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerRup Chowdhury
 

Similar a 8255 PPI.pptx (20)

8255 ppi.pptx
8255 ppi.pptx8255 ppi.pptx
8255 ppi.pptx
 
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
UNIT III PROGRAMMABLE PERIPHERAL INTERFACE
 
Programmable Peripheral Devices
Programmable Peripheral Devices Programmable Peripheral Devices
Programmable Peripheral Devices
 
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.pptPROGRAMMABLE PERIPHERAL INTERFCAE.ppt
PROGRAMMABLE PERIPHERAL INTERFCAE.ppt
 
20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt20ME702– MECHATRONICS -UNIT-3.ppt
20ME702– MECHATRONICS -UNIT-3.ppt
 
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
Unit 3-PROGRAMMABLE PERIPHERAL INTERFACE-ME6702– MECHATRONICS
 
System Connection Of 8254 and Its Port Selection
System Connection Of 8254 and Its Port SelectionSystem Connection Of 8254 and Its Port Selection
System Connection Of 8254 and Its Port Selection
 
8251 -USART.pptx
8251 -USART.pptx8251 -USART.pptx
8251 -USART.pptx
 
Chapter5
Chapter5Chapter5
Chapter5
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
L4-L6 8255 A.pptx
L4-L6 8255 A.pptxL4-L6 8255 A.pptx
L4-L6 8255 A.pptx
 
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
 
8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
 
Lecture 10.cont,11 (plc)
Lecture 10.cont,11 (plc)Lecture 10.cont,11 (plc)
Lecture 10.cont,11 (plc)
 
Microprocessors-based systems (under graduate course) Lecture 1 of 9
Microprocessors-based systems (under graduate course) Lecture 1 of 9 Microprocessors-based systems (under graduate course) Lecture 1 of 9
Microprocessors-based systems (under graduate course) Lecture 1 of 9
 
Basics and applications of programmable logic controller (plc)
Basics and applications of programmable logic controller (plc)Basics and applications of programmable logic controller (plc)
Basics and applications of programmable logic controller (plc)
 
Use of plc in industrial automation
Use of plc in industrial automationUse of plc in industrial automation
Use of plc in industrial automation
 
UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
 
UNIT-IV.ppt
UNIT-IV.pptUNIT-IV.ppt
UNIT-IV.ppt
 
Overview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontrollerOverview of Microcontroller and ATMega32 microcontroller
Overview of Microcontroller and ATMega32 microcontroller
 

Más de ssuser823c58

1 PPT Metal Cutting 30-04-2020.pdf
1 PPT Metal Cutting 30-04-2020.pdf1 PPT Metal Cutting 30-04-2020.pdf
1 PPT Metal Cutting 30-04-2020.pdfssuser823c58
 
Micro Controller.pptx
Micro Controller.pptxMicro Controller.pptx
Micro Controller.pptxssuser823c58
 
Stepper Motor.pptx
Stepper Motor.pptxStepper Motor.pptx
Stepper Motor.pptxssuser823c58
 
Timing Diagram.pptx
Timing Diagram.pptxTiming Diagram.pptx
Timing Diagram.pptxssuser823c58
 
Pin Configuration.pptx
Pin Configuration.pptxPin Configuration.pptx
Pin Configuration.pptxssuser823c58
 
Joining of metal and plastic.pptx
Joining of metal and plastic.pptxJoining of metal and plastic.pptx
Joining of metal and plastic.pptxssuser823c58
 
Mechatronics UNIT 2.pptx
Mechatronics UNIT 2.pptxMechatronics UNIT 2.pptx
Mechatronics UNIT 2.pptxssuser823c58
 

Más de ssuser823c58 (8)

1 PPT Metal Cutting 30-04-2020.pdf
1 PPT Metal Cutting 30-04-2020.pdf1 PPT Metal Cutting 30-04-2020.pdf
1 PPT Metal Cutting 30-04-2020.pdf
 
PPT.pdf
PPT.pdfPPT.pdf
PPT.pdf
 
Micro Controller.pptx
Micro Controller.pptxMicro Controller.pptx
Micro Controller.pptx
 
Stepper Motor.pptx
Stepper Motor.pptxStepper Motor.pptx
Stepper Motor.pptx
 
Timing Diagram.pptx
Timing Diagram.pptxTiming Diagram.pptx
Timing Diagram.pptx
 
Pin Configuration.pptx
Pin Configuration.pptxPin Configuration.pptx
Pin Configuration.pptx
 
Joining of metal and plastic.pptx
Joining of metal and plastic.pptxJoining of metal and plastic.pptx
Joining of metal and plastic.pptx
 
Mechatronics UNIT 2.pptx
Mechatronics UNIT 2.pptxMechatronics UNIT 2.pptx
Mechatronics UNIT 2.pptx
 

Último

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
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
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana 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
 
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
 
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
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
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
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 

Último (20)

Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
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
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
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)
 
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
 
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
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
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 )
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 

8255 PPI.pptx

  • 2. 8255 - Programmable Peripheral Interface • To communicate with the outside world, Microprocessor use Peripherals (I/O devices). • Commonly used input devices are Keyboards, A/D converters etc., and output devices are CRT, Printers, LEDs etc. • These input and output devices are called Peripherals (or) I/Os. • Peripherals are connected to the microprocessor through electronic circuits known as interfacing circuits.
  • 3. 8255 - Programmable Peripheral Interface • Generally, each I/O devices requires a separate interfacing circuit. • The interfacing circuits convert the data available from an input device into compatible format for the computer. • The interface associated with the output device converts the output of the microprocessor into the desired peripheral format. • To simplify the work, the designers of microprocessor manufacturers have developed a number of general purpose and special purpose single chip interfacing devices.
  • 4. Main functions of the interfacing devices (i) To relieve the processor from time-consuming activities like keyboard scanning and display refreshing. (ii) To interface slow I/O devices to the fast microprocessor unit and the data transfer between them can be effected more efficiently.
  • 6. 1. Data Bus Buffer • This three-state bi-directional 8-bit buffer is used to interface the 82C55A to the system data bus. • Data is transmitted or received by the buffer upon execution of input or output instructions by the CPU. 2. Read/Write and Control Logic • Read- This control signal enables the Read operation. When the signal is low, the CPU reads data from a selected I/O port of the 8255. • Write- This control signal enables the Write operation. When the signal is low, the CPU writes data or controls word into 8255. • Control Logic- The control logic block, accepts control bus signals as well as inputs from the address bus and generates the commands to the individual group control of Group A and Group B.
  • 7. i. (A0 and A1) Port Select 0 and Port Select 1 : • These input signals, in conjunction with the RD and WR inputs, control the selection of one of the three ports. ii. (CS) Chip Select : • A "low" on this input pin enables the communication between the 82C55A and the CPU. iii. (RD) Read : • A "low" on this input pin enables 82C55A to send the data or status information to the CPU on the data bus.
  • 8. • Group A and Group B Controls • The Group A and Group B Control Blocks receives control words from the CPU and issues appropriate commands to the ports associated with it. • The Group A Control block controls port A and PC7, — PC4, while the Group B Control block controls Port B and PC3, — PC0. • Port A: It has an 8-bit latched and buffered output and an 8-bit input latch. It can be programmed in three modes; Mode 0, Mode 1 and Mode 2. • Port B: It has an 8-Bit data I/O latch/buffer and an 8-bit data input buffer. It can be programmed in Mode 0 and Mode 1. • Port C: It has one 8-Bit unlatched input buffer and an 8-bit output latch/buffer,
  • 9. The 8255 can operate in three I/O modes : • Mode 0: Simple input/ output • Mode 1: Input/ output with handshake • Mode 2 : Bi-directional I/O data transfer