SlideShare a Scribd company logo
1 of 22
Dr. Vithalrao Vikhe Patil College of Engineering,
Ahmednagar
Department of Information Technology
Lecture on
Unit No 6
Programmable Peripheral Interface
(8255A)
Processor Architecture & Interfacing (S.E.I.T.)
Presentation By
Prof. Ms. M. S. Gunjal
Department of Information Technology
Learning Objectives
 List the elements of 8255A Programmable
Peripheral Interface (PPI)
 Explain its various operating modes
April 23, 2020 2
Features of the 8255A
 The 8255A is a general purpose programmable
universal I/O interface device.
 It has been designed to interface the CPU with
its outside world such as DAC,ADC,Keyboard
etc.
 Consist of three 8-bit bidirectional I/O ports
namely Port A,Port B & Port C.
 These ports divided in two groups of 12 bits
each as Group A and Group B.
 8255 operate in 2 différent modes namely
1)Basic I/O Mode
2)BSR (bit set reset) mode
 Bit set / bit reset applicable on 8-bits ( port C)
April 23, 2020 3
Continue….
 It is 40 pin IC.
 8 pins of 8255 used to connect 8 bit
bidirectional CPU data bus.
 Ports are used to connect peripheral devices.
 It has Read/Write control logic.
April 23, 2020 4
Architecture of 8255A
April 23, 2020 5
8255A Block Functions
April 23, 2020 6
 Data Bus Buffers
It is used to interface the internal 8-bit bus of
the 8255A to the system data bus.
 Read/Write Control Logic
The 8 bit data bus buffer is controlled by the
read/write control logic. The RD/WR control
logic manages all of the internal and external
transfer of both data and control words.
CS# A1 A0 Selection
0 0 0 Port A
0 0 1 Port B
0 1 0 Port C
0 1 1 CONTROL
REGISTE
R
 Ports :
There are four ports which can be configured
as either input or output. Port A is an
indivisible 8-bit port. Port B is an indivisible
8-bit port. Port C (upper) is an indivisible 4-
bit port. Port C (lower) is an indivisible 4-bit
port.
April 23, 2020 7
April 23, 2020 8
• Group Control Logic
– The group control logic block comprises
registers that can be programmed by the
processor and combinational circuitry whose
configuration is a function of the controlling
registers. The combinational circuitry controls the
modes in which the ports operate.
– The group control logic is split into two similar
sub systems- group A control which configures
Port A and the upper 4-bits of Port C. group B
control which configures Port B and the lower 4-
bits of Port C.
8255A Block Functions
Mode Word Definition for the 8255A
April 23, 2020 9
Examples of 8255A Initialization
April 23, 2020 10
Modes in 8255A
 There are two different modes of 8255. These
modes are:
1) Bit Set Reset (BSR) Mode
2) Input / Output Modes
April 23, 2020 11
Bit Set Reset (BSR) Mode
 Mode is used to set or reset the bits of the Port-
C only. For BSR mode always D7 will be 0. The
control register is looking like this:
 The (D3, D2, D1) will be 000 to 111. In this
mode it affects only one bit of Port C at a time.
When user set the bit, it remains set until user
unset it. The user needs to load the bit pattern
in control register to change the bit.
April 23, 2020 12
Input Output Modes
 Mode is selected when the D7 bit of the control
register is 1.
 This mode has also three different modes.
These modes are Mode 0 and Mode 1 and Mode
2.
 The control register is looking like below in this
mode:
April 23, 2020 13
Input Output Modes
D7 1 for IO mode and 0 for BSR mode
D6,
D 5
These are used to set port A mode. for 00, it is m0
mode, for 01, it is m2 mode and 10 or 11, it is m2
mode.
D4
1 when port A is taking input, 0 when port A is
sending output.
D3
1 when higher nibble of port C is taking input, and
0 when higher nibble is sending output.
D2
It tells the mode of Port B. For 0, it is m0 mode,
and for 1, it is m1 mode.
D1
1 when port B is taking input, 0 when port B is
sending output.
D0
1 when lower nibble of port C is taking input, and 0
when lower nibble is sending output.
April 23, 2020 14
Mode 0 – Simple / Basic IO Mode
 In this mode all of the ports A, B and C can be
used as input or output mode. The outputs are
latched, but inputs are not latched. This mode
has interrupt handling capability.
April 23, 2020 15
Mode 1 – Handshake Mode
 Handshake I/O mode or strobbed I/O mode. In
