SlideShare a Scribd company logo
1 of 27
Download to read offline
1. Pin diagram of 8085
2. I/O interfacing
INTEL 8085INTEL 8085 Pin ConfigurationPin Configuration
• The address bus has 8 signal lines A8 – A15 which are
unidirectional.
• The other 8 address bits are AD0 – AD7 multiplexed (time
shared) with the 8 data bits.
The Address and Data Bus Systems
– So, the bits AD0 – AD7 are bi-directional.
During the execution of the instruction, these
lines carry the address bits during the early
part, then during the late parts of the
execution, they carry the 8 data bits.
– In order to separate the address from the
data, we can use a latch to save the value
before the function of the bits changes.
Task
• Store a data 4FH (0100 1111) in the memory
location 2005H
FFFFH
microprocessor
2005H
0000H
Memory
4FH
Step 1
• First µP places the 16-bit address on the
address bus
• 2005H = 0010 0000 0000 0101
2 0 0 5
• It places 20H on the higher order address bus
A15 to A8
• And 05H on lower order address bus AD7 to
AD0
2 0 0 5
µP
0
0
1
0
0
0
0
0
0
A15
A8
AD
20H
µP 0
0
0
0
0
1
0
1
AD7
AD0
05H
Step 2
• Lower order address bus [AD7 to AD0] are connected with a latch
• Latch is such a device whose input = output
when it is activated
• ALE (Address Latch Enable) signal is
used to activate or deactivate the latch
when it is activated
• But when it is deactivated output does not
change with input
µP
0
0
1
0
0
0
0
0
0
A15
A8
AD
20H
µP 0
0
0
0
0
1
0
1
AD7
AD0
05H
Latch
ALE EN
0
0
0
0
0
1
0
1
Step 3
• Once the lower order address is latched µP
places the data on the data bus [AD7 to AD0]
• And generate an appropriate control signal to• And generate an appropriate control signal to
enable selected memory register
• Thus the data [4FH] is stored in memory
location 2005H
Demultiplex address/data bus
Control Signals for Read/Write Operations
• IO/M = > 1 data transfer between
microprocessor and peripherals (Input-
Output device)
• IO/M = > 0 data transfer between
microprocessor and memory
• RD=> Active low => Read operation
• WR=> Active low => Write operation
Status Signals
Timing Diagram for Memory Write
To write dataTo write data
4FH in the
memory
location 2005H
Timing Diagram for Memory Read
To read dataTo read data
from the
memory
location 2005H
I/O DEVICE
Devices other than memory are known as
I/O devices or Input-Output Devices
Interfacing of I/O device with 8085
In peripheral I/O, device is identified by an
8-bit address
In memory-mapped I/O, device is identified
by a 16-bit address
In 8-bit addressing mode
Maximum number of devices that can be
connected is 28 = 256
Address of the devices will be 00H, 01H, … … , FFHAddress of the devices will be 00H, 01H, … … , FFH
Both lower order 8 address bus (i.e. A0–A7) and
higher order 8 address bus (i.e. A8–A15) contains
the same 8-bit address
In 8-bit addressing mode
Only Accumulator is allowed for receiving or
transmitting data
Instruction to receive data from a device with
address C0H
Instruction to receive data from a device with
address C0H
IN C0H
Instruction to send data to a device with address
12H
OUT 12H
Timing Diagram of ‘IN’ instruction
IN C0H
Memory Code
4125H DBH
4126H C0H
Timing Diagram of ‘OUT’ instruction
OUT 12H
Memory Code
4150H D3H
4151H 12H
Device selection logic
A7
A6
A5
A4
A3
A2
A1
CS
Writing to an Output Port (7EH)
OUT 7EH
I/O Device
A1
A0
CS
Data
Bus
IO / M
WR
A7 A6 A5 A4 A3 A2 A1 A0 Address
0 1 1 1 1 1 1 0 7EH
Data
Bus
Device selection logic
A7
A6
A5
A4
A3
A2
A1
CS
Reading an Input Port (5DH)
IN 5DH
I/O Device
A1
A0
CS
IO / M
RD
A7 A6 A5 A4 A3 A2 A1 A0 Address
0 1 0 1 1 1 0 1 5DH
Data
Bus
Data
Bus
Absolute vs. Partial Decoding
A7
A6
A5
A4
A3
A2
CS
In partial decoding some of the address lines
are used. As a result the device has multiple
address.
I/O Device
CS
IO / M
RD
A7 A6 A5 A4 A3 A2 A1 A0 Address
0 1 1 1 1 1 X X 7CH – 7FH
Data
Bus
Data
Bus
A7 A6 A5 A4 A3 A2 A1 A0 Address
1 1 1 1 1 1 0 0 FC H
1 1 1 1 1 1 0 1 FD H
1 1 1 1 1 1 1 0 FE H
1 1 1 1 1 1 1 1 FF H
A7
A6
A5
Device 1
Device 2
Device 3
Device 4
Use of Decoder
2 to 4 Decoder
11
10
01
00
A0
A1
A4
A3
A2
CS
In memory-mapped addressing mode
I/O device will be treated as a memory register
Address of the devices will be 16-bitAddress of the devices will be 16-bit
Control signal IO/M pin should be low
All memory related instructions are allowed
Memory Mapped
I/O
16-bit device address
Data transfer between any general-
Peripheral Mapped
I/O
8-bit device address
Data is transfer only between accumulatorData transfer between any general-
purpose register and I/O port.
The memory map (64K) is shared between
I/O device and system memory.
More hardware is required to decode 16-
bit address
Arithmetic or logic operation can be
directly performed with I/O data
Data is transfer only between accumulator
and I.O port
Independent of the memory map; 256
input device and 256 output device can be
connected
Less hardware is required to decode 8-bit
address
-Arithmetic or logical operation cannot be
directly performed with I/O data

