SlideShare a Scribd company logo
1 of 22
Download to read offline
MINI PROJECT
Submitted By:
Ran sher(1814110)
1
National Institute of Technology, Silchar
CONTENTS
CONTENTS
 (a) With suitable diagram explain the
working of 8255A.
 (b) INTR , interrupts.
2
National Institute of Technology, Silchar
Introduction:
 Any application of Microprocessor Based system Requires
the transfer of data between external circuitry to the
Microprocessor and Microprocessor to the External
circuitry.
 User can give information (i.e. input) to the
 User can give information (i.e. input) to the
Microprocessor using keyboard and user can see the result
or output information from the Microprocessor with the
help of display.
 Hence interfacing is used to exchange information between
two different applications/devices.
3
National Institute of Technology, Silchar
Memory Mapped I/O:
 Device address is of 16 Bit, means A0 to A15 lines are used
to generate device address.
 MEMR and MEMW control signals are used to control read
and write I/O operations.
 Data transfer is between Any register and I/O device.
 Data transfer is between Any register and I/O device.
 Maximum number of I/O devices are 65536.
 Decoding 16 bit address may requires more hardware.
 For e.g. MOV R M, ADD M,CMP M etc.
4
National Institute of Technology, Silchar
I/O mapped I/O:
 Device address is of 8 Bit, means A0 to A7 or A8 to A15 lines
are used to generate device address.
 IOR and IOW control signals are used to control read and
write I/O operations.
 Data transfer is between Accumulator and I/O device.
 Maximum number of I/O devices are 256.
 Decoding 16 bit address may requires less hardware. For e.g.
IN, OUT etc.
5
National Institute of Technology, Silchar
Interfacing in memory mapped I/O:
Interfacing in I/O mapped I/O
6
National Institute of Technology, Silchar
8255 PPI:
 The INTEL 8255 is a 40 pin IC having total 24 I/O pins. consisting
of 3 numbers of 8 –bit parallel I/O ports (i.e. PORT A, PORT
B,PORT C).
 The ports can be programmed to function either as a input port or
as a output port in different operating modes.
It requires 4 internal addresses and has one logic LOW chip select
 It requires 4 internal addresses and has one logic LOW chip select
pin.
 Its main functions are to interface peripheral devices to the
microprocessor.
 Basically used for parallel data transfer. operates in mainly two
modes.
 Bit Set Reset Mode (BSR Mode).
 I/O Mode.