this mode either port A or port B can work as
simple input port or simple output port, and
port C bits are used for handshake signals
before actual data transmission. It has interrupt
handling capacity and input and output are
latched.
April 23, 2020 16
Continue…
April 23, 2020 17
Example: A CPU wants to transfer data to a
printer. In this case since speed of
processor is very fast as compared to
relatively slow printer, so before actual data
transfer it will send handshake signals to
the printer for synchronization of the speed
of the CPU and the peripherals.
Handshake Bits
 In order to use port A or port B for handshake input or
output operation, we initialize that port in mode 1. Some
of the pins of port C function as handshake lines.
 For port B in this mode, PC0, PC1 and PC2 pins
function as handshake lines.
 If port A is initialized as mode 1 input port, then, PC3,
PC4 and PC5 function as handshake signals. Pins PC6
and PC7 are available for use as input/output lines.
The mode 1 which supports handshaking has
following features:
 Two ports i.e. port A and B can be used as 8-bit I/O
ports.
 Each port uses three lines of port c as handshake
signal and remaining two signals can be used as I/O
ports.
 Interrupt logic is supported.
 Input and Output data are latched.
April 23, 2020 18
Input Handshaking signals
 IBF (Input Buffer Full) - It is an output indicating that
the input latch contains information.
 STB (Strobed Input) - The strobe input loads data
into the port latch, which holds the information until it
is input to the microprocessor via the IN instruction.
 INTR (Interrupt request) - It is an output that
requests an interrupt. The INTR pin becomes logic 1
when the STB input returns to a logic 1, and is
cleared when the data is input from the port by the
microprocessor.
 INTE (Interrupt enable) - It is neither an input nor an
output; it is an internal bit programmed via the port
PC4 (port A) or PC2 (port B) bit position.
April 23, 2020 19
Output Handshaking signals
 OBF (Output Buffer Full) - It is an output that
goes low whenever data are output(OUT) to the
port A or port B latch. This signal is set to logic 1
whenever the ACK pulse returns from the
external device.
 ACK (Acknowledge)-It causes the OBF pin to
return to a logic 1 level. The ACK signal is a
response from an external device, indicating that
it has received the data from the 82C55A port.
 INTR (Interrupt request) - It is a signal that
often interrupts the microprocessor when the
external device receives the data via the signal,
this pin is qualified by the internal INTE(interrupt
enable) bit.
 INTE (Interrupt enable) - It is neither an input
nor an output; it is an internal bit programmed
to enable or disable the INTR pin. The INTE A bit
is programmed using the PC6 bit and INTE B is
programmed using the PC2 bit.
April 23, 2020 20
Mode 2 – Bidirectional I/O
 In this mode only Port A can work, and port B
can either be in mode 0 or mode 1, and the
port C are used for handshaking. In this mode
the inputs and outputs are latched.
April 23, 2020 21
Thank You !!!
April 23, 2020 22

More Related Content

What's hot

Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Neelam Kapoor
 
25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interfacesandip das
 
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
 
Microprocessor Instructions
Microprocessor InstructionsMicroprocessor Instructions
Microprocessor InstructionsChinmoy Ghorai
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)Vasu Ch
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255Marajulislam3
 
8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic Adarsh Patel
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesSrikrishna Thota
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programmingsandip das
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and WorkingDr.YNM
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155techbed
 
Interfacing ics for microprocessor
Interfacing ics for microprocessorInterfacing ics for microprocessor
Interfacing ics for microprocessorTHANDAIAH PRABU
 
Programmable Peripheral Interface
Programmable Peripheral InterfaceProgrammable Peripheral Interface
Programmable Peripheral InterfaceMeherul1234
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral InterfaceAmit Kumer Podder
 

What's hot (20)

Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5
 
25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface25. 8255 programmable peripheral interface
25. 8255 programmable peripheral interface
 
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.
 
Chapter
ChapterChapter
Chapter
 
Microprocessor Instructions
Microprocessor InstructionsMicroprocessor Instructions
Microprocessor Instructions
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
Ppi 8255
Ppi 8255Ppi 8255
Ppi 8255
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
 
8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic
 
Microprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 FeaturesMicroprocessor Interfacing and 8155 Features
Microprocessor Interfacing and 8155 Features
 
7 8255
7 82557 8255
7 8255
 
Class7
Class7Class7
Class7
 
26. 8255 control word programming
26. 8255 control word programming26. 8255 control word programming
26. 8255 control word programming
 
8255 Programmable parallel I/O
8255 Programmable parallel I/O 8255 Programmable parallel I/O
8255 Programmable parallel I/O
 
