SlideShare uma empresa Scribd logo
1 de 25
8255

Programmable Peripheral Interface
Interfacing

Presented By: Kulshrestha Utkarsh
Review



Intro With Handshaking



More on Address decoding



Interface with memory



Introduction to Programmable Peripheral Interface 82C55

Kulsrestha Utkarsh

02/01/14
05:37 AM

2
Data Input With Handshaking




System Data Bus





M
P
U

~RD



Kulsrestha Utkarsh

Programmable
Interface
Device

STB Strobe
IBF




Data lines

INTR

Peripheral
Device
Such As
Keyboard

Pin for
status check
02/01/14
05:37 AM

3
Data Output With Handshaking




System Data Bus





M
P
U

~WR


Kulsrestha Utkarsh

Programmable
Interface
Device

OBF

Peripheral
Device
Such As
Printer

ACK




Data Lines

INTR

Pin for
status check
02/01/14
05:37 AM

4
About 8255


The 8255 is a popular interfacing component, that can
interface any TTL-compatible I/O device to a
microprocessor.



It is used to interface to the keyboard and a parallel
printer port in PCs (usually as part of an integrated
chipset).



Requires insertion of wait states if used with a
microprocessor using higher that an 8 MHz clock.



PPI has 24 pins for I/O that are programmable in groups of
12 pins and has three distinct modes of operation.

Kulsrestha Utkarsh

02/01/14
05:37 AM

5
82C55 : Pin Layout

Kulsrestha Utkarsh

02/01/14
05:37 AM

6
PA7 – PA0

Group 1
Control
D0D
7

Data Bus
Buffer

Group 1
Port C
upper
Group 2
Port C
Lower

RD
WR

A0
A1
RESET

Kulsrestha Utkarsh

CS

Read/
Write
Control
Logic

Group 1
Port A

Group 2
Control

PC7 – PC4

PC3 – PC0

PB7 – PB0
Group 2
Port B
02/01/14
05:37 AM

7
Programming 8255

Kulsrestha Utkarsh

02/01/14
05:37 AM

8
Mode 0 (Basic Input/Output).


This functional configuration provides simple input and output operations for
each of the three ports.



No “handshaking” is required, data is simply written to or read from a
specified port.

Kulsrestha Utkarsh

02/01/14
05:37 AM

9
82C55: Mode 0, Scan Display

Kulsrestha Utkarsh

02/01/14
05:37 AM

10
8255: Mode 0, Scan Display
 Mode

0 operation causes the 8255 to function as a
buffered input device or as a latched output
device.
 In previous example, both ports A and B are
programmed as (mode 0) simple latched output
ports.
 Port A provides the segment data inputs to display
and port B provides a means of selecting one
display position at a time.
 Different values are displayed in each digit via
fast time multiplexing.
Kulsrestha Utkarsh

02/01/14
05:37 AM

11
8255: Mode 0, Scan Key

Kulsrestha Utkarsh

02/01/14
05:37 AM

12
MODE 1 (Input/Output with handshake)




Kulsrestha Utkarsh

This functional configuration provides a means for transferring I/O data
to or from a specified port in conjunction with strobes or
“handshaking” signals.
In mode 1, Port A and Port B use the lines on Port C to generate or
accept these “handshaking” signals

02/01/14
05:37 AM

13
Mode 1 Basic functional Definitions
 Two

Groups (Group A and Group B).

 Each

group contains one 8-bit data port and one
4-bit control/data port.

 The

8-bit data port can be either input or output
Both inputs and outputs are latched.

 The

4-bit port is used for control and status of the
8-bit data port.

Kulsrestha Utkarsh

02/01/14
05:37 AM

14
8255: Mode 1 Input with handshake







~STB : The strobe input loads data into the port latch on a 0-to1 transition.
IBF : Input buffer full is an output indicating that the input
latch contain information.
INTR : Interrupt request is an output that requests an
interrupts.
INTE : The interrupt enable signal is neither an input nor an
output; it is an internal bit programmed via the PC4 (port A) or
PC2 (port B) bits.
PC7,PC6 : The port C pins 7 and 6 are general purpose I/O pings
that are available for any purpose.

