SlideShare a Scribd company logo
1 of 27
Chapter 4
8085 Microprocessor Architecture
and Memory Interfacing
8085 Microprocessor
 The Intel 8085 is an 8-bit microprocessor introduced by Intel in 1977.
 It is an 8-bit general purpose microprocessor capable of addressing 64K
of memory.
 It is Single NMOS device.
 It contains 6200 transistors approx.
 The device has 40 pins Dual Inline-Package(DIP), requires a +5V single
power supply, and can operate with a 3-Mhz clock.
Prepared By Rishikesh Bhavsar
8085A
8085 Microprocessor PIN Diagram
8085A
Higher-Order
Address Bus
Multiplexed
Address/Data Bus
28
21
A15
A8
AD7
AD0
19
12
ALE
S0
S1
30
29
33
34
32
31
TRAP 6
7
8
9
10
RST 7.5
RST 6.5
RST 6.5
INTR
READY 35
39HOLD
36
5
4
SID
SOD
X1 X2
+ 5 V GND
1 2 40 20
HLDA 38
11
3 37
RESET
OUT
CLK
OUT
Externally
Initiated
Signals
Externally
Signals
ACK
Serial
I/O
Port
Prepared By Rishikesh Bhavsar
Classify in Six Groups of 8085 Signals
(1)Address Bus,
(2)Data Bus,
(3)Control and status signals,
(4)Power supply and frequency signals,
(5)Externally initiated signals, and
(6)Serial I/O ports.
Prepared By Rishikesh Bhavsar
The Address and Data Busses
• The address bus has 8 signal lines A8 – A15 which are unidirectional.
• The other 8 address bits are multiplexed (time shared) with the 8 data
bits.
– So, the bits AD0 – AD7 are bi-directional and serve as A0 – A7 and D0
– D7 at the same time.
• 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.
Prepared By Rishikesh Bhavsar
The Control and Status Signals
Prepared By Rishikesh Bhavsar
Frequency Control Signals
• There are 3 important pins in the frequency control group.
– X0 and X1 are the inputs from the crystal or clock generating circuit.
• The frequency is internally divided by 2.
– So, to run the microprocessor at 3 MHz, a clock running at 6
MHz should be connected to the X0 and X1 pins.
– CLK (OUT): An output clock pin to drive the clock of the rest of the
system.
Prepared By Rishikesh Bhavsar
De-multiplexing AD7-AD0
– As we know AD7– AD0 lines are serving a dual purpose and that they
need to be demultiplexed to separate out the address.
– The high order bits of the address remain on the bus for three clock
periods. However, the low order bits remain for only one clock period
and they would be lost if they are not saved externally. Also, notice
that the low order bits of the address disappear when they are needed
most.
– To make sure we have the entire address for the full three clock cycles,
we will use an External latch to save the value of AD7– AD0 when it is
carrying the address bits. We use the ALE signal to enable this latch.
– Given that ALE operates as a pulse during T1, we will be able to latch
the address. Then when ALE goes low, the address is saved and the
AD7– AD0 lines can be used for their purpose as the bi-directional
data lines.
Prepared By Rishikesh Bhavsar
8085A
Microprocessor
Higher-Order Address Bus
28
21
A15
A8
AD7
AD0
X1 X2
+ 5 V GND
1 2 40 20
ALE
LATCH
74LS373
A15
A8
A7
A0
D7
D0
AD7
AD0
Higher
Order
Address
Bus
Lower
Order
Address
Bus
Data
BusBidirectional Data Bus 4F
Prepared By Rishikesh Bhavsar
Microprocessor Communication and
Bus Timing Cycle
• Lets look at timing and the data flow of an instruction fetch
operation.
• To understand instruction fetch we need to understand tree
important term:
1. Instruction Cycle: Defined as the time required to complete the
execution of an instruction.
2. T-States: It is defined as one subdivision of the operation performed in
one clock period.
3. Machine Cylce: Defined as the time required to complete one
operation of accessing memory, I/O, or ACKing an External request.
Machine cycle may consist of three to six T-States.
Prepared By Rishikesh Bhavsar
Machine Cycle S1 S0 Control Signals
Opcode Fetch 0 1 1
Memory Read 0 1 0
Memory Write 0 0 1
I/O Read 1 1 0
I/O Write 1 0 1
Interrupt ACK 1 1 1
Halt Z 0 0
Hold Z X X
Reset Z X X
Status
8085 Machine Cycle Status and Control Signals
Prepared By Rishikesh Bhavsar
Steps For Fetching an Instruction
• Lets assume that we are trying to fetch the instruction (Opcode) at memory
location 2005. That means that the program counter is now set to that value
i.e. PCH = 20H and PCL = 05H.
– The following is the sequence of operations:
• The program counter places the address value on the address bus
and the controller issues a RD signal.
• The memory’s address decoder gets the value and determines which
memory location is being accessed.
• The value in the memory location is placed on the data bus.
• The value on the data bus is read into the instruction decoder inside
the microprocessor.
• After decoding the instruction, the control unit issues the proper
control signals to perform the operation.
Prepared By Rishikesh Bhavsar
Timing Signals For Fetching an Instruction
4F –> [MOV C, A] stored @ 2005h
T
1
T
2
T
3
T
4 Prepared By Rishikesh Bhavsar
T1 T2 T3 T4
ALE
CLOCK
AD7-AD0 05H 4FH Opcode
Opcode Fetch Machine Cycle
A15-A08 20H Higher Order Address Bus Execution Phase
Status
Prepared By Rishikesh Bhavsar
ALU
Data Flow from Memory to the MPU [4F – MOV C, A]
INSTRUCTION
DECODER
B
D E
H L
STACK
POINTER
PROGRAM
COUNTER
INTERNAL 8-BIT REGISTER
CONTROL
LOGIC
M
E
M
O
R
Y
D
E
C
O
D
E
R
4F
2000
2005
A/D BUS
2005
4F
4F
CACC External Memory
Prepared By Rishikesh Bhavsar
Temp Reg. Accumulator Flags
INSTRUCTION
DECODER
AND
MACHINE
CYCLE
ENCODING
INSTRUCTION
REG
INTERRUPT CONTROL SERIAL I/O CONTROL
TIMING AND CONTROL UNIT ADDRESS BUFFER
DATA/ADDRESS
BUFFER
Multiplexer
INC/DEC
ADDRESS LATCH
Reg.Select
PC
SP
B C
D E
H L
W Z
A L U
74373 LATCH
8-BIT INTERNAL BUS
ALE
RDWR
8085 MICRO-ARCHITECTURE
S1 S0 IO/M
CLK
OUT
READY
HLDA
HOLD
RESET
OUT
RESET IN
(16)
SIDSODTRAPRST 5.5,6.5,7.5INTAINTR
A15 - A8 AD7 - AD0
A7-A0
8-BIT INTERNAL BUS
Prepared By Rishikesh Bhavsar
TEMP REG ACC FLAGS
INSTRUCTION
DECODER
AND
MACHINE
CYCLE
ENCODING
INSTRUCTION
REG
INTERUPT CONTROL SERIAL I/O CONTROL
TIMING AND CONTROL
ADDRESS
BUFFER
DATA/ADDRESS
BUFFER
MUX
PC
SP
INC/DEC
ADDRESS LATCH
Reg.Select
2
0
B C
D E
H L
W Z
MEMORY
ALU
ADDRESS BUS
LATCH
0
5
DATA BUS
8-BIT INTERNAL BUS
4F
4FMOV C, A  4FH
4F
8-BIT INTERNAL BUS
Prepared By Rishikesh Bhavsar
MOV B,D
copy (B)  (D), PC=2000H
Prepared By Rishikesh Bhavsar
T1 T2 T3 T4
ALE
CLOCK
A7-A0 00H 42H opcode
Opcode Fetch Machine Cycle
A15-A08 20H Higher Order Address Bus Unspecified
Status
Prepared By Rishikesh Bhavsar
MVI L , A6h
Prepared By Rishikesh Bhavsar
CLOCK
A15-A08 09H Unspecified
T1 T2 T3 T4
ALE
A7-A0 25H 2EH Opcode
M1(Opcode Fetch )
Status
T1 T2 T3
26H A6H Data
M2(Memory Read)
09H
Prepared By Rishikesh Bhavsar
M1(Opcode Fetch )
M2(Memory Read)
Prepared By Rishikesh Bhavsar
MVI M , 85h
Prepared By Rishikesh Bhavsar
CLOCK
A15-A08 0CH Unspecified
T1 T2 T3 T4
ALE
A7-A0 A8H 36H
M1(Opcode Fetch )
Status
T1 T2 T3
A9H 85H
M2(Memory Read)
0CH
T1 T2 T3
8DH 85H
M3(Memory Write)
FCH
Prepared By Rishikesh Bhavsar
Prepared By Rishikesh Bhavsar
STA 2065H
GIVEN PC=2010H, A=23H
• Gaonkar pg.114-115
Prepared By Rishikesh Bhavsar
• IDENTIFY THE NUMBER OF BYTES OF FOLLOWING INSTRUCTION?
1. MVI B, 80H
2. LDA 2006H
3. LXI B,2078H
4. IN 08H
5. INX H
• WAP of addition of 16 bit with carry. Take random memory location to store your
result.
• List the four operation commonly performed by the MPU.
• Define following term
a. Bus
b. Flag
c. Assembler
d. Compiler
• How many memory location can be addressed by an MP with 12 address lines?
• How many address line are necessary to address two megabyte of memory?
• The memory address of the last location of an 8K byte memory chip is EFFFH.
Determine starting address.?
Prepared By Rishikesh Bhavsar