8255_utkarsh_kulshrestha
8255_utkarsh_kulshrestha8255_utkarsh_kulshrestha
8255_utkarsh_kulshrestha
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and Working
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155
 
Interfacing ics for microprocessor
Interfacing ics for microprocessorInterfacing ics for microprocessor
Interfacing ics for microprocessor
 
Programmable Peripheral Interface
Programmable Peripheral InterfaceProgrammable Peripheral Interface
Programmable Peripheral Interface
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface
 

Similar to 8255_Ppi new

Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptxTechCook1
 
363118864 8255-nptel
363118864 8255-nptel363118864 8255-nptel
363118864 8255-nptelZerihunDemere
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxGowrishankar C
 
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
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessorATTO RATHORE
 
Embedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingEmbedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingIkhwan_Fakrudin
 
Io (2)
Io (2)Io (2)
Io (2)Aisu
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3deepakdmaat
 
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
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsransherraj
 

Similar to 8255_Ppi new (18)

8255 ppi.pptx
8255 ppi.pptx8255 ppi.pptx
8255 ppi.pptx
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptx
 
unit-3-8255.pdf
unit-3-8255.pdfunit-3-8255.pdf
unit-3-8255.pdf
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
363118864 8255-nptel
363118864 8255-nptel363118864 8255-nptel
363118864 8255-nptel
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
 
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
 
8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.ppt
 
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
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
Embedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programmingEmbedded system (Chapter 3) io_port_programming
Embedded system (Chapter 3) io_port_programming
 
Io (2)
Io (2)Io (2)
Io (2)
 
MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3MicroProcessors and MicroControllersUnit3
MicroProcessors and MicroControllersUnit3
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 
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
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
With suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerruptsWith suitable diagram explain the working of 8255 a and inerrupts
With suitable diagram explain the working of 8255 a and inerrupts
 