More Related Content

What's hot

8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil KawareProf. Swapnil V. Kaware
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijayVijay Kumar
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessorAMAN SRIVASTAVA
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 MicroprocessorNahian Ahmed
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORSubash Sambath Kumar
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Jismy .K.Jose
 
1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessortechbed
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Jay Patel
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 
Branching instructions in 8086 microprocessor
Branching instructions in 8086 microprocessorBranching instructions in 8086 microprocessor
Branching instructions in 8086 microprocessorRabin BK
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijayVijay Kumar
 

What's hot (20)

8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Presentation on 8086 Microprocessor
Presentation  on   8086 MicroprocessorPresentation  on   8086 Microprocessor
Presentation on 8086 Microprocessor
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
 
Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086Minimum mode and Maximum mode Configuration in 8086
Minimum mode and Maximum mode Configuration in 8086
 
1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor1326 Introduction To 8086 Microprocessor
1326 Introduction To 8086 Microprocessor
 
8086
80868086
8086
 
Interrupts
InterruptsInterrupts
Interrupts
 
Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051Arithmetic & logical operations in 8051
Arithmetic & logical operations in 8051
 
Stack and subroutine
Stack and subroutineStack and subroutine
Stack and subroutine
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Branching instructions in 8086 microprocessor
Branching instructions in 8086 microprocessorBranching instructions in 8086 microprocessor
Branching instructions in 8086 microprocessor
 
8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijay
 
Instruction set of 8086 Microprocessor
Instruction set of 8086 Microprocessor Instruction set of 8086 Microprocessor
Instruction set of 8086 Microprocessor
 

Similar to Microprocessor Part 2

8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1techbed
 
MAI-introduction of memory and i/o device with 8085
MAI-introduction of memory and i/o device with 8085MAI-introduction of memory and i/o device with 8085
MAI-introduction of memory and i/o device with 8085Ðîgëñ Tàìlør
 
Microprocessor architecture
Microprocessor architectureMicroprocessor architecture
Microprocessor architectureparsh33
 
Architecture and pin diagram of 8085
Architecture and pin diagram of 8085Architecture and pin diagram of 8085
Architecture and pin diagram of 8085Suchismita Paul
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxGowrishankar C
 
Ece 8085-microprocessor-ppt
Ece 8085-microprocessor-pptEce 8085-microprocessor-ppt
Ece 8085-microprocessor-pptsatyamshra
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacingShamsul Huda
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Neelam Kapoor
 
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...sangeeta jogade
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessorIama Marsian
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085ShivamSood22
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessorATTO RATHORE
 

Similar to Microprocessor Part 2 (20)

8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1
 
MAI-introduction of memory and i/o device with 8085
MAI-introduction of memory and i/o device with 8085MAI-introduction of memory and i/o device with 8085
MAI-introduction of memory and i/o device with 8085
 
Microprocessor architecture
Microprocessor architectureMicroprocessor architecture
Microprocessor architecture
 
Architecture and pin diagram of 8085
Architecture and pin diagram of 8085Architecture and pin diagram of 8085
Architecture and pin diagram of 8085
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Mpmc
MpmcMpmc
Mpmc
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
Ece 8085-microprocessor-ppt
Ece 8085-microprocessor-pptEce 8085-microprocessor-ppt
Ece 8085-microprocessor-ppt
 
8085 alp programs
8085 alp programs8085 alp programs
8085 alp programs
 
UNIT 4.pptx
UNIT 4.pptxUNIT 4.pptx
UNIT 4.pptx
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacing
 
microprocessor 8085
microprocessor 8085microprocessor 8085
microprocessor 8085
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 

Recently uploaded

MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
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
 
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
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
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
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...Call girls in Ahmedabad High profile
 
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
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
(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 Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 

Recently uploaded (20)

MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
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
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
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
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
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
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
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...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
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
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
(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 Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 

Microprocessor Part 2

  • 1. 1. Pin diagram of 8085 2. I/O interfacing
  • 2. INTEL 8085INTEL 8085 Pin ConfigurationPin Configuration
  • 3. • The address bus has 8 signal lines A8 – A15 which are unidirectional. • The other 8 address bits are AD0 – AD7 multiplexed (time shared) with the 8 data bits. The Address and Data Bus Systems – So, the bits AD0 – AD7 are bi-directional. During the execution of the instruction, these lines carry the address bits during the early part, then during the late parts of the execution, they carry the 8 data bits. – In order to separate the address from the data, we can use a latch to save the value before the function of the bits changes.
  • 4. Task • Store a data 4FH (0100 1111) in the memory location 2005H FFFFH microprocessor 2005H 0000H Memory 4FH
  • 5. Step 1 • First µP places the 16-bit address on the address bus • 2005H = 0010 0000 0000 0101 2 0 0 5 • It places 20H on the higher order address bus A15 to A8 • And 05H on lower order address bus AD7 to AD0 2 0 0 5
  • 7. Step 2 • Lower order address bus [AD7 to AD0] are connected with a latch • Latch is such a device whose input = output when it is activated • ALE (Address Latch Enable) signal is used to activate or deactivate the latch when it is activated • But when it is deactivated output does not change with input
  • 9. Step 3 • Once the lower order address is latched µP places the data on the data bus [AD7 to AD0] • And generate an appropriate control signal to• And generate an appropriate control signal to enable selected memory register • Thus the data [4FH] is stored in memory location 2005H
  • 11. Control Signals for Read/Write Operations • IO/M = > 1 data transfer between microprocessor and peripherals (Input- Output device) • IO/M = > 0 data transfer between microprocessor and memory • RD=> Active low => Read operation • WR=> Active low => Write operation
  • 13. Timing Diagram for Memory Write To write dataTo write data 4FH in the memory location 2005H
  • 14. Timing Diagram for Memory Read To read dataTo read data from the memory location 2005H
  • 16. Devices other than memory are known as I/O devices or Input-Output Devices
  • 17. Interfacing of I/O device with 8085 In peripheral I/O, device is identified by an 8-bit address In memory-mapped I/O, device is identified by a 16-bit address
  • 18. In 8-bit addressing mode Maximum number of devices that can be connected is 28 = 256 Address of the devices will be 00H, 01H, … … , FFHAddress of the devices will be 00H, 01H, … … , FFH Both lower order 8 address bus (i.e. A0–A7) and higher order 8 address bus (i.e. A8–A15) contains the same 8-bit address
  • 19. In 8-bit addressing mode Only Accumulator is allowed for receiving or transmitting data Instruction to receive data from a device with address C0H Instruction to receive data from a device with address C0H IN C0H Instruction to send data to a device with address 12H OUT 12H
  • 20. Timing Diagram of ‘IN’ instruction IN C0H Memory Code 4125H DBH 4126H C0H
  • 21. Timing Diagram of ‘OUT’ instruction OUT 12H Memory Code 4150H D3H 4151H 12H
  • 22. Device selection logic A7 A6 A5 A4 A3 A2 A1 CS Writing to an Output Port (7EH) OUT 7EH I/O Device A1 A0 CS Data Bus IO / M WR A7 A6 A5 A4 A3 A2 A1 A0 Address 0 1 1 1 1 1 1 0 7EH Data Bus
  • 23. Device selection logic A7 A6 A5 A4 A3 A2 A1 CS Reading an Input Port (5DH) IN 5DH I/O Device A1 A0 CS IO / M RD A7 A6 A5 A4 A3 A2 A1 A0 Address 0 1 0 1 1 1 0 1 5DH Data Bus Data Bus
  • 24. Absolute vs. Partial Decoding A7 A6 A5 A4 A3 A2 CS In partial decoding some of the address lines are used. As a result the device has multiple address. I/O Device CS IO / M RD A7 A6 A5 A4 A3 A2 A1 A0 Address 0 1 1 1 1 1 X X 7CH – 7FH Data Bus Data Bus
  • 25. A7 A6 A5 A4 A3 A2 A1 A0 Address 1 1 1 1 1 1 0 0 FC H 1 1 1 1 1 1 0 1 FD H 1 1 1 1 1 1 1 0 FE H 1 1 1 1 1 1 1 1 FF H A7 A6 A5 Device 1 Device 2 Device 3 Device 4 Use of Decoder 2 to 4 Decoder 11 10 01 00 A0 A1 A4 A3 A2 CS
  • 26. In memory-mapped addressing mode I/O device will be treated as a memory register Address of the devices will be 16-bitAddress of the devices will be 16-bit Control signal IO/M pin should be low All memory related instructions are allowed
  • 27. Memory Mapped I/O 16-bit device address Data transfer between any general- Peripheral Mapped I/O 8-bit device address Data is transfer only between accumulatorData transfer between any general- purpose register and I/O port. The memory map (64K) is shared between I/O device and system memory. More hardware is required to decode 16- bit address Arithmetic or logic operation can be directly performed with I/O data Data is transfer only between accumulator and I.O port Independent of the memory map; 256 input device and 256 output device can be connected Less hardware is required to decode 8-bit address -Arithmetic or logical operation cannot be directly performed with I/O data