More Related Content

What's hot

Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1techbed
 
Addressing modes-of-8085
Addressing modes-of-8085 Addressing modes-of-8085
Addressing modes-of-8085 jemimajerome
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1deval patel
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentalsJLoknathDora
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorMOHIT AGARWAL
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessorAMAN SRIVASTAVA
 
8051 architecture
8051 architecture8051 architecture
8051 architecturesb108ec
 
8051 Timers and Counters
8051 Timers and Counters8051 Timers and Counters
8051 Timers and CountersShreyans Pathak
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introductionShubham Singh
 

What's hot (20)

Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
8085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing18085 Architecture & Memory Interfacing1
8085 Architecture & Memory Interfacing1
 
8051 MICROCONTROLLER
8051 MICROCONTROLLER 8051 MICROCONTROLLER
8051 MICROCONTROLLER
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
Addressing modes-of-8085
Addressing modes-of-8085 Addressing modes-of-8085
Addressing modes-of-8085
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
Adc and dac
Adc and dacAdc and dac
Adc and dac
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
 
Microprocessor fundamentals
Microprocessor fundamentalsMicroprocessor fundamentals
Microprocessor fundamentals
 
Code Conversion in 8085 Microprocessor
Code Conversion in 8085 MicroprocessorCode Conversion in 8085 Microprocessor
Code Conversion in 8085 Microprocessor
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
8051 Timers and Counters
8051 Timers and Counters8051 Timers and Counters
8051 Timers and Counters
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Intel 8051 Programming in C
Intel 8051 Programming in CIntel 8051 Programming in C
Intel 8051 Programming in C
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
 