Recently uploaded

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
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
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
(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
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
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
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
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
 

Recently uploaded (20)

CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
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...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
(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...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
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
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
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
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 

8255_Ppi new

  • 1. Dr. Vithalrao Vikhe Patil College of Engineering, Ahmednagar Department of Information Technology Lecture on Unit No 6 Programmable Peripheral Interface (8255A) Processor Architecture & Interfacing (S.E.I.T.) Presentation By Prof. Ms. M. S. Gunjal Department of Information Technology
  • 2. Learning Objectives  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes April 23, 2020 2
  • 3. Features of the 8255A  The 8255A is a general purpose programmable universal I/O interface device.  It has been designed to interface the CPU with its outside world such as DAC,ADC,Keyboard etc.  Consist of three 8-bit bidirectional I/O ports namely Port A,Port B & Port C.  These ports divided in two groups of 12 bits each as Group A and Group B.  8255 operate in 2 différent modes namely 1)Basic I/O Mode 2)BSR (bit set reset) mode  Bit set / bit reset applicable on 8-bits ( port C) April 23, 2020 3
  • 4. Continue….  It is 40 pin IC.  8 pins of 8255 used to connect 8 bit bidirectional CPU data bus.  Ports are used to connect peripheral devices.  It has Read/Write control logic. April 23, 2020 4
  • 6. 8255A Block Functions April 23, 2020 6  Data Bus Buffers It is used to interface the internal 8-bit bus of the 8255A to the system data bus.  Read/Write Control Logic The 8 bit data bus buffer is controlled by the read/write control logic. The RD/WR control logic manages all of the internal and external transfer of both data and control words. CS# A1 A0 Selection 0 0 0 Port A 0 0 1 Port B 0 1 0 Port C 0 1 1 CONTROL REGISTE R
  • 7.  Ports : There are four ports which can be configured as either input or output. Port A is an indivisible 8-bit port. Port B is an indivisible 8-bit port. Port C (upper) is an indivisible 4- bit port. Port C (lower) is an indivisible 4-bit port. April 23, 2020 7
  • 8. April 23, 2020 8 • Group Control Logic – The group control logic block comprises registers that can be programmed by the processor and combinational circuitry whose configuration is a function of the controlling registers. The combinational circuitry controls the modes in which the ports operate. – The group control logic is split into two similar sub systems- group A control which configures Port A and the upper 4-bits of Port C. group B control which configures Port B and the lower 4- bits of Port C. 8255A Block Functions
  • 9. Mode Word Definition for the 8255A April 23, 2020 9
  • 10. Examples of 8255A Initialization April 23, 2020 10
  • 11. Modes in 8255A  There are two different modes of 8255. These modes are: 1) Bit Set Reset (BSR) Mode 2) Input / Output Modes April 23, 2020 11
  • 12. Bit Set Reset (BSR) Mode  Mode is used to set or reset the bits of the Port- C only. For BSR mode always D7 will be 0. The control register is looking like this:  The (D3, D2, D1) will be 000 to 111. In this mode it affects only one bit of Port C at a time. When user set the bit, it remains set until user unset it. The user needs to load the bit pattern in control register to change the bit. April 23, 2020 12
  • 13. Input Output Modes  Mode is selected when the D7 bit of the control register is 1.  This mode has also three different modes. These modes are Mode 0 and Mode 1 and Mode 2.  The control register is looking like below in this mode: April 23, 2020 13
  • 14. Input Output Modes D7 1 for IO mode and 0 for BSR mode D6, D 5 These are used to set port A mode. for 00, it is m0 mode, for 01, it is m2 mode and 10 or 11, it is m2 mode. D4 1 when port A is taking input, 0 when port A is sending output. D3 1 when higher nibble of port C is taking input, and 0 when higher nibble is sending output. D2 It tells the mode of Port B. For 0, it is m0 mode, and for 1, it is m1 mode. D1 1 when port B is taking input, 0 when port B is sending output. D0 1 when lower nibble of port C is taking input, and 0 when lower nibble is sending output. April 23, 2020 14
  • 15. Mode 0 – Simple / Basic IO Mode  In this mode all of the ports A, B and C can be used as input or output mode. The outputs are latched, but inputs are not latched. This mode has interrupt handling capability. April 23, 2020 15
  • 16. Mode 1 – Handshake Mode  Handshake I/O mode or strobbed I/O mode. In this mode either port A or port B can work as simple input port or simple output port, and port C bits are used for handshake signals before actual data transmission. It has interrupt handling capacity and input and output are latched. April 23, 2020 16
  • 17. Continue… April 23, 2020 17 Example: A CPU wants to transfer data to a printer. In this case since speed of processor is very fast as compared to relatively slow printer, so before actual data transfer it will send handshake signals to the printer for synchronization of the speed of the CPU and the peripherals.
  • 18. Handshake Bits  In order to use port A or port B for handshake input or output operation, we initialize that port in mode 1. Some of the pins of port C function as handshake lines.  For port B in this mode, PC0, PC1 and PC2 pins function as handshake lines.  If port A is initialized as mode 1 input port, then, PC3, PC4 and PC5 function as handshake signals. Pins PC6 and PC7 are available for use as input/output lines. The mode 1 which supports handshaking has following features:  Two ports i.e. port A and B can be used as 8-bit I/O ports.  Each port uses three lines of port c as handshake signal and remaining two signals can be used as I/O ports.  Interrupt logic is supported.  Input and Output data are latched. April 23, 2020 18
  • 19. Input Handshaking signals  IBF (Input Buffer Full) - It is an output indicating that the input latch contains information.  STB (Strobed Input) - The strobe input loads data into the port latch, which holds the information until it is input to the microprocessor via the IN instruction.  INTR (Interrupt request) - It is an output that requests an interrupt. The INTR pin becomes logic 1 when the STB input returns to a logic 1, and is cleared when the data is input from the port by the microprocessor.  INTE (Interrupt enable) - It is neither an input nor an output; it is an internal bit programmed via the port PC4 (port A) or PC2 (port B) bit position. April 23, 2020 19
  • 20. Output Handshaking signals  OBF (Output Buffer Full) - It is an output that goes low whenever data are output(OUT) to the port A or port B latch. This signal is set to logic 1 whenever the ACK pulse returns from the external device.  ACK (Acknowledge)-It causes the OBF pin to return to a logic 1 level. The ACK signal is a response from an external device, indicating that it has received the data from the 82C55A port.  INTR (Interrupt request) - It is a signal that often interrupts the microprocessor when the external device receives the data via the signal, this pin is qualified by the internal INTE(interrupt enable) bit.  INTE (Interrupt enable) - It is neither an input nor an output; it is an internal bit programmed to enable or disable the INTR pin. The INTE A bit is programmed using the PC6 bit and INTE B is programmed using the PC2 bit. April 23, 2020 20
  • 21. Mode 2 – Bidirectional I/O  In this mode only Port A can work, and port B can either be in mode 0 or mode 1, and the port C are used for handshaking. In this mode the inputs and outputs are latched. April 23, 2020 21
  • 22. Thank You !!! April 23, 2020 22