SlideShare a Scribd company logo
1 of 37
Intel 8085
22
Intel 8085Intel 8085
PinPin
ConfigurationConfiguration
33
Signals and I/O Pins
44
Intel 8085 CPU Block DiagramIntel 8085 CPU Block Diagram
The 8085 and Its Buses
 The 8085 is an 8-bit general purpose microprocessor that can
address 64K Byte of memory.
 It has 40 pins and uses +5V for power. It can run at a maximum
frequency of 3 MHz.
 The pins on the chip can be grouped into 6 groups:

Address Bus.

Data Bus.

Control and Status Signals.

Power supply and frequency.

Externally Initiated Signals.

Serial I/O ports.
The Address and Data Bus Systems
 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.
7
ALE used to demultiplex address/data bus
The Control and Status
Signals
 There are 4 main control and status signals. These are:

ALE: Address Latch Enable. This signal is a pulse that
become 1 when the AD0 – AD7 lines have an address
on them. It becomes 0 after that. This signal can be used
to enable a latch to save the address bits from the AD
lines.

RD: Read. Active low.

WR: Write. Active low.

IO/M: This signal specifies whether the operation is a
memory operation (IO/M=0) or an I/O operation
(IO/M=1).

S1 and S0 : Status signals to specify the kind of
operation being performed. Usually not used in small
systems.
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.
 We will discuss the rest of the control signals as we get to them.
A closer look at the 8085
Architecture
 Now, let’s look at some of its features
with more details.
The ALU
 In addition to the arithmetic & logic circuits, the ALU
includes an accumulator, which is a part of every
arithmetic & logic operation.
 Also, the ALU includes a temporary register used for
holding data temporarily during the execution of the
operation. This temporary register is not accessible
by the programmer.
The Flags register
 There is also a flag register whose bits are affected by the arithmetic &
logic operations.

S-sign flag
 The sign flag is set if bit D7 of the accumulator is set after an
arithmetic or logic operation.

Z-zero flag
 Set if the result of the ALU operation is 0. Otherwise is reset.
This flag is affected by operations on the accumulator as well
as other registers. (DCR B).

AC-Auxiliary Carry
 This flag is set when a carry is generated from bit D3 and
passed to D4 . This flag is used only internally for BCD
operations.

P-Parity flag
 After an ALU operation, if the result has an even # of 1s, the
p-flag is set. Otherwise it is cleared. So, the flag can be used
to indicate even parity.

CY-carry flag
 This flag is set when a carry is generated from bit D7 after an
unsigned operation.

OV-Overflow flag
 This flag is set when an overflow occurs after a signed
operation.
 Now, Let us see how the different units
and bus systems stay connected:
A15-A8
LatchAD7-AD0
D7- D0
A7- A0
8085
ALE
IO/MRDWR
1K Byte
Memory
Chip
WRRD
CS
A9- A0
A15- A10
Chip Selection
Circuit
More on the 8085 machine
cycles
 The 8085 executes several types of instructions
with each requiring a different number of
operations of different types. However, the
operations can be grouped into a small set.
 The three main types are:

Memory Read and Write.

I/O Read and Write.

Request Acknowledge.
 These can be further divided into various smaller
operations (machine cycles).
Opcode Fetch Machine Cycle
 The first step of executing any instruction is the Opcode fetch
cycle.
 In this cycle, the microprocessor brings in the instruction’s
Opcode from memory.

To differentiate this machine cycle from the very similar
“memory read” cycle, the control & status signals are set
as follows:
 IO/M=0, s0 and s1 are both 1.
 This machine cycle has four T-states.

The 8085 uses the first 3 T-states to fetch the opcode.

T4 is used to decode and execute it.
 It is also possible for an instruction to have 6 T-states in an
opcode fetch machine cycle.
Memory Read Machine Cycle
 The memory read machine cycle is
exactly the same as the opcode fetch
except:
 It only has 3 T-states
 The s0 signal is set to 0 instead.
The Memory Read Machine Cycle
 To understand the memory read machine cycle, let’s