Similar to Microprocessor 8085 Chapter 4

architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacingShamsul Huda
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions convertedArghodeepPaul
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...Prasad Deshpande
 
Microprocessor and Microcontroller.pdf
Microprocessor and Microcontroller.pdfMicroprocessor and Microcontroller.pdf
Microprocessor and Microcontroller.pdfLatif Khan
 
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...NaWinNK
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessorjhcid
 
Microprocessor.pptx
Microprocessor.pptxMicroprocessor.pptx
Microprocessor.pptxSachinKupade
 
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
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085yedles
 
Architecture and pin diagram of 8085
Architecture and pin diagram of 8085Architecture and pin diagram of 8085
Architecture and pin diagram of 8085Suchismita Paul
 
MICROPROCESSOR AND INTERFACING
MICROPROCESSOR AND INTERFACING MICROPROCESSOR AND INTERFACING
MICROPROCESSOR AND INTERFACING Radhika Talaviya
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Ameen San
 

Similar to Microprocessor 8085 Chapter 4 (20)

8085 (1)
8085 (1)8085 (1)
8085 (1)
 
8085 microprocessor Embedded system
8085 microprocessor  Embedded system8085 microprocessor  Embedded system
8085 microprocessor Embedded system
 
8085 intro
8085 intro8085 intro
8085 intro
 