Kulsrestha Utkarsh

02/01/14
05:37 AM

15
8255: Mode 1 Input with handshake

Kulsrestha Utkarsh

02/01/14
05:37 AM

16

Signal definitions for Mode 1 Strobe Input
8255 : Mode 1 Output with handshake.








~OBF : Output buffer full is an output that goes low when
data is latched in either port A or port B. Goes low on
~ACK.
~ACK : The acknowledge signal causes the ~OBF pin return
to 0. This is a response from an external device.
INTR : Interrupt request is an output that requests an
interrupt.
INTE : The interrupt enable signal is neither an input nor
an output; it is an internal bit programmed via the
PC6(Port A) or PC2(port B) bits.
PC5,PC4 : The port C pins 5 and 4 are general-purpose I/O
pins that are available for any purpose.

Kulsrestha Utkarsh

02/01/14
05:37 AM

17
8255 : Mode 1 Output handshake.

Kulsrestha Utkarsh

02/01/14
05:37 AM

18
8255: Mode 2 Bi-directional Operation
 This

functional configuration provides a means for
communicating with a peripheral device or
structure on a single 8-bit bus for both
transmitting and receiving data (bidirectional bus
I/O).
 “Handshaking” signals are provided to maintain
proper bus flow discipline in a similar manner to
MODE 1.
 Interrupt generation and enable/disable functions
are also available.
Kulsrestha Utkarsh

02/01/14
05:37 AM

19
MODE 2 Basic Functional Definitions:
 Used

in Group A only.

 One

8-bit, bi-directional bus port (Port A) and a 5bit control port (Port C).

 Both

inputs and outputs are latched.

 The

5-bit control port (Port C) is used for control
and status for the 8-bit, bi-directional bus port
(Port A).

Kulsrestha Utkarsh

02/01/14
05:37 AM

20
8255: Mode 2 Bi-directional Operation
INTR : Interrupt request is an output that requests an
interrupt.
 ~OBF : Output Buffer Full is an output indicating that
that output buffer contains data for the bi-directional
bus.
 ~ACK : Acknowledge is an input that enables tri-state
buffers which are otherwise in their high-impedance
state.
 ~STB : The strobe input loads data into the port A
latch.


Kulsrestha Utkarsh

02/01/14
05:37 AM

21
8255: Mode 2 Bi-directional Operation
 IBF

: Input buffer full is an output indicating that
the input latch contains information for the
external bi-directional bus.

 INTE

: Interrupt enable are internal bits that
enable the INTR pin. BIT PC6(INTE1) and
PC4(INTE2).

 PC2,PC1,PC0

: These port C pins are generalpurpose I/O pins that are available for any
purpose.

Kulsrestha Utkarsh

02/01/14
05:37 AM

22
8255: Mode 2 Bi-directional Operation

Kulsrestha Utkarsh

•

02/01/14
Timing diagram is a combination of the Mode 1 05:37 AM
Strobed Input23and
Mode 1 Strobed Output Timing diagrams.
Mode definition summary

Kulsrestha Utkarsh

02/01/14
05:37 AM

24
More on interface, next time.
By Kulshrestha utkarsh

Mais conteúdo relacionado

Mais procurados

Mais procurados (18)

Chapter
ChapterChapter
Chapter
 
Ppi 8255
Ppi 8255Ppi 8255
Ppi 8255
 
8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic
 
Interfacing ics for microprocessor
Interfacing ics for microprocessorInterfacing ics for microprocessor
Interfacing ics for microprocessor
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
 
Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 ppt
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5Microprocessor Basics 8085-8255 ch-5
Microprocessor Basics 8085-8255 ch-5
 
8155 Basic Concepts
8155 Basic Concepts8155 Basic Concepts
8155 Basic Concepts
 