study the execution of the following instruction:

MVI A, 32
 In memory, this instruction looks like:

The first byte 3EH represents the opcode for loading
a byte into the accumulator (MVI A), the second byte
is the data to be loaded.
 The 8085 needs to read these two bytes from memory
before it can execute the instruction. Therefore, it will
need at least two machine cycles.
 The first machine cycle is the opcode fetch
discussed earlier.
 The second machine cycle is the Memory Read
Cycle.
2000H
2001H
3E
32
Machine Cycles vs. Number of bytes
in the instruction
 Machine cycles and instruction length, do not have a direct
relationship.
 To illustrate, let’s look at the machine cycles needed to
execute the following instruction.

STA 2065H

This is a 3-byte instruction requiring 4 machine
cycles and 13 T-states.

The machine code will be stored
in memory as shown to the right

This instruction requires the following 4 machine cycles:
 A ‘Opcode fetch’ to fetch the opcode (32H) from location 2010H, ‘decode’ it
and determine that 2 more bytes are needed (4 T-states).
 A ‘Memory read’ to read the low order byte of the address (65H) (3 T-states).
 A ‘Memory read’ to read the high order byte of the address (20H) (3 T-
states).
 A ‘memory write’ to write the contents of the accumulator into the memory
location.
2010H
2011H
2012H
32H
65H
20H
The Memory Write Operation
 In a memory write operation:
 The 8085 places the address (2065H) on the
address bus
 Identifies the operation as a ‘memory write’
(IO/M=0, s1=0, s0=1).
 Places the contents of the accumulator on the
data bus and asserts the signal WR.
 During the last T-state, the contents of the data
bus are saved into the memory location.
Memory interfacing
 There needs to be a lot of interaction between the
microprocessor and the memory for the exchange of
information during program execution.
 Memory has its requirements on control signals
and their timing.
 The microprocessor has its requirements as well.
 The interfacing operation is simply the matching of
these requirements.
Memory structure & its requirements
 The way of interfacing the above two chips to the
microprocessor is the same.
 However, the ROM does not have a WR signal.
Address
Lines
Date
Lines
CS
RDOutput Buffer
ROM
Address
Lines
Data Lines
CS
RDOutput Buffer
RAM
WRInput Buffer
Data Lines
Interfacing Memory
 Accessing memory can be summarized into the following three
steps:
 Select the chip.
 Identify the memory register.
 Enable the appropriate buffer.
 Translating this to microprocessor domain:
 The microprocessor places a 16-bit address on the
address bus.
 Part of the address bus will select the chip and the
other part will go through the address decoder to
select the register.
 The signals IO/M and RD combined indicate that a
memory read operation is in progress. The MEMR
signal can be used to enable the RD line on the
memory chip.
Address decoding
 The result of ‘address decoding’ is the
identification of a register for a given address.
 A large part of the address bus is usually
connected directly to the address inputs of the
memory chip.
 This portion is decoded internally within the
chip.
 What concerns us is the other part that must
be decoded externally to select the chip.
 This can be done either using logic gates or a
decoder.
Putting all of the concepts together:
Back to the Overall Picture

A15-A8
LatchAD7-AD0
D7- D0
A7- A0
8085
ALE
IO/MRDWR
1K Byte
Memory
Chip
WRRD
CS
A9- A0
A15- A10
Chip Selection
Circuit
25
Control and Status Signals.
26
Interrupt Signals
 8085 μp has several interrupt signals as shown in the
following table.
27
Interrupt signals
 An interrupt is a hardware-initiated subroutine CALL.
 When interrupt pin is activated, an ISR will be called,
interrupting the program that is currently executing.
PinPin Subroutine LocationSubroutine Location
TRAPTRAP 00240024
RST 5.5RST 5.5 002C002C
RST 6.5RST 6.5 00340034
RST 7.5RST 7.5 003C003C
INTRINTR **
Note: * the address of the ISR is determined by the external hardware.Note: * the address of the ISR is determined by the external hardware.
28
Interrupt signals
 INTR input is enabled when EI instruction
