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
 
8255 Programmable parallel I/O
8255 Programmable parallel I/O 8255 Programmable parallel I/O
8255 Programmable parallel I/O Muhammed Afsal Villan
 
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

8255 ppi.pptx
8255 ppi.pptx8255 ppi.pptx
8255 ppi.pptxzahid235639
 
Mod-2 M&M.pptx
Mod-2 M&M.pptxMod-2 M&M.pptx
Mod-2 M&M.pptxTechCook1
 
unit-3-8255.pdf
unit-3-8255.pdfunit-3-8255.pdf
unit-3-8255.pdfShanmukhSaiR
 
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 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdfIlavarasan Tamizh
 
8255 presentaion.ppt
8255 presentaion.ppt8255 presentaion.ppt
8255 presentaion.pptkamlesh deshmukh
 
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

Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X79953056974 Low Rate Call Girls In Saket, Delhi NCR
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEselvakumar948
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilVinayVitekari
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxNadaHaitham1
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsArindam Chakraborty, Ph.D., P.E. (CA, TX)
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxchumtiyababu
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesRAJNEESHKUMAR341697
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 

Recently uploaded (20)

Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 

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