7 8255
7 82557 8255
7 8255
 
1204 Ppi 8255
1204 Ppi 82551204 Ppi 8255
1204 Ppi 8255
 
8255 class
8255 class8255 class
8255 class
 
Unit 3-1 (1)
Unit 3-1 (1)Unit 3-1 (1)
Unit 3-1 (1)
 
An application of 8085 register interfacing with LED
An application  of 8085 register interfacing with LEDAn application  of 8085 register interfacing with LED
An application of 8085 register interfacing with LED
 
IC 8253 - Microprocessor
IC 8253 - Microprocessor IC 8253 - Microprocessor
IC 8253 - Microprocessor
 
1203 Ppi 8155
1203 Ppi 81551203 Ppi 8155
1203 Ppi 8155
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4
 
The 8255 PPI
The 8255 PPIThe 8255 PPI
The 8255 PPI
 

Destaque

Timer
TimerTimer
TimerAisu
 
Notes nyquist plot and stability criteria
Notes nyquist plot and stability criteriaNotes nyquist plot and stability criteria
Notes nyquist plot and stability criteriaAleksandar Micic
 
Nyquist and polar plot 118 & 117
Nyquist and polar plot 118 & 117Nyquist and polar plot 118 & 117
Nyquist and polar plot 118 & 117RishabhKashyap2
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interruptsIsha Negi
 
Chapter 4 - Digital Transmission
Chapter 4 - Digital TransmissionChapter 4 - Digital Transmission
Chapter 4 - Digital TransmissionWayne Jones Jnr
 

Destaque (9)

Timer
TimerTimer
Timer
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
Control chap10
Control chap10Control chap10
Control chap10
 
Notes nyquist plot and stability criteria
Notes nyquist plot and stability criteriaNotes nyquist plot and stability criteria
Notes nyquist plot and stability criteria
 
Nyquist and polar plot 118 & 117
Nyquist and polar plot 118 & 117Nyquist and polar plot 118 & 117
Nyquist and polar plot 118 & 117
 
8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
8251 USART
8251 USART8251 USART
8251 USART
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
Chapter 4 - Digital Transmission
Chapter 4 - Digital TransmissionChapter 4 - Digital Transmission
Chapter 4 - Digital Transmission
 

Semelhante a 8255_utkarsh_kulshrestha

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
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral InterfaceAmit Kumer Podder
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxGowrishankar C
 
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
 
Io (2)
Io (2)Io (2)
Io (2)Aisu
 
PIC16F877A C Programming.ppt
PIC16F877A C Programming.pptPIC16F877A C Programming.ppt
PIC16F877A C Programming.pptIlaiyarajaS1
 
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
 
Hardware interfacing basics using AVR
Hardware interfacing basics using AVRHardware interfacing basics using AVR
Hardware interfacing basics using AVRMohamed Abdallah
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and WorkingDr.YNM
 

Semelhante a 8255_utkarsh_kulshrestha (20)

8255_Ppi new
8255_Ppi new8255_Ppi new
8255_Ppi new
 
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
 
363118864 8255-nptel
363118864 8255-nptel363118864 8255-nptel
363118864 8255-nptel
 
8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface8255 Programmble Peripheral Interface
8255 Programmble Peripheral Interface
 
1.ppi 8255
1.ppi 8255 1.ppi 8255
1.ppi 8255
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
 
8255 ppi.pptx
8255 ppi.pptx8255 ppi.pptx
8255 ppi.pptx
 
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
 
8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf8255 & IO Interfacing.pdf
8255 & IO Interfacing.pdf
 
Io (2)
Io (2)Io (2)
Io (2)
 
2.instrumentation ii
2.instrumentation ii2.instrumentation ii
2.instrumentation ii
 
PIC16F877A C Programming.ppt
PIC16F877A C Programming.pptPIC16F877A C Programming.ppt
PIC16F877A C Programming.ppt
 