is executed.
 The status of the RST 7.5, RST 6.5 and
RST 5.5 pins are determined by both EI
instruction and the condition of the mask
bits in the interrupt mask register.
29
Interrupt
Vectors
30
A circuit that causes an RST4 instruction (E7) to be
executed in response to INTR.
 When INTR is
asserted,
8085
response with
INTA pulse.
 During INTA
pulse, 8085
expect to see
an instruction
applied to its
data bus.
31
RESET signal
 Following are the two kind of RESET
signals:
 RESET IN: an active low input signal, Program
Counter (PC) will be set to 0 and thus MPU will
reset.
 RESET OUT: an output reset signal to indicate
that the μp was reset (i.e. RESET IN=0). It
also used to reset external devices.
32
RESET signal
33
Direct Memory Access (DMA)
 DMA is an IO technique where external IO device
requests the use of the MPU buses.
 Allows external IO devices to gain high speed access to
the memory.
 Example of IO devices that use DMA: disk memory system.
 HOLD and HLDA are used for DMA.
 If HOLD=1, 8085 will place it address, data and control
pins at their high-impedance.
 A DMA acknowledgement is signaled by HLDA=1.
34
MPU Communication and Bus Timing
Figure 3: Moving data form memory to MPU using instruction MOV C, A
(code machine 4FH = 0100 1111)
35
 The Fetch Execute Sequence :
1. The μp placed a 16 bit memory address from
PC (program counter) to address bus.
– Figure 4: at T1
– The high order address, 20H, is placed at A15 – A8.
– the low order address, 05H, is placed at AD7 - AD0 and
ALE is active high.
– Synchronously the IO/M is in active low condition to show it
is a memory operation.
1. At T2 the active low control signal, RD, is
activated so as to activate read operation; it is to
indicate that the MPU is in fetch mode
operation.
MPU Communication and Bus Timing
36
Figure 4: 8085 timing diagram for Opcode fetch cycle for MOV C, A .
MPU Communication and Bus Timing
37
3. T3: The active low RD signal enabled
the byte instruction, 4FH, to be placed
on AD7 – AD0 and transferred to the
MPU. While RD high, the data bus will
be in high impedance mode.
4. T4: The machine code, 4FH, will then
be decoded in instruction decoder. The
content of accumulator (A) will then
copied into C register at time state, T4.
MPU Communication and Bus Timing

More Related Content

What's hot

Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessorRamesh Dabhole
 
8085 Microprocessor Architecture
8085 Microprocessor Architecture8085 Microprocessor Architecture
8085 Microprocessor Architecturedeval patel
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Rishikesh Bhavsar
 
Computer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notesComputer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notesLakshmi Sarvani Videla
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085Sumit Swain
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessorApar Pramod
 
advancsed microprocessor and interfacing
advancsed microprocessor and interfacingadvancsed microprocessor and interfacing
advancsed microprocessor and interfacing@zenafaris91
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copymkazree
 
Pin configuration of 8085
Pin configuration of 8085Pin configuration of 8085
Pin configuration of 808582338476
 
Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085muneer.k
 
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareProf. Swapnil V. Kaware
 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSSabin Gautam
 

What's hot (19)

Lect 5
Lect 5Lect 5
Lect 5
 
8085 microprocessor notes
8085 microprocessor notes8085 microprocessor notes
8085 microprocessor notes
 
Detailed Explanation of Pin Description of 8085 microprocessor
Detailed Explanation of Pin Description of  8085 microprocessorDetailed Explanation of Pin Description of  8085 microprocessor
Detailed Explanation of Pin Description of 8085 microprocessor
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
8085 Microprocessor Architecture
8085 Microprocessor Architecture8085 Microprocessor Architecture
8085 Microprocessor Architecture
 
Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4Microprocessor 8085 Chapter 4
Microprocessor 8085 Chapter 4
 
Computer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notesComputer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notes
 