architecture memory interfacing
architecture memory interfacingarchitecture memory interfacing
architecture memory interfacing
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
8085.ppt
8085.ppt8085.ppt
8085.ppt
 
An introduction to microprocessor architecture using INTEL 8085 as a classic...
An introduction to microprocessor  architecture using INTEL 8085 as a classic...An introduction to microprocessor  architecture using INTEL 8085 as a classic...
An introduction to microprocessor architecture using INTEL 8085 as a classic...
 
Microprocessor and Microcontroller.pdf
Microprocessor and Microcontroller.pdfMicroprocessor and Microcontroller.pdf
Microprocessor and Microcontroller.pdf
 
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
EEE- BEE603 - Microprocessor and Microcontroller- Mr K Dwarakesh_220819_18121...
 
Project
ProjectProject
Project
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 
Microprocessor.pptx
Microprocessor.pptxMicroprocessor.pptx
Microprocessor.pptx
 
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
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
PPT-1.pptx
PPT-1.pptxPPT-1.pptx
PPT-1.pptx
 
Architecture and pin diagram of 8085
Architecture and pin diagram of 8085Architecture and pin diagram of 8085
Architecture and pin diagram of 8085
 
MICROPROCESSOR AND INTERFACING
MICROPROCESSOR AND INTERFACING MICROPROCESSOR AND INTERFACING
MICROPROCESSOR AND INTERFACING
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5
 

Recently uploaded

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
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
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
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
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
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
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
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
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
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
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
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
 
microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
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...
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
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
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