7
National Institute of Technology, Silchar
8255 Block Diagram:
8
National Institute of Technology, Silchar
Functions of Blocks:
9
National Institute of Technology, Silchar
Pin diagram:
10
National Institute of Technology, Silchar
Functions of Pins:
11
National Institute of Technology, Silchar
Functions of Pins:
12
National Institute of Technology, Silchar
Functions of Pins:
13
National Institute of Technology, Silchar
Operating modes of 8255:
• There are two main operational modes of 8255:
• Input/output (I/O) mode,
• Bit set/reset mode (BSR Mode).
• I/O mode again classified into three types
(1) Mode 0 (2) Mode 1 (3) Mode 2.
14
National Institute of Technology, Silchar
(1) Mode 0 (2) Mode 1 (3) Mode 2.
Mode 0:
• In this mode, the ports can be used for simple
input/output operations without handshaking.
• If both port A and B are initialized in mode 0, the two
halves of port C can be either used together as an
additional 8-bit port, or they can be used as individual 4-
bit ports.
15
National Institute of Technology, Silchar
• Since the two halves of port C are independent, they may
be used such that one-half is initialized as an input port
while the other half is initialized as an output port.
• The mode 0 has following features:
• O/p are latched.
• I/p are buffered not latched.
• Port do not have handshake or interrupt capability.
Mode 1:
• When we wish to use port A or port B for handshake
(strobbed) input or output operation, we initialize that port
in mode 1.
• For port B in this mode (irrespective of whether is acting as
an input port or output port), PC0, PC1 and PC2 pins
function as handshake lines.
16
National Institute of Technology, Silchar
function as handshake lines.
• The mode 1 has following features:
• Two ports i.e. port A and B can be use as 8-bit i/o port.
• Each port uses three lines of port c as handshake signal and
remaining two signals can be function as i/o port.
• Interrupt logic is supported.
• Input and Output data are latched.
Mode 2:
• Only group A can be initialized in this mode.
• Port A can be used for bidirectional handshake data transfer.
This means that data can be input or output on the same
eight lines (PA0 -PA7).
• Pins PC3 -PC7 are used as handshake lines for port A.
17
National Institute of Technology, Silchar
• The remaining pins of port C (PC0 -PC2) can be used as
input/output lines if group B is initialized in mode 0.
• In this mode, the 8255 may be used to extend the system bus
to a slave microprocessor.
Interrupts in 8085 microprocessor
When microprocessor receives any interrupt signal from peripheral(s) which
are requesting its services, it stops its current execution and program control is
transferred to a sub-routine by generating CALL signal and after executing sub-
routine by generating RET signal again program control is transferred to main
program from where it had stopped.
When microprocessor receives interrupt signals, it sends an acknowledgement
(INTA) to the peripheral which is requesting for its service.
Interrupts can be classified into various categories based on different
parameters:
18
National Institute of Technology, Silchar
parameters:
Hardware and Software Interrupts –
•When microprocessors receive interrupt signals through pins (hardware) of
microprocessor, they are known as Hardware Interrupts. There are 5 Hardware
Interrupts in 8085 microprocessor. They are – INTR, RST 7.5, RST 6.5, RST 5.5,
TRAP
•Software Interrupts are those which are inserted in between the program
which means these are mnemonics of microprocessor. There are 8 software
interrupts in 8085 microprocessor. They are – RST 0, RST 1, RST 2, RST 3, RST 4,
RST 5, RST 6, RST 7.
Vectored and Non-Vectored Interrupts –
Vectored Interrupts are those which have fixed vector address (starting
address of sub-routine) and after executing these, program control is
transferred to that address.
19
National Institute of Technology, Silchar
•Maskable and Non-Maskable Interrupts –
Maskable Interrupts are those which can be disabled or ignored by the
microprocessor. These interrupts are either edge-triggered or level-triggered, so
they can be disabled. INTR, RST 7.5, RST 6.5, RST 5.5 are maskable interrupts in
8085 microprocessor.
•Non-Maskable Interrupts are those which cannot be disabled or ignored by
microprocessor. TRAP is a non-maskable interrupt. It consists of both level as well
as edge triggering and is used in critical power failure conditions.
20
National Institute of Technology, Silchar
Priority of Interrupts –
When microprocessor receives multiple interrupt requests simultaneously, it will
execute the interrupt service request (ISR) according to the priority of the
interrupts.
Instruction for Interrupts –
Enable Interrupt (EI) – The interrupt enable flip-flop is set and all interrupts
are enabled following the execution of next instruction followed by EI. No flags
are affected. After a system reset, the interrupt enable flip-flop is reset, thus
disabling the interrupts. This instruction is necessary to enable the interrupts
again (except TRAP).
Disable Interrupt (DI) – This instruction is used to reset the value of enable
flip-flop hence disabling all the interrupts. No flags are affected by this
instruction.
21
National Institute of Technology, Silchar
instruction.
Set Interrupt Mask (SIM) – It is used to implement the hardware interrupts
(RST 7.5, RST 6.5, RST 5.5) by setting various bits to form masks or generate
output data via the Serial Output Data (SOD) line. First the required value is
loaded in accumulator then SIM will take the bit pattern from it.
Read Interrupt Mask (RIM) – This instruction is used to read the status of
the hardware interrupts (RST 7.5, RST 6.5, RST 5.5) by loading into the A
register a byte which defines the condition of the mask bits for the interrupts. It
also reads the condition of SID (Serial Input Data) bit on the microprocessor.
THANK YOU
22
National Institute of Technology, Silchar
THANK YOU

More Related Content

What's hot (20)

Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy Live B tech Projects & Industrial Training @Technogroovy
Live B tech Projects & Industrial Training @Technogroovy
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
RF based Wireless Robot using 8051 Microcontroller
RF based Wireless Robot using 8051 MicrocontrollerRF based Wireless Robot using 8051 Microcontroller
RF based Wireless Robot using 8051 Microcontroller
 
Embedded systems and its ports
Embedded systems and its portsEmbedded systems and its ports
Embedded systems and its ports
 
Unit 5
Unit 5Unit 5
Unit 5
 
Pic full note
Pic full notePic full note
Pic full note
 
Applications of 8051 microcontrollers
Applications of 8051 microcontrollersApplications of 8051 microcontrollers
Applications of 8051 microcontrollers
 