SHLD and LHLD instruction
SHLD and LHLD instructionSHLD and LHLD instruction
SHLD and LHLD instruction
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
advancsed microprocessor and interfacing
advancsed microprocessor and interfacingadvancsed microprocessor and interfacing
advancsed microprocessor and interfacing
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
 
Pin configuration of 8085
Pin configuration of 8085Pin configuration of 8085
Pin configuration of 8085
 
Architecture OF 8085
Architecture OF 8085Architecture OF 8085
Architecture OF 8085
 
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
8085
80858085
8085
 
8279 PKDI
8279 PKDI8279 PKDI
8279 PKDI
 

Viewers also liked

Microprocessors - 80386DX
Microprocessors - 80386DXMicroprocessors - 80386DX
Microprocessors - 80386DXPriyaDYP
 
Embedded c programming
Embedded c programmingEmbedded c programming
Embedded c programmingPriyaDYP
 
Microprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymakMicroprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymakAkshay Makadiya
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or MemorySaumay Paul
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085Nitin Ahire
 
Computer organisation
Computer organisationComputer organisation
Computer organisationMohd Arif
 
memory Interleaving and low order interleaving and high interleaving
memory Interleaving and low order interleaving and high interleavingmemory Interleaving and low order interleaving and high interleaving
memory Interleaving and low order interleaving and high interleavingJawwad Rafiq
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part AIkhwan_Fakrudin
 
Computer Architecture – An Introduction
Computer Architecture – An IntroductionComputer Architecture – An Introduction
Computer Architecture – An IntroductionDilum Bandara
 
Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organizationTushar B Kute
 
Programming The Arm Microprocessor For Embedded Systems
Programming The Arm Microprocessor For Embedded SystemsProgramming The Arm Microprocessor For Embedded Systems
Programming The Arm Microprocessor For Embedded Systemsjoshparrish13
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating SystemRaj Mohan
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithmsPiyush Rochwani
 
TEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkTEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkVolker Hirsch
 

Viewers also liked (17)

Microprocessors - 80386DX
Microprocessors - 80386DXMicroprocessors - 80386DX
Microprocessors - 80386DX
 
Assignment on alp
Assignment on alpAssignment on alp
Assignment on alp
 
Embedded c programming
Embedded c programmingEmbedded c programming
Embedded c programming
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Microprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymakMicroprocessor and-interfacing-techbymak
Microprocessor and-interfacing-techbymak
 
Read & write
Read & writeRead & write
Read & write
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
Computer organisation
Computer organisationComputer organisation
Computer organisation
 
memory Interleaving and low order interleaving and high interleaving
memory Interleaving and low order interleaving and high interleavingmemory Interleaving and low order interleaving and high interleaving
memory Interleaving and low order interleaving and high interleaving
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part A
 
Computer Architecture – An Introduction
Computer Architecture – An IntroductionComputer Architecture – An Introduction
Computer Architecture – An Introduction
 
Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
 
Programming The Arm Microprocessor For Embedded Systems
Programming The Arm Microprocessor For Embedded SystemsProgramming The Arm Microprocessor For Embedded Systems
Programming The Arm Microprocessor For Embedded Systems
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating System
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
TEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of WorkTEDx Manchester: AI & The Future of Work
TEDx Manchester: AI & The Future of Work
 

Similar to 8085 intro

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
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions convertedArghodeepPaul
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor pptRJ Aniket
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecturetsajuraj
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Ameen San
 
Ece 8085-microprocessor-ppt
Ece 8085-microprocessor-pptEce 8085-microprocessor-ppt
Ece 8085-microprocessor-pptsatyamshra
 
Microprocessor and microcontroller
Microprocessor and microcontrollerMicroprocessor and microcontroller
Microprocessor and microcontrollerRavinder Singla
 
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerMPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerRAHUL RANJAN
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Neelam Kapoor
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description Vijay Kumar
 

Similar to 8085 intro (20)

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...
 