L4-L6 8255 A.pptx
L4-L6 8255 A.pptxL4-L6 8255 A.pptx
L4-L6 8255 A.pptx
 
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
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Hardware interfacing basics using AVR
Hardware interfacing basics using AVRHardware interfacing basics using AVR
Hardware interfacing basics using AVR
 
89 v51rd2bn
89 v51rd2bn89 v51rd2bn
89 v51rd2bn
 
Basics of peripheral devices and Working
Basics of peripheral devices and WorkingBasics of peripheral devices and Working
Basics of peripheral devices and Working
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 

Último

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 

Último (20)

Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 

8255_utkarsh_kulshrestha

  • 2. Review  Intro With Handshaking  More on Address decoding  Interface with memory  Introduction to Programmable Peripheral Interface 82C55 Kulsrestha Utkarsh 02/01/14 05:37 AM 2
  • 3. Data Input With Handshaking   System Data Bus   M P U ~RD  Kulsrestha Utkarsh Programmable Interface Device STB Strobe IBF   Data lines INTR Peripheral Device Such As Keyboard Pin for status check 02/01/14 05:37 AM 3
  • 4. Data Output With Handshaking   System Data Bus   M P U ~WR  Kulsrestha Utkarsh Programmable Interface Device OBF Peripheral Device Such As Printer ACK   Data Lines INTR Pin for status check 02/01/14 05:37 AM 4
  • 5. About 8255  The 8255 is a popular interfacing component, that can interface any TTL-compatible I/O device to a microprocessor.  It is used to interface to the keyboard and a parallel printer port in PCs (usually as part of an integrated chipset).  Requires insertion of wait states if used with a microprocessor using higher that an 8 MHz clock.  PPI has 24 pins for I/O that are programmable in groups of 12 pins and has three distinct modes of operation. Kulsrestha Utkarsh 02/01/14 05:37 AM 5
  • 6. 82C55 : Pin Layout Kulsrestha Utkarsh 02/01/14 05:37 AM 6
  • 7. PA7 – PA0 Group 1 Control D0D 7 Data Bus Buffer Group 1 Port C upper Group 2 Port C Lower RD WR A0 A1 RESET Kulsrestha Utkarsh CS Read/ Write Control Logic Group 1 Port A Group 2 Control PC7 – PC4 PC3 – PC0 PB7 – PB0 Group 2 Port B 02/01/14 05:37 AM 7
  • 9. Mode 0 (Basic Input/Output).  This functional configuration provides simple input and output operations for each of the three ports.  No “handshaking” is required, data is simply written to or read from a specified port. Kulsrestha Utkarsh 02/01/14 05:37 AM 9
  • 10. 82C55: Mode 0, Scan Display Kulsrestha Utkarsh 02/01/14 05:37 AM 10
  • 11. 8255: Mode 0, Scan Display  Mode 0 operation causes the 8255 to function as a buffered input device or as a latched output device.  In previous example, both ports A and B are programmed as (mode 0) simple latched output ports.  Port A provides the segment data inputs to display and port B provides a means of selecting one display position at a time.  Different values are displayed in each digit via fast time multiplexing. Kulsrestha Utkarsh 02/01/14 05:37 AM 11
  • 12. 8255: Mode 0, Scan Key Kulsrestha Utkarsh 02/01/14 05:37 AM 12
  • 13. MODE 1 (Input/Output with handshake)   Kulsrestha Utkarsh This functional configuration provides a means for transferring I/O data to or from a specified port in conjunction with strobes or “handshaking” signals. In mode 1, Port A and Port B use the lines on Port C to generate or accept these “handshaking” signals 02/01/14 05:37 AM 13
  • 14. Mode 1 Basic functional Definitions  Two Groups (Group A and Group B).  Each group contains one 8-bit data port and one 4-bit control/data port.  The 8-bit data port can be either input or output Both inputs and outputs are latched.  The 4-bit port is used for control and status of the 8-bit data port. Kulsrestha Utkarsh 02/01/14 05:37 AM 14
  • 15. 8255: Mode 1 Input with handshake      ~STB : The strobe input loads data into the port latch on a 0-to1 transition. IBF : Input buffer full is an output indicating that the input latch contain information. INTR : Interrupt request is an output that requests an interrupts. INTE : The interrupt enable signal is neither an input nor an output; it is an internal bit programmed via the PC4 (port A) or PC2 (port B) bits. PC7,PC6 : The port C pins 7 and 6 are general purpose I/O pings that are available for any purpose. Kulsrestha Utkarsh 02/01/14 05:37 AM 15
  • 16. 8255: Mode 1 Input with handshake Kulsrestha Utkarsh 02/01/14 05:37 AM 16 Signal definitions for Mode 1 Strobe Input
  • 17. 8255 : Mode 1 Output with handshake.      ~OBF : Output buffer full is an output that goes low when data is latched in either port A or port B. Goes low on ~ACK. ~ACK : The acknowledge signal causes the ~OBF pin return to 0. This is a response from an external device. INTR : Interrupt request is an output that requests an interrupt. INTE : The interrupt enable signal is neither an input nor an output; it is an internal bit programmed via the PC6(Port A) or PC2(port B) bits. PC5,PC4 : The port C pins 5 and 4 are general-purpose I/O pins that are available for any purpose. Kulsrestha Utkarsh 02/01/14 05:37 AM 17
  • 18. 8255 : Mode 1 Output handshake. Kulsrestha Utkarsh 02/01/14 05:37 AM 18
  • 19. 8255: Mode 2 Bi-directional Operation  This functional configuration provides a means for communicating with a peripheral device or structure on a single 8-bit bus for both transmitting and receiving data (bidirectional bus I/O).  “Handshaking” signals are provided to maintain proper bus flow discipline in a similar manner to MODE 1.  Interrupt generation and enable/disable functions are also available. Kulsrestha Utkarsh 02/01/14 05:37 AM 19
  • 20. MODE 2 Basic Functional Definitions:  Used in Group A only.  One 8-bit, bi-directional bus port (Port A) and a 5bit control port (Port C).  Both inputs and outputs are latched.  The 5-bit control port (Port C) is used for control and status for the 8-bit, bi-directional bus port (Port A). Kulsrestha Utkarsh 02/01/14 05:37 AM 20
  • 21. 8255: Mode 2 Bi-directional Operation INTR : Interrupt request is an output that requests an interrupt.  ~OBF : Output Buffer Full is an output indicating that that output buffer contains data for the bi-directional bus.  ~ACK : Acknowledge is an input that enables tri-state buffers which are otherwise in their high-impedance state.  ~STB : The strobe input loads data into the port A latch.  Kulsrestha Utkarsh 02/01/14 05:37 AM 21
  • 22. 8255: Mode 2 Bi-directional Operation  IBF : Input buffer full is an output indicating that the input latch contains information for the external bi-directional bus.  INTE : Interrupt enable are internal bits that enable the INTR pin. BIT PC6(INTE1) and PC4(INTE2).  PC2,PC1,PC0 : These port C pins are generalpurpose I/O pins that are available for any purpose. Kulsrestha Utkarsh 02/01/14 05:37 AM 22
  • 23. 8255: Mode 2 Bi-directional Operation Kulsrestha Utkarsh • 02/01/14 Timing diagram is a combination of the Mode 1 05:37 AM Strobed Input23and Mode 1 Strobed Output Timing diagrams.
  • 24. Mode definition summary Kulsrestha Utkarsh 02/01/14 05:37 AM 24
  • 25. More on interface, next time. By Kulshrestha utkarsh

Notas do Editor

  1. Examples of connecting LCD displays and stepper motors are also given.
  2. Similar to Mode 0 output operation, except that handshaking signals are provided using port C. Signal Definitions for Mode 1 Strobed Output