Microprocessor 8085 Chapter 4

  • 1. Chapter 4 8085 Microprocessor Architecture and Memory Interfacing
  • 2. 8085 Microprocessor  The Intel 8085 is an 8-bit microprocessor introduced by Intel in 1977.  It is an 8-bit general purpose microprocessor capable of addressing 64K of memory.  It is Single NMOS device.  It contains 6200 transistors approx.  The device has 40 pins Dual Inline-Package(DIP), requires a +5V single power supply, and can operate with a 3-Mhz clock. Prepared By Rishikesh Bhavsar
  • 3. 8085A 8085 Microprocessor PIN Diagram 8085A Higher-Order Address Bus Multiplexed Address/Data Bus 28 21 A15 A8 AD7 AD0 19 12 ALE S0 S1 30 29 33 34 32 31 TRAP 6 7 8 9 10 RST 7.5 RST 6.5 RST 6.5 INTR READY 35 39HOLD 36 5 4 SID SOD X1 X2 + 5 V GND 1 2 40 20 HLDA 38 11 3 37 RESET OUT CLK OUT Externally Initiated Signals Externally Signals ACK Serial I/O Port Prepared By Rishikesh Bhavsar
  • 4. Classify in Six Groups of 8085 Signals (1)Address Bus, (2)Data Bus, (3)Control and status signals, (4)Power supply and frequency signals, (5)Externally initiated signals, and (6)Serial I/O ports. Prepared By Rishikesh Bhavsar
  • 5. The Address and Data Busses • The address bus has 8 signal lines A8 – A15 which are unidirectional. • The other 8 address bits are multiplexed (time shared) with the 8 data bits. – So, the bits AD0 – AD7 are bi-directional and serve as A0 – A7 and D0 – D7 at the same time. • 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. Prepared By Rishikesh Bhavsar
  • 6. The Control and Status Signals Prepared By Rishikesh Bhavsar
  • 7. Frequency Control Signals • There are 3 important pins in the frequency control group. – X0 and X1 are the inputs from the crystal or clock generating circuit. • The frequency is internally divided by 2. – So, to run the microprocessor at 3 MHz, a clock running at 6 MHz should be connected to the X0 and X1 pins. – CLK (OUT): An output clock pin to drive the clock of the rest of the system. Prepared By Rishikesh Bhavsar
  • 8. De-multiplexing AD7-AD0 – As we know AD7– AD0 lines are serving a dual purpose and that they need to be demultiplexed to separate out the address. – The high order bits of the address remain on the bus for three clock periods. However, the low order bits remain for only one clock period and they would be lost if they are not saved externally. Also, notice that the low order bits of the address disappear when they are needed most. – To make sure we have the entire address for the full three clock cycles, we will use an External latch to save the value of AD7– AD0 when it is carrying the address bits. We use the ALE signal to enable this latch. – Given that ALE operates as a pulse during T1, we will be able to latch the address. Then when ALE goes low, the address is saved and the AD7– AD0 lines can be used for their purpose as the bi-directional data lines. Prepared By Rishikesh Bhavsar
  • 9. 8085A Microprocessor Higher-Order Address Bus 28 21 A15 A8 AD7 AD0 X1 X2 + 5 V GND 1 2 40 20 ALE LATCH 74LS373 A15 A8 A7 A0 D7 D0 AD7 AD0 Higher Order Address Bus Lower Order Address Bus Data BusBidirectional Data Bus 4F Prepared By Rishikesh Bhavsar
  • 10. Microprocessor Communication and Bus Timing Cycle • Lets look at timing and the data flow of an instruction fetch operation. • To understand instruction fetch we need to understand tree important term: 1. Instruction Cycle: Defined as the time required to complete the execution of an instruction. 2. T-States: It is defined as one subdivision of the operation performed in one clock period. 3. Machine Cylce: Defined as the time required to complete one operation of accessing memory, I/O, or ACKing an External request. Machine cycle may consist of three to six T-States. Prepared By Rishikesh Bhavsar
  • 11. Machine Cycle S1 S0 Control Signals Opcode Fetch 0 1 1 Memory Read 0 1 0 Memory Write 0 0 1 I/O Read 1 1 0 I/O Write 1 0 1 Interrupt ACK 1 1 1 Halt Z 0 0 Hold Z X X Reset Z X X Status 8085 Machine Cycle Status and Control Signals Prepared By Rishikesh Bhavsar
  • 12. Steps For Fetching an Instruction • Lets assume that we are trying to fetch the instruction (Opcode) at memory location 2005. That means that the program counter is now set to that value i.e. PCH = 20H and PCL = 05H. – The following is the sequence of operations: • The program counter places the address value on the address bus and the controller issues a RD signal. • The memory’s address decoder gets the value and determines which memory location is being accessed. • The value in the memory location is placed on the data bus. • The value on the data bus is read into the instruction decoder inside the microprocessor. • After decoding the instruction, the control unit issues the proper control signals to perform the operation. Prepared By Rishikesh Bhavsar
  • 13. Timing Signals For Fetching an Instruction 4F –> [MOV C, A] stored @ 2005h T 1 T 2 T 3 T 4 Prepared By Rishikesh Bhavsar
  • 14. T1 T2 T3 T4 ALE CLOCK AD7-AD0 05H 4FH Opcode Opcode Fetch Machine Cycle A15-A08 20H Higher Order Address Bus Execution Phase Status Prepared By Rishikesh Bhavsar
  • 15. ALU Data Flow from Memory to the MPU [4F – MOV C, A] INSTRUCTION DECODER B D E H L STACK POINTER PROGRAM COUNTER INTERNAL 8-BIT REGISTER CONTROL LOGIC M E M O R Y D E C O D E R 4F 2000 2005 A/D BUS 2005 4F 4F CACC External Memory Prepared By Rishikesh Bhavsar
  • 16. Temp Reg. Accumulator Flags INSTRUCTION DECODER AND MACHINE CYCLE ENCODING INSTRUCTION REG INTERRUPT CONTROL SERIAL I/O CONTROL TIMING AND CONTROL UNIT ADDRESS BUFFER DATA/ADDRESS BUFFER Multiplexer INC/DEC ADDRESS LATCH Reg.Select PC SP B C D E H L W Z A L U 74373 LATCH 8-BIT INTERNAL BUS ALE RDWR 8085 MICRO-ARCHITECTURE S1 S0 IO/M CLK OUT READY HLDA HOLD RESET OUT RESET IN (16) SIDSODTRAPRST 5.5,6.5,7.5INTAINTR A15 - A8 AD7 - AD0 A7-A0 8-BIT INTERNAL BUS Prepared By Rishikesh Bhavsar
  • 17. TEMP REG ACC FLAGS INSTRUCTION DECODER AND MACHINE CYCLE ENCODING INSTRUCTION REG INTERUPT CONTROL SERIAL I/O CONTROL TIMING AND CONTROL ADDRESS BUFFER DATA/ADDRESS BUFFER MUX PC SP INC/DEC ADDRESS LATCH Reg.Select 2 0 B C D E H L W Z MEMORY ALU ADDRESS BUS LATCH 0 5 DATA BUS 8-BIT INTERNAL BUS 4F 4FMOV C, A  4FH 4F 8-BIT INTERNAL BUS Prepared By Rishikesh Bhavsar
  • 18. MOV B,D copy (B)  (D), PC=2000H Prepared By Rishikesh Bhavsar
  • 19. T1 T2 T3 T4 ALE CLOCK A7-A0 00H 42H opcode Opcode Fetch Machine Cycle A15-A08 20H Higher Order Address Bus Unspecified Status Prepared By Rishikesh Bhavsar
  • 20. MVI L , A6h Prepared By Rishikesh Bhavsar
  • 21. CLOCK A15-A08 09H Unspecified T1 T2 T3 T4 ALE A7-A0 25H 2EH Opcode M1(Opcode Fetch ) Status T1 T2 T3 26H A6H Data M2(Memory Read) 09H Prepared By Rishikesh Bhavsar
  • 22. M1(Opcode Fetch ) M2(Memory Read) Prepared By Rishikesh Bhavsar
  • 23. MVI M , 85h Prepared By Rishikesh Bhavsar
  • 24. CLOCK A15-A08 0CH Unspecified T1 T2 T3 T4 ALE A7-A0 A8H 36H M1(Opcode Fetch ) Status T1 T2 T3 A9H 85H M2(Memory Read) 0CH T1 T2 T3 8DH 85H M3(Memory Write) FCH Prepared By Rishikesh Bhavsar
  • 26. STA 2065H GIVEN PC=2010H, A=23H • Gaonkar pg.114-115 Prepared By Rishikesh Bhavsar
  • 27. • IDENTIFY THE NUMBER OF BYTES OF FOLLOWING INSTRUCTION? 1. MVI B, 80H 2. LDA 2006H 3. LXI B,2078H 4. IN 08H 5. INX H • WAP of addition of 16 bit with carry. Take random memory location to store your result. • List the four operation commonly performed by the MPU. • Define following term a. Bus b. Flag c. Assembler d. Compiler • How many memory location can be addressed by an MP with 12 address lines? • How many address line are necessary to address two megabyte of memory? • The memory address of the last location of an 8K byte memory chip is EFFFH. Determine starting address.? Prepared By Rishikesh Bhavsar