8085 microprocessor Embedded system
8085 microprocessor  Embedded system8085 microprocessor  Embedded system
8085 microprocessor Embedded system
 
8085 (1)
8085 (1)8085 (1)
8085 (1)
 
8085
80858085
8085
 
Micro
MicroMicro
Micro
 
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...
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
8085 microproceesor ppt
8085 microproceesor ppt8085 microproceesor ppt
8085 microproceesor ppt
 
8085
80858085
8085
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5
 
8085 architecture
8085 architecture8085 architecture
8085 architecture
 
Ece 8085-microprocessor-ppt
Ece 8085-microprocessor-pptEce 8085-microprocessor-ppt
Ece 8085-microprocessor-ppt
 
Microprocessor and microcontroller
Microprocessor and microcontrollerMicroprocessor and microcontroller
Microprocessor and microcontroller
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerMPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
 
Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1Microprocessor Basics 8085 Ch-1
Microprocessor Basics 8085 Ch-1
 
8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description 8085 microprocessor Architecture and Pin description
8085 microprocessor Architecture and Pin description
 

More from deval patel

More from deval patel (8)

8085 interrupts
8085 interrupts8085 interrupts
8085 interrupts
 
8254 PIT
8254 PIT8254 PIT
8254 PIT
 
8255 PPI
8255 PPI8255 PPI
8255 PPI
 
8155 GPPI
8155 GPPI8155 GPPI
8155 GPPI
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
Chapter 9
Chapter 9Chapter 9
Chapter 9
 
Interrupts
InterruptsInterrupts
Interrupts
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 

Recently uploaded

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture designssuser87fa0c1
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
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
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage examplePragyanshuParadkar1
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
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
 

Recently uploaded (20)

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
pipeline in computer architecture design
pipeline in computer architecture  designpipeline in computer architecture  design
pipeline in computer architecture design
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
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
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
DATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage exampleDATA ANALYTICS PPT definition usage example
DATA ANALYTICS PPT definition usage example
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
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
 