Pheripheral interface
Pheripheral interfacePheripheral interface
Pheripheral interface
 
Week 1.2 pin diagram
Week 1.2   pin diagramWeek 1.2   pin diagram
Week 1.2 pin diagram
 
Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
8259 a
8259 a8259 a
8259 a
 
Important questions
Important questionsImportant questions
Important questions
 
8051 microcontroller and it’s interface
8051 microcontroller and it’s interface8051 microcontroller and it’s interface
8051 microcontroller and it’s interface
 
7 8255
7 82557 8255
7 8255
 
Mcapptunitvii
McapptunitviiMcapptunitvii
Mcapptunitvii
 
Microcontroller 8051
Microcontroller 8051Microcontroller 8051
Microcontroller 8051
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
PIC Microcontroller
PIC MicrocontrollerPIC Microcontroller
PIC Microcontroller
 

Similar to With suitable diagram explain the working of 8255 a and inerrupts

Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Neelam Kapoor
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Ameen San
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentseceprinter6
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxGowrishankar C
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxGowrishankar C
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085yedles
 
8085 Pin Configuration
8085 Pin Configuration8085 Pin Configuration
8085 Pin ConfigurationNoor Nabi
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085ShivamSood22
 
5 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-1812030342375 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-181203034237sunilkumar4879
 
2 8085 microprocessor
2 8085 microprocessor2 8085 microprocessor
2 8085 microprocessoraditidey19
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessorAMAN SRIVASTAVA
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notesRavali Sunki
 

Similar to With suitable diagram explain the working of 8255 a and inerrupts (20)

Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
Unit 3 mpmc
Unit 3 mpmcUnit 3 mpmc
Unit 3 mpmc
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5
 
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering studentsEMBEDDED SYSTEMS AND IOT lab manual for enginnering students
EMBEDDED SYSTEMS AND IOT lab manual for enginnering students
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
EE6502 Microprocessor and Microcontroller
EE6502   Microprocessor and MicrocontrollerEE6502   Microprocessor and Microcontroller
EE6502 Microprocessor and Microcontroller
 
Important questions
Important questionsImportant questions
Important questions
 
UNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptxUNIT 3 Peripheral Interfacing.pptx
UNIT 3 Peripheral Interfacing.pptx
 
embedded system
embedded systemembedded system
embedded system
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
8085 Pin Configuration
8085 Pin Configuration8085 Pin Configuration
8085 Pin Configuration
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Pin diagram of 8085
Pin diagram of 8085Pin diagram of 8085
Pin diagram of 8085
 
5 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-1812030342375 pin-diagram-of-8085-181203034237
5 pin-diagram-of-8085-181203034237
 
2 8085 microprocessor
2 8085 microprocessor2 8085 microprocessor
2 8085 microprocessor
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
Atmega 16 drdo report
Atmega 16 drdo reportAtmega 16 drdo report
Atmega 16 drdo report
 
20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes20838382 microprocessor-8085-notes
20838382 microprocessor-8085-notes
 
8085 intro
8085 intro8085 intro
8085 intro
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 

More from ransherraj

Design of transducer to measure comparative rotation in 3 d using lvdt
Design of transducer to measure comparative rotation in 3 d using lvdtDesign of transducer to measure comparative rotation in 3 d using lvdt
Design of transducer to measure comparative rotation in 3 d using lvdtransherraj
 
Multirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolationMultirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolationransherraj
 
Design of Transducer to measure comparative rotation in 3D using LVDT
Design of Transducer to measure comparative rotation in 3D using LVDTDesign of Transducer to measure comparative rotation in 3D using LVDT
Design of Transducer to measure comparative rotation in 3D using LVDTransherraj
 
Log antilog amplifiers by ransher
Log antilog amplifiers by ransherLog antilog amplifiers by ransher
Log antilog amplifiers by ransherransherraj
 
applications of fuzzy logic ransher
applications of fuzzy logic ransherapplications of fuzzy logic ransher
applications of fuzzy logic ransherransherraj
 
Microwave devices by ransher raj
Microwave devices by ransher rajMicrowave devices by ransher raj
Microwave devices by ransher rajransherraj
 

More from ransherraj (6)

Design of transducer to measure comparative rotation in 3 d using lvdt
Design of transducer to measure comparative rotation in 3 d using lvdtDesign of transducer to measure comparative rotation in 3 d using lvdt
Design of transducer to measure comparative rotation in 3 d using lvdt
 
Multirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolationMultirate signal processing and decimation interpolation
Multirate signal processing and decimation interpolation
 
Design of Transducer to measure comparative rotation in 3D using LVDT
Design of Transducer to measure comparative rotation in 3D using LVDTDesign of Transducer to measure comparative rotation in 3D using LVDT
Design of Transducer to measure comparative rotation in 3D using LVDT
 
Log antilog amplifiers by ransher
Log antilog amplifiers by ransherLog antilog amplifiers by ransher
Log antilog amplifiers by ransher
 
applications of fuzzy logic ransher
applications of fuzzy logic ransherapplications of fuzzy logic ransher
applications of fuzzy logic ransher
 
Microwave devices by ransher raj
Microwave devices by ransher rajMicrowave devices by ransher raj
Microwave devices by ransher raj
 

Recently uploaded

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
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
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
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...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 

With suitable diagram explain the working of 8255 a and inerrupts

  • 1. MINI PROJECT Submitted By: Ran sher(1814110) 1 National Institute of Technology, Silchar
  • 2. CONTENTS CONTENTS  (a) With suitable diagram explain the working of 8255A.  (b) INTR , interrupts. 2 National Institute of Technology, Silchar
  • 3. Introduction:  Any application of Microprocessor Based system Requires the transfer of data between external circuitry to the Microprocessor and Microprocessor to the External circuitry.  User can give information (i.e. input) to the  User can give information (i.e. input) to the Microprocessor using keyboard and user can see the result or output information from the Microprocessor with the help of display.  Hence interfacing is used to exchange information between two different applications/devices. 3 National Institute of Technology, Silchar
  • 4. Memory Mapped I/O:  Device address is of 16 Bit, means A0 to A15 lines are used to generate device address.  MEMR and MEMW control signals are used to control read and write I/O operations.  Data transfer is between Any register and I/O device.  Data transfer is between Any register and I/O device.  Maximum number of I/O devices are 65536.  Decoding 16 bit address may requires more hardware.  For e.g. MOV R M, ADD M,CMP M etc. 4 National Institute of Technology, Silchar
  • 5. I/O mapped I/O:  Device address is of 8 Bit, means A0 to A7 or A8 to A15 lines are used to generate device address.  IOR and IOW control signals are used to control read and write I/O operations.  Data transfer is between Accumulator and I/O device.  Maximum number of I/O devices are 256.  Decoding 16 bit address may requires less hardware. For e.g. IN, OUT etc. 5 National Institute of Technology, Silchar
  • 6. Interfacing in memory mapped I/O: Interfacing in I/O mapped I/O 6 National Institute of Technology, Silchar
  • 7. 8255 PPI:  The INTEL 8255 is a 40 pin IC having total 24 I/O pins. consisting of 3 numbers of 8 –bit parallel I/O ports (i.e. PORT A, PORT B,PORT C).  The ports can be programmed to function either as a input port or as a output port in different operating modes. It requires 4 internal addresses and has one logic LOW chip select  It requires 4 internal addresses and has one logic LOW chip select pin.  Its main functions are to interface peripheral devices to the microprocessor.  Basically used for parallel data transfer. operates in mainly two modes.  Bit Set Reset Mode (BSR Mode).  I/O Mode. 7 National Institute of Technology, Silchar
  • 8. 8255 Block Diagram: 8 National Institute of Technology, Silchar
  • 9. Functions of Blocks: 9 National Institute of Technology, Silchar
  • 10. Pin diagram: 10 National Institute of Technology, Silchar
  • 11. Functions of Pins: 11 National Institute of Technology, Silchar
  • 12. Functions of Pins: 12 National Institute of Technology, Silchar
  • 13. Functions of Pins: 13 National Institute of Technology, Silchar
  • 14. Operating modes of 8255: • There are two main operational modes of 8255: • Input/output (I/O) mode, • Bit set/reset mode (BSR Mode). • I/O mode again classified into three types (1) Mode 0 (2) Mode 1 (3) Mode 2. 14 National Institute of Technology, Silchar (1) Mode 0 (2) Mode 1 (3) Mode 2.
  • 15. Mode 0: • In this mode, the ports can be used for simple input/output operations without handshaking. • If both port A and B are initialized in mode 0, the two halves of port C can be either used together as an additional 8-bit port, or they can be used as individual 4- bit ports. 15 National Institute of Technology, Silchar • Since the two halves of port C are independent, they may be used such that one-half is initialized as an input port while the other half is initialized as an output port. • The mode 0 has following features: • O/p are latched. • I/p are buffered not latched. • Port do not have handshake or interrupt capability.
  • 16. Mode 1: • When we wish to use port A or port B for handshake (strobbed) input or output operation, we initialize that port in mode 1. • For port B in this mode (irrespective of whether is acting as an input port or output port), PC0, PC1 and PC2 pins function as handshake lines. 16 National Institute of Technology, Silchar function as handshake lines. • The mode 1 has following features: • Two ports i.e. port A and B can be use as 8-bit i/o port. • Each port uses three lines of port c as handshake signal and remaining two signals can be function as i/o port. • Interrupt logic is supported. • Input and Output data are latched.
  • 17. Mode 2: • Only group A can be initialized in this mode. • Port A can be used for bidirectional handshake data transfer. This means that data can be input or output on the same eight lines (PA0 -PA7). • Pins PC3 -PC7 are used as handshake lines for port A. 17 National Institute of Technology, Silchar • The remaining pins of port C (PC0 -PC2) can be used as input/output lines if group B is initialized in mode 0. • In this mode, the 8255 may be used to extend the system bus to a slave microprocessor.
  • 18. Interrupts in 8085 microprocessor When microprocessor receives any interrupt signal from peripheral(s) which are requesting its services, it stops its current execution and program control is transferred to a sub-routine by generating CALL signal and after executing sub- routine by generating RET signal again program control is transferred to main program from where it had stopped. When microprocessor receives interrupt signals, it sends an acknowledgement (INTA) to the peripheral which is requesting for its service. Interrupts can be classified into various categories based on different parameters: 18 National Institute of Technology, Silchar parameters: Hardware and Software Interrupts – •When microprocessors receive interrupt signals through pins (hardware) of microprocessor, they are known as Hardware Interrupts. There are 5 Hardware Interrupts in 8085 microprocessor. They are – INTR, RST 7.5, RST 6.5, RST 5.5, TRAP •Software Interrupts are those which are inserted in between the program which means these are mnemonics of microprocessor. There are 8 software interrupts in 8085 microprocessor. They are – RST 0, RST 1, RST 2, RST 3, RST 4, RST 5, RST 6, RST 7.
  • 19. Vectored and Non-Vectored Interrupts – Vectored Interrupts are those which have fixed vector address (starting address of sub-routine) and after executing these, program control is transferred to that address. 19 National Institute of Technology, Silchar
  • 20. •Maskable and Non-Maskable Interrupts – Maskable Interrupts are those which can be disabled or ignored by the microprocessor. These interrupts are either edge-triggered or level-triggered, so they can be disabled. INTR, RST 7.5, RST 6.5, RST 5.5 are maskable interrupts in 8085 microprocessor. •Non-Maskable Interrupts are those which cannot be disabled or ignored by microprocessor. TRAP is a non-maskable interrupt. It consists of both level as well as edge triggering and is used in critical power failure conditions. 20 National Institute of Technology, Silchar Priority of Interrupts – When microprocessor receives multiple interrupt requests simultaneously, it will execute the interrupt service request (ISR) according to the priority of the interrupts.
  • 21. Instruction for Interrupts – Enable Interrupt (EI) – The interrupt enable flip-flop is set and all interrupts are enabled following the execution of next instruction followed by EI. No flags are affected. After a system reset, the interrupt enable flip-flop is reset, thus disabling the interrupts. This instruction is necessary to enable the interrupts again (except TRAP). Disable Interrupt (DI) – This instruction is used to reset the value of enable flip-flop hence disabling all the interrupts. No flags are affected by this instruction. 21 National Institute of Technology, Silchar instruction. Set Interrupt Mask (SIM) – It is used to implement the hardware interrupts (RST 7.5, RST 6.5, RST 5.5) by setting various bits to form masks or generate output data via the Serial Output Data (SOD) line. First the required value is loaded in accumulator then SIM will take the bit pattern from it. Read Interrupt Mask (RIM) – This instruction is used to read the status of the hardware interrupts (RST 7.5, RST 6.5, RST 5.5) by loading into the A register a byte which defines the condition of the mask bits for the interrupts. It also reads the condition of SID (Serial Input Data) bit on the microprocessor.
  • 22. THANK YOU 22 National Institute of Technology, Silchar THANK YOU