8085 intro

  • 4. 44 Intel 8085 CPU Block DiagramIntel 8085 CPU Block Diagram
  • 5. The 8085 and Its Buses  The 8085 is an 8-bit general purpose microprocessor that can address 64K Byte of memory.  It has 40 pins and uses +5V for power. It can run at a maximum frequency of 3 MHz.  The pins on the chip can be grouped into 6 groups:  Address Bus.  Data Bus.  Control and Status Signals.  Power supply and frequency.  Externally Initiated Signals.  Serial I/O ports.
  • 6. The Address and Data Bus Systems  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.
  • 7. 7 ALE used to demultiplex address/data bus
  • 8. The Control and Status Signals  There are 4 main control and status signals. These are:  ALE: Address Latch Enable. This signal is a pulse that become 1 when the AD0 – AD7 lines have an address on them. It becomes 0 after that. This signal can be used to enable a latch to save the address bits from the AD lines.  RD: Read. Active low.  WR: Write. Active low.  IO/M: This signal specifies whether the operation is a memory operation (IO/M=0) or an I/O operation (IO/M=1).  S1 and S0 : Status signals to specify the kind of operation being performed. Usually not used in small systems.
  • 9. 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.  We will discuss the rest of the control signals as we get to them.
  • 10. A closer look at the 8085 Architecture  Now, let’s look at some of its features with more details.
  • 11. The ALU  In addition to the arithmetic & logic circuits, the ALU includes an accumulator, which is a part of every arithmetic & logic operation.  Also, the ALU includes a temporary register used for holding data temporarily during the execution of the operation. This temporary register is not accessible by the programmer.
  • 12. The Flags register  There is also a flag register whose bits are affected by the arithmetic & logic operations.  S-sign flag  The sign flag is set if bit D7 of the accumulator is set after an arithmetic or logic operation.  Z-zero flag  Set if the result of the ALU operation is 0. Otherwise is reset. This flag is affected by operations on the accumulator as well as other registers. (DCR B).  AC-Auxiliary Carry  This flag is set when a carry is generated from bit D3 and passed to D4 . This flag is used only internally for BCD operations.  P-Parity flag  After an ALU operation, if the result has an even # of 1s, the p-flag is set. Otherwise it is cleared. So, the flag can be used to indicate even parity.  CY-carry flag  This flag is set when a carry is generated from bit D7 after an unsigned operation.  OV-Overflow flag  This flag is set when an overflow occurs after a signed operation.
  • 13.  Now, Let us see how the different units and bus systems stay connected: A15-A8 LatchAD7-AD0 D7- D0 A7- A0 8085 ALE IO/MRDWR 1K Byte Memory Chip WRRD CS A9- A0 A15- A10 Chip Selection Circuit
  • 14. More on the 8085 machine cycles  The 8085 executes several types of instructions with each requiring a different number of operations of different types. However, the operations can be grouped into a small set.  The three main types are:  Memory Read and Write.  I/O Read and Write.  Request Acknowledge.  These can be further divided into various smaller operations (machine cycles).
  • 15. Opcode Fetch Machine Cycle  The first step of executing any instruction is the Opcode fetch cycle.  In this cycle, the microprocessor brings in the instruction’s Opcode from memory.  To differentiate this machine cycle from the very similar “memory read” cycle, the control & status signals are set as follows:  IO/M=0, s0 and s1 are both 1.  This machine cycle has four T-states.  The 8085 uses the first 3 T-states to fetch the opcode.  T4 is used to decode and execute it.  It is also possible for an instruction to have 6 T-states in an opcode fetch machine cycle.
  • 16. Memory Read Machine Cycle  The memory read machine cycle is exactly the same as the opcode fetch except:  It only has 3 T-states  The s0 signal is set to 0 instead.
  • 17. The Memory Read Machine Cycle  To understand the memory read machine cycle, let’s study the execution of the following instruction:  MVI A, 32  In memory, this instruction looks like:  The first byte 3EH represents the opcode for loading a byte into the accumulator (MVI A), the second byte is the data to be loaded.  The 8085 needs to read these two bytes from memory before it can execute the instruction. Therefore, it will need at least two machine cycles.  The first machine cycle is the opcode fetch discussed earlier.  The second machine cycle is the Memory Read Cycle. 2000H 2001H 3E 32
  • 18. Machine Cycles vs. Number of bytes in the instruction  Machine cycles and instruction length, do not have a direct relationship.  To illustrate, let’s look at the machine cycles needed to execute the following instruction.  STA 2065H  This is a 3-byte instruction requiring 4 machine cycles and 13 T-states.  The machine code will be stored in memory as shown to the right  This instruction requires the following 4 machine cycles:  A ‘Opcode fetch’ to fetch the opcode (32H) from location 2010H, ‘decode’ it and determine that 2 more bytes are needed (4 T-states).  A ‘Memory read’ to read the low order byte of the address (65H) (3 T-states).  A ‘Memory read’ to read the high order byte of the address (20H) (3 T- states).  A ‘memory write’ to write the contents of the accumulator into the memory location. 2010H 2011H 2012H 32H 65H 20H
  • 19. The Memory Write Operation  In a memory write operation:  The 8085 places the address (2065H) on the address bus  Identifies the operation as a ‘memory write’ (IO/M=0, s1=0, s0=1).  Places the contents of the accumulator on the data bus and asserts the signal WR.  During the last T-state, the contents of the data bus are saved into the memory location.
  • 20. Memory interfacing  There needs to be a lot of interaction between the microprocessor and the memory for the exchange of information during program execution.  Memory has its requirements on control signals and their timing.  The microprocessor has its requirements as well.  The interfacing operation is simply the matching of these requirements.
  • 21. Memory structure & its requirements  The way of interfacing the above two chips to the microprocessor is the same.  However, the ROM does not have a WR signal. Address Lines Date Lines CS RDOutput Buffer ROM Address Lines Data Lines CS RDOutput Buffer RAM WRInput Buffer Data Lines
  • 22. Interfacing Memory  Accessing memory can be summarized into the following three steps:  Select the chip.  Identify the memory register.  Enable the appropriate buffer.  Translating this to microprocessor domain:  The microprocessor places a 16-bit address on the address bus.  Part of the address bus will select the chip and the other part will go through the address decoder to select the register.  The signals IO/M and RD combined indicate that a memory read operation is in progress. The MEMR signal can be used to enable the RD line on the memory chip.
  • 23. Address decoding  The result of ‘address decoding’ is the identification of a register for a given address.  A large part of the address bus is usually connected directly to the address inputs of the memory chip.  This portion is decoded internally within the chip.  What concerns us is the other part that must be decoded externally to select the chip.  This can be done either using logic gates or a decoder.
  • 24. Putting all of the concepts together: Back to the Overall Picture  A15-A8 LatchAD7-AD0 D7- D0 A7- A0 8085 ALE IO/MRDWR 1K Byte Memory Chip WRRD CS A9- A0 A15- A10 Chip Selection Circuit
  • 26. 26 Interrupt Signals  8085 μp has several interrupt signals as shown in the following table.
  • 27. 27 Interrupt signals  An interrupt is a hardware-initiated subroutine CALL.  When interrupt pin is activated, an ISR will be called, interrupting the program that is currently executing. PinPin Subroutine LocationSubroutine Location TRAPTRAP 00240024 RST 5.5RST 5.5 002C002C RST 6.5RST 6.5 00340034 RST 7.5RST 7.5 003C003C INTRINTR ** Note: * the address of the ISR is determined by the external hardware.Note: * the address of the ISR is determined by the external hardware.
  • 28. 28 Interrupt signals  INTR input is enabled when EI instruction is executed.  The status of the RST 7.5, RST 6.5 and RST 5.5 pins are determined by both EI instruction and the condition of the mask bits in the interrupt mask register.
  • 30. 30 A circuit that causes an RST4 instruction (E7) to be executed in response to INTR.  When INTR is asserted, 8085 response with INTA pulse.  During INTA pulse, 8085 expect to see an instruction applied to its data bus.
  • 31. 31 RESET signal  Following are the two kind of RESET signals:  RESET IN: an active low input signal, Program Counter (PC) will be set to 0 and thus MPU will reset.  RESET OUT: an output reset signal to indicate that the μp was reset (i.e. RESET IN=0). It also used to reset external devices.
  • 33. 33 Direct Memory Access (DMA)  DMA is an IO technique where external IO device requests the use of the MPU buses.  Allows external IO devices to gain high speed access to the memory.  Example of IO devices that use DMA: disk memory system.  HOLD and HLDA are used for DMA.  If HOLD=1, 8085 will place it address, data and control pins at their high-impedance.  A DMA acknowledgement is signaled by HLDA=1.
  • 34. 34 MPU Communication and Bus Timing Figure 3: Moving data form memory to MPU using instruction MOV C, A (code machine 4FH = 0100 1111)
  • 35. 35  The Fetch Execute Sequence : 1. The μp placed a 16 bit memory address from PC (program counter) to address bus. – Figure 4: at T1 – The high order address, 20H, is placed at A15 – A8. – the low order address, 05H, is placed at AD7 - AD0 and ALE is active high. – Synchronously the IO/M is in active low condition to show it is a memory operation. 1. At T2 the active low control signal, RD, is activated so as to activate read operation; it is to indicate that the MPU is in fetch mode operation. MPU Communication and Bus Timing
  • 36. 36 Figure 4: 8085 timing diagram for Opcode fetch cycle for MOV C, A . MPU Communication and Bus Timing
  • 37. 37 3. T3: The active low RD signal enabled the byte instruction, 4FH, to be placed on AD7 – AD0 and transferred to the MPU. While RD high, the data bus will be in high impedance mode. 4. T4: The machine code, 4FH, will then be decoded in instruction decoder. The content of accumulator (A) will then copied into C register at time state, T4. MPU Communication and Bus Timing