Interfacing memory with 8086 microprocessorVikas Gupta
油
This document discusses interfacing memory with the 8086 microprocessor. It begins by defining different types of memory like RAM, ROM, EPROM, and EEPROM. It then discusses memory fundamentals like capacity, organization, and standard memory ICs. The document explains two methods of address decoding - absolute and partial decoding. It provides examples of interfacing 32KB RAM, 32K words of memory, and a combination of ROM, EPROM, and RAM with the 8086 using address decoding techniques. Diagrams and tables are included to illustrate the memory mapping and generation of chip select logic.
The document discusses various topics related to microprocessors and computer architecture. It begins by providing details about the pins and functions of the 8085 microprocessor. It then discusses interfacing memory chips with the 8085 and provides an example. Next, it describes the block diagram and functions of the different units of the 8086 microprocessor. It also explains the different addressing modes used in 8086 with examples. The document then discusses the control word format for programming the I/O ports of the 8255 chip. In less than 3 sentences.
The document provides an overview of the Intel 8085 microprocessor architecture. It discusses the 8085's pins, buses, control signals, arithmetic logic unit, flags register, and memory interfacing. The 8085 uses an 8-bit address bus and 8-bit bi-directional data bus. It has pins for power, clock signals, interrupts and I/O. The document explains the 8085's opcode fetch, memory read/write and I/O read/write machine cycles and timing. It also covers addressing memory chips, interrupt handling and putting the concepts together in a system diagram.
Register Organization of 8086, Architecture, Signal Description of 8086, Physical Memory
Organization, General Bus Operation, I/O Addressing Capability, Special Processor Activities,
Minimum Mode 8086 System and Timings, Maximum Mode 8086 System and Timings.
Addressing Modes of 8086.
The document discusses interfacing memory chips with the 8085 microprocessor. It describes the basic concepts of memory interfacing such as address decoding, read and write timing diagrams, and interfacing circuits. It provides examples of interfacing a 2732 EPROM chip and an 8155 memory chip to the 8085 using address decoding logic and connecting control signal lines. Memory addressing ranges and internal structures are also covered.
The Intel 8085 is an 8-bit microprocessor that can address 64KB of memory using an 8-bit address bus and 8-bit bi-directional data bus. It has 40 pins grouped into address, data, control, power and I/O buses. The lower 8 address bits are multiplexed with the data bus. The ALE signal separates the address and data phases. Memory access involves placing the address on the bus, asserting the RD/WR signal to read or write data, and transferring data during the last clock cycle. Interrupts are handled through dedicated pins that trigger interrupt service routines at specific memory locations.
The document discusses memory mapping and interfacing memory with the 8085 microprocessor. It describes two methods of memory address decoding:
1) Absolute address decoding - Each memory location has a unique address. Extra decoders are needed but allow easy expansion.
2) Linear select decoding - Simplifies decoding circuits but wastes memory space and makes expansion difficult as multiple addresses map to each location.
The document provides examples of implementing both methods using 8085 with 8KB memory blocks, and discusses advantages and disadvantages of each approach. Diagrams illustrate the memory maps and interfacing circuitry.
A microprocessor is a programmable logic device that accepts binary instructions from memory, processes data according to those instructions, and provides results as output. The 8085 microprocessor has a power supply of +5V and clock frequency of 3MHz. It can perform operations like arithmetic, logical operations, and store data temporarily in memory locations called the stack. An instruction is a binary pattern that commands the microprocessor to perform a specific function.
The word comes from the combination micro and processor.
Processor means a device that processes whatever. In this context processor means a device that processes numbers, specifically binary numbers, 0s and 1s.
To process means to manipulate. It is a general term that describes all manipulation. Again in this content, it means to perform certain operations on the numbers that depend on the microprocessors design.
Chp3 designing bus system, memory & io copymkazree
油
The document discusses various concepts related to designing bus systems and interfacing memory and I/O devices with the Motorola 68000 microprocessor. It covers the address and data buses of the 68000, addressing modes, designing memory decoders, generating acknowledge signals, direct memory access, and memory-mapped I/O using devices like the 6821 PIA and 6850 ACIA.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
The document discusses the history and evolution of microprocessors from early 4-bit processors of the 1970s to modern 64-bit processors. It covers early technologies like PMOS and NMOS and describes processors like the Intel 4004, 8008, 8080, and 8085. It also discusses the internal architecture of processors like the 8085 including components like the ALU, registers, program counter, and memory interfacing. Modern processors including the Pentium series and RISC processors are also briefly outlined.
all about architecture and memory interfacing. This is the most important lecture for microprocessor.
In computer science you must known about this lecture.
The document provides an introduction to the Intel 8085 microprocessor. It discusses that the 8085 is an 8-bit microprocessor that can address 64KB of memory using a 40-pin chip. It operates at a maximum of 3MHz and its pins can be grouped into address bus, data bus, control signals, power and clock, externally initiated signals, and serial I/O ports. The document also describes the address and data bus systems, control signals, interrupts, reset signals, direct memory access, and timing diagrams for opcode fetch cycles.
The document describes the architecture of the 8085 microprocessor. It has three main busses: the address bus, data bus, and control bus. The address bus is 16-bits wide and allows the microprocessor to access up to 64K memory locations. The data bus is 8-bits wide and allows the microprocessor to read and write 8-bit values to memory and I/O devices. The control bus uses individual control signal lines to coordinate memory read and write operations. The microprocessor can initiate read and write operations to memory and I/O devices. It also has internal registers and operations.
An introduction to microprocessor architecture using INTEL 8085 as a classic...Prasad Deshpande
油
The document provides an overview of the Intel 8085 microprocessor architecture. It describes that the 8085 is an 8-bit processor that can address 64KB of memory using 40 pins running at up to 3MHz. It discusses the address bus, data bus, control signals, and I/O pins. It also explains the CPU block diagram and details the functions of address latch enable, read, write, and I/O/memory selection signals. Machine cycles like opcode fetch, memory read and write are summarized. Interrupt handling and direct memory access are also covered at a high level.
This document contains 30 important questions related to the microprocessors course for the sessional/GBTU end semester exam in 2013 at Ashoka Institute of Technology & Management. The questions cover various topics related to 8085 and 8086 microprocessors including their architecture, registers, addressing modes, interrupts, memory interfacing, programming, and interfacing with peripherals like keyboards and displays. Students are advised to review previous question papers, lists of programs, class notes, and materials on memory interfacing to prepare for the exam.
This document contains 30 important questions related to the microprocessors course for the sessional/GBTU end semester exam in 2013 at Ashoka Institute of Technology & Management in Varanasi, India. The questions cover topics like the flag register, signals, internal architecture, timing diagrams, addressing modes, evolution, interrupts, and interfacing of the 8085 microprocessor. Example programs are provided to convert between binary and BCD numbers, generate delays, transfer data blocks, and interface with keyboards and displays. Comparisons are made between microprocessors and microcontrollers. Additional questions cover demultiplexing address/data lines, control signal generation, segment registers, and functional blocks of support chips like the 8253/8255. Students are directed
The document discusses different types of computer memory, including ROM, RAM, SRAM, and DRAM. It describes how memory devices work and how they are connected to microprocessors. Specific examples of interfacing 8088, 80188, and 80386 microprocessors to EPROM, RAM, and flash memory are provided through diagrams and explanations of address decoding and control signal usage. Error detection techniques like parity checking are also summarized.
Interfacing involves connecting devices or programs to allow communication between a user and computer or between hardware and software. Memory interfacing specifically designs circuits that match a microprocessor's memory requirements by enabling it to read from and write to memory registers by generating appropriate signals. Address decoding is used to identify a specific memory register for a given address by decoding the microprocessor's address lines and generating a unique pulse for each possible address. This allows the microprocessor to select the appropriate memory chip, identify the register, and enable the correct buffer for reading or writing.
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerRAHUL RANJAN
油
Diploma in Electrical Engineering MICROPROCESSOR AND MICROCONTROLLER UNIT-1 Full Notes Microprocessor 8085 State Board Of Technical Education [SBTE] BIHAR
It is a central processing unit etched on a single chip.A single integrated circuit has all the functional components of a cpu namely ALU,CONTROL UNIT & REGISTERS
The document discusses various topics related to 8085 microprocessor architecture including instruction cycle, memory, addressing modes, and programming model. It provides examples of interfacing EPROM and RAM memory chips with an 8085 processor using address decoding techniques. It also describes the five addressing modes used by the 8085 - direct, register, register indirect, immediate, and implicit addressing modes.
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...sangeeta jogade
油
The document provides an overview of fundamentals related to microcontrollers including the 8051 microcontroller. It defines common terms like binary number, bit, byte, word, bus, register, integrated circuit, and microprocessor. It then discusses the 8051 microcontroller specifically, covering its memory organization, I/O ports, timers, interrupts, and special function registers. The document is intended as a revision guide for understanding basic microcontroller concepts centered around the popular 8051 microcontroller.
The 8085 microprocessor has 40 pins including address, data, control signals, power and clock pins. It uses multiplexed address/data bus and external latch is used to separate address and data. Memory interfacing and instruction fetch process involving program counter, memory and internal registers is explained with examples. Timing diagrams show the machine cycles and signal timings
The Mind of Ryan Farrell: Strategic Clarity Meets People-Driven LeadershipRyan Farrell
油
What happens when you map the internal operating system of a strategist who thrives in complexity, drives momentum, and leads with empathy?
This document is more than a bio its a detailed blueprint of how Ryan Farrell thinks, decides, and leads. Blending insight from cognitive assessments, real-world behavior, and self-reflection, this profile breaks down:
How Ryan approaches decision-making under ambiguity
The mental filters he uses to evaluate opportunities
His leadership style, strengths, and blind spots
The environments where he thrives and where he doesnt
How to work with him for fast, collaborative results
Whether youre a collaborator, client, or just someone curious about designing a personal operating manual, this profile offers a model worth studying.
Uncertain times call for smart strategies. This e-book-based presentation delivers powerful insights on how to adapt, lead, and grow during economic or personal turbulence. Learn to build mental resilience and make bold, confident decisions.
More Related Content
Similar to Advance Microprocessor application and its uses (20)
The word comes from the combination micro and processor.
Processor means a device that processes whatever. In this context processor means a device that processes numbers, specifically binary numbers, 0s and 1s.
To process means to manipulate. It is a general term that describes all manipulation. Again in this content, it means to perform certain operations on the numbers that depend on the microprocessors design.
Chp3 designing bus system, memory & io copymkazree
油
The document discusses various concepts related to designing bus systems and interfacing memory and I/O devices with the Motorola 68000 microprocessor. It covers the address and data buses of the 68000, addressing modes, designing memory decoders, generating acknowledge signals, direct memory access, and memory-mapped I/O using devices like the 6821 PIA and 6850 ACIA.
A microprocessor is an electronic component that is used by a computer to do its work. It is a central processing unit on a single integrated circuit chip containing millions of very small components including transistors, resistors, and diodes that work together. Some microprocessors in the 20th century required several chips. Microprocessors help to do everything from controlling elevators to searching the Web. Everything a computer does is described by instructions of computer programs, and microprocessors carry out these instructions many millions of times a second. [1]
Microprocessors were invented in the 1970s for use in embedded systems. The majority are still used that way, in such things as mobile phones, cars, military weapons, and home appliances. Some microprocessors are microcontrollers, so small and inexpensive that they are used to control very simple products like flashlights and greeting cards that play music when you open them. A few especially powerful microprocessors are used in personal computers.
The document discusses the history and evolution of microprocessors from early 4-bit processors of the 1970s to modern 64-bit processors. It covers early technologies like PMOS and NMOS and describes processors like the Intel 4004, 8008, 8080, and 8085. It also discusses the internal architecture of processors like the 8085 including components like the ALU, registers, program counter, and memory interfacing. Modern processors including the Pentium series and RISC processors are also briefly outlined.
all about architecture and memory interfacing. This is the most important lecture for microprocessor.
In computer science you must known about this lecture.
The document provides an introduction to the Intel 8085 microprocessor. It discusses that the 8085 is an 8-bit microprocessor that can address 64KB of memory using a 40-pin chip. It operates at a maximum of 3MHz and its pins can be grouped into address bus, data bus, control signals, power and clock, externally initiated signals, and serial I/O ports. The document also describes the address and data bus systems, control signals, interrupts, reset signals, direct memory access, and timing diagrams for opcode fetch cycles.
The document describes the architecture of the 8085 microprocessor. It has three main busses: the address bus, data bus, and control bus. The address bus is 16-bits wide and allows the microprocessor to access up to 64K memory locations. The data bus is 8-bits wide and allows the microprocessor to read and write 8-bit values to memory and I/O devices. The control bus uses individual control signal lines to coordinate memory read and write operations. The microprocessor can initiate read and write operations to memory and I/O devices. It also has internal registers and operations.
An introduction to microprocessor architecture using INTEL 8085 as a classic...Prasad Deshpande
油
The document provides an overview of the Intel 8085 microprocessor architecture. It describes that the 8085 is an 8-bit processor that can address 64KB of memory using 40 pins running at up to 3MHz. It discusses the address bus, data bus, control signals, and I/O pins. It also explains the CPU block diagram and details the functions of address latch enable, read, write, and I/O/memory selection signals. Machine cycles like opcode fetch, memory read and write are summarized. Interrupt handling and direct memory access are also covered at a high level.
This document contains 30 important questions related to the microprocessors course for the sessional/GBTU end semester exam in 2013 at Ashoka Institute of Technology & Management. The questions cover various topics related to 8085 and 8086 microprocessors including their architecture, registers, addressing modes, interrupts, memory interfacing, programming, and interfacing with peripherals like keyboards and displays. Students are advised to review previous question papers, lists of programs, class notes, and materials on memory interfacing to prepare for the exam.
This document contains 30 important questions related to the microprocessors course for the sessional/GBTU end semester exam in 2013 at Ashoka Institute of Technology & Management in Varanasi, India. The questions cover topics like the flag register, signals, internal architecture, timing diagrams, addressing modes, evolution, interrupts, and interfacing of the 8085 microprocessor. Example programs are provided to convert between binary and BCD numbers, generate delays, transfer data blocks, and interface with keyboards and displays. Comparisons are made between microprocessors and microcontrollers. Additional questions cover demultiplexing address/data lines, control signal generation, segment registers, and functional blocks of support chips like the 8253/8255. Students are directed
The document discusses different types of computer memory, including ROM, RAM, SRAM, and DRAM. It describes how memory devices work and how they are connected to microprocessors. Specific examples of interfacing 8088, 80188, and 80386 microprocessors to EPROM, RAM, and flash memory are provided through diagrams and explanations of address decoding and control signal usage. Error detection techniques like parity checking are also summarized.
Interfacing involves connecting devices or programs to allow communication between a user and computer or between hardware and software. Memory interfacing specifically designs circuits that match a microprocessor's memory requirements by enabling it to read from and write to memory registers by generating appropriate signals. Address decoding is used to identify a specific memory register for a given address by decoding the microprocessor's address lines and generating a unique pulse for each possible address. This allows the microprocessor to select the appropriate memory chip, identify the register, and enable the correct buffer for reading or writing.
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerRAHUL RANJAN
油
Diploma in Electrical Engineering MICROPROCESSOR AND MICROCONTROLLER UNIT-1 Full Notes Microprocessor 8085 State Board Of Technical Education [SBTE] BIHAR
It is a central processing unit etched on a single chip.A single integrated circuit has all the functional components of a cpu namely ALU,CONTROL UNIT & REGISTERS
The document discusses various topics related to 8085 microprocessor architecture including instruction cycle, memory, addressing modes, and programming model. It provides examples of interfacing EPROM and RAM memory chips with an 8085 processor using address decoding techniques. It also describes the five addressing modes used by the 8085 - direct, register, register indirect, immediate, and implicit addressing modes.
Fundamentals of Microcontroller 8051 by Dr. Jogade S M, Assistant Professor, ...sangeeta jogade
油
The document provides an overview of fundamentals related to microcontrollers including the 8051 microcontroller. It defines common terms like binary number, bit, byte, word, bus, register, integrated circuit, and microprocessor. It then discusses the 8051 microcontroller specifically, covering its memory organization, I/O ports, timers, interrupts, and special function registers. The document is intended as a revision guide for understanding basic microcontroller concepts centered around the popular 8051 microcontroller.
The 8085 microprocessor has 40 pins including address, data, control signals, power and clock pins. It uses multiplexed address/data bus and external latch is used to separate address and data. Memory interfacing and instruction fetch process involving program counter, memory and internal registers is explained with examples. Timing diagrams show the machine cycles and signal timings
The Mind of Ryan Farrell: Strategic Clarity Meets People-Driven LeadershipRyan Farrell
油
What happens when you map the internal operating system of a strategist who thrives in complexity, drives momentum, and leads with empathy?
This document is more than a bio its a detailed blueprint of how Ryan Farrell thinks, decides, and leads. Blending insight from cognitive assessments, real-world behavior, and self-reflection, this profile breaks down:
How Ryan approaches decision-making under ambiguity
The mental filters he uses to evaluate opportunities
His leadership style, strengths, and blind spots
The environments where he thrives and where he doesnt
How to work with him for fast, collaborative results
Whether youre a collaborator, client, or just someone curious about designing a personal operating manual, this profile offers a model worth studying.
Uncertain times call for smart strategies. This e-book-based presentation delivers powerful insights on how to adapt, lead, and grow during economic or personal turbulence. Learn to build mental resilience and make bold, confident decisions.
Success isnt always about money or big titlesits about finding meaning and happiness in what you do. In her presentation, Cut Gumay reminds us that consistency is the real game-changer. Whether you're a teacher, artist, or entrepreneur, showing up with discipline every day builds trust, sharpens skills, and opens doors. Of course, staying consistent is not easyit starts with setting clear goals, managing your time well, and taking care of your physical and mental health. So, lets keep going, stay focused, and believe that even small effortsdone consistentlywill lead us to something amazing.
Youre not ready. Youll never be ready. But that cant stop you.
Whether its Apollo 11 landing with a computer screaming errors, Leftfield literally blowing the speakers at Brixton Academy, or every founder winging it through a board meeting, real leadership is about making decisions with incomplete information, trusting your instincts, and learning on the fly. In this lightning talk, Gareth Marlow will show you why waiting until you feel ready is a trap, and how embracing uncertainty-with confidence-separates those who lead from those who hesitate.
Story, Life Essences Intervention ProgramOmar Al Naqa
油
Dedicated to The First Flower After Winter
I love you without knowing how, or when, or from where. I love you simply, without problems or pride: I love you in this way because I do not know any other way of loving but this, in which there is no I or you, so intimate that your hand upon my chest is my hand, so intimate that when I fall asleep your eyes close. Pablo Neruda
STORY starts with gifts from the sky into your ability to love and how you choose to treat people.
"Your beliefs dont make you a better person, your behavior does." You are You story
Emotional intelligence (EQ) is one of the most important skills for personal and professional success in todays world. This comprehensive presentation explores the key elements of EQ: self-awareness, self-regulation, motivation, empathy, and social skills. You'll learn how to recognize and manage your own emotions, communicate more effectively, build stronger relationships, and make better decisionsespecially under pressure. Whether you're a student, leader, entrepreneur, or professional, developing your emotional intelligence can dramatically improve your career, relationships, and overall well-being.
How Yoga Nidra Teacher Training Prepares You for Spiritual GrowthDavid Cook
油
Yoga Nidra, often referred to as yogic sleep, is a transformative practice of deep relaxation and inner realization. Incorporating yoga nidra practices into your daily routine helps strengthen both personal and spiritual growth, creating a deeper connection to your inner self.
2. Memory Interfacing
2
Steps involved in interfacing
Address Decoding
Problem 2: Analyze the interfacing circuit
and find its memory address range.
3. Steps involved in interfacing
Type of address decoding
1. Absolute Decoding refers to a technique where the entire address space is used to uniquely
identify each memory chip or device. This means that the address decoder
circuitry is designed to respond to a specific, unique address or range of addresses.
2. Partial Decoding involves decoding only a part of the address bus to select memory chips or
devices. This technique uses fewer address lines to determine which chip or device is
selected, and as a result, multiple devices may share the same higher-order address
bits but differ in lower-order address bits.
3
Memory Interfacing
4. Steps involved in interfacing
Address Decoding: Partial Decoding Example
Problem 3: Explain the decoding logic and
memory address range for memory shown
in interfacing circuit.
Memory Interfacing
4
5. Steps involved in interfacing
Address Decoding: Partial Decoding Example
Problem 3: Explain the decoding logic and
memory address range for memory shown
in interfacing circuit.
Initial Address
Memory Interfacing
A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
0 0 1 0 0 x x x 0 0 0 0 0 0 0 0
5
0 0 1 0 0 x x x 1 1 1 1 1 1 1 1
Final Address
6. Steps involved in interfacing
Address Decoding: Partial Decoding Example
Problem 3: Explain the decoding logic and
memory address range for memory shown
in interfacing circuit.
Initial Address
6
Memory Interfacing
A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
0 0 1 0 0 x x x 0 0 0 0 0 0 0 0
0 0 1 0 0 x x x 1 1 1 1 1 1 1 1
Final Address
A10 A9 A8
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Possible values of dont
care pins
7. Steps involved in interfacing
Address Decoding: Partial Decoding Example
Problem 3: Explain the decoding logic and
memory address range for memory shown
in interfacing circuit.
7
Memory
Interfacing
A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
0 0 1 0 0 x x x 0 0 0 0 0 0 0 0
0 0 1 0 0 x x x 1 1 1 1 1 1 1 1
Initial Address
Final Address
A10 A9 A8
Initial
Address
Final
Address
0 0 0 2000H 20FFH
0 0 1 2100H 21FFH
0 1 0 2200H 22FFH
0 1 1 2300H 23FFH
1 0 0 2400H 24FFH
1 0 1 2500H 25FFH
1 1 0 2600H 26FFH
1 1 1 2700H 27FFH
Possible values of dont
care pins
8. Memory Interfacing
0 0 0
0
0 0
0 0 0
0
0 0
1 1 1
1
1 1
0 0 0
0
0 0
1 1 1
1
1 1
0 0 0
0
0 0
1 1 1
1
1 1
0 0 0
0
0 0
1 1 1
1
1 1
0 0 0
0
0 0
1 1 1
1
1 1
0 0 0
0
0 0
1 1 1
1
1 1
0 0 0
0
0 0
1 1 1
1
1 1
0 0 0
0
0 0
1 1 1
1
1 1
Address Range
2000H
20FFH
2100H
21FFH
2200H
22FF H
2300H
23FF H
2400H
24FFH
2500H
25FF H
2600H
26FFH
2700H
27FF H
A10 A9 A8 A7
A6
X x x 0
0
0 0 0 0
0 1
1
0 0 1 0
0 1
1
0 1 0 0
0 1
1
0 1 1 0
0 1
1
1 0 0 0
0 1
1
1 0 1 0
0 1
1
1 1 0 0
0 1
1
1 1 1 0
0 1
1
A15 A14 A13 A12 A11
0 0 1 0 0
Register Select
A5 A4 A3 A2 A1
A0
Steps involved in interfacing
Address Decoding: Partial Decoding Example
Chip Enable Dont care
1st Possible Range
2nd Possible Range
3rd Possible Range
4th Possible Range
5th Possible Range
6th Possible Range
7th Possible Range
8th Possible Range
8
9. Steps involved in interfacing
Address Decoding: Partial Decoding Example
9
Memory Interfacing
The memory chip of 256 Byte (256 memory registers) occupies the memory space of
2048 locations in 8085, eight times the space of its size.
Some of the address lines of microprocessor left unused while designing address decoding circuit. Because of this
multiple possible address ranges will be formed. If total memory space of 8085 is not required for the system then,
this type of address decoding can be used. The advantage of this technique is fewer components are required for
memory interfacing because of this board size reduces and in turn cost reduces.
10. Steps involved in interfacing
Address Decoding
Problem 04: Consider a system in which 32kB memory space is implemented
using four numbers of 8kB memory. Interface the EPROM and RAM with 8085
processor.
Instruction: The total memory capacity is 32kB. So, let two number of 8kB
memory be ROM and the remaining two numbers be RAM.
10
Memory Interfacing
11. Steps involved in interfacing
Memory
Interfacing
1. The total memory capacity is 32kB.
2. So, let two number of 8kB memory be ROM
and
the remaining two numbers be
RAM.
3. Each 8kB memory requires 13 address lines
and so the address lines A0- A12 of the
processor are
connected to 13 address pins of all the
memory.
4. The address lines and A13 - A14 can be
decoded using a 2-to-4 decoder to
generate four chips
select
signals.
5. These four chips select signals can be used
to
select one of the four memory IC at any one time.
6. The address line A15 is used as enable
for decoder. The simplified schematic
memory organization is shown
CS
RD
WR
A0-A12
4kB x 8
RAM 1
CS
RD 4kB x 8
WR
RAM 2
A0-A12
CS
RD
A0-A12
4kB x 8
ROM 1
CS
RD
A0-A12
4kB x 8
ROM 2
Decoder
3 2 1
0
X0
A15
8085
Data
Data
Data
Data
E X1
Y1
Y 0
Y3
Y2
AD7-AD0 WR IO/M RD
8-Bit
D0-D7
ALE
Latch E
Address
bus A14 A13
A12-A8
A0-A12
A0-A7
MEMR
MEWR
A8-A12
11
12. Steps involved in
interfacing
Memory
Interfacing
8 kB
RAM 1
8 kB
RAM 2
8 kB
ROM 1
8 kB
ROM 2
CS
RD
WR
A0-A12
4kB x 8
RAM 1
CS
RD 4kB x 8
WR
RAM 2
A0-A12
CS
RD
A0-A12
4kB x 8
ROM 1
CS
RD
A0-A12
4kB x 8
ROM 2
Decode
r
3 2 1
0
A15
8085
Data
Data
Data
Data
E X1 X0
Y1
Y0
Y3
Y2
AD7-AD0 WR IO/M RD
D0-D7
ALE
8-Bit
Latch E
Address
bus A14 A13
A12-A8
A -A
0 12
A0-A7
MEMR
MEWR
A8-A12
12
14. Microprocessor: 8085
14
Instruction Format and Set
Instruction is a binary pattern designed to indicates a microprocessor to perform a specific
function.
Each instruction has two parts: one is the task to be performed, called the operation
code (opcode), and the second is the data to be operand on, called the operand.
The operand (or data) can be specified in various ways. It may include 8-bit (or 16-bit)
data, an internal register, a memory location, or an 8-bit (or 16-bit) address.
In some instructions, the operand is implicit.
The entire group of instructions, called the instruction set, determines what functions
the microprocessor can perform.
8085 microprocessor instructions can be classified into the following five functional
categories: data transfer operations, arithmetic operations, logical operations, branching
operations, and machine- control operations.
15. Microprocessor: 8085
Instruction Format and Set
Instruction/Opcode Format
Consider a single byte instruction available at memory location N.
The 8-bit of the op-code is divided into three portions.
D2 D1 D0 when necessary contains the source code SSS.
D2 D1 D0 group contains the code of destination register DDD.
The first group D7 D6 gives the idea of the mnemonic of the operation
code.
N
15
16. Microprocessor: 8085
Instruction Format and Set
In the design of 8085, all operations, registers, and status flags are identified
with a
specific code.
For example, all internal registers are identified as follows:
16
17. Microprocessor: 8085
Instruction Format and Set
An instruction to move the content of accumulator in
register C.
Move the content:
01
To register C:
From register A:
001 (DDD)
111 (SSS)
Binary instruction: 01001111
4FH
N
17
19. Microprocessor: 8085
19
Instruction Set
8085 instruction set is classified into following three groups according to word size or byte
size.
1) 1-byte instructions
2) 2-byte instructions
3) 3-byte instructions
In 8085, terms byte and word are synonymous because it is an 8-bit microprocessor.
20. Microprocessor: 8085
Instruction Set
1) 1-byte instructions: This type of instructions includes the opcode and the operand in
the same byte.
For example:
These instructions are stored in 8-bit binary format in memory.
20
21. Microprocessor: 8085
These instructions would require two memory locations each to store the binary codes.
N
Instruction Set
2) 2-byte instructions: In this type of instructions, the first byte specifies the
operation code and the second byte specifies the operand.
For example:
N
N+1
N
N+1
21
22. Microprocessor: 8085
Instruction Set
3) 3-byte instructions: In this type of instructions, the first byte specifies the
operation code and the following two bytes specifies the 16-bit address.
For example:
N
N+1
N+2
N
N+1
N+2
These instructions would require three memory locations each
to store the binary codes.
22
23. Microprocessor: 8085
23
Instruction Set
Whenever a 2-byte instruction is used the first byte at memory location N is the op-
code of the instruction followed by either an 8-bit data or an 8-bit address at
memory location N+1.
Whenever a 3-byte instruction is involved, the first byte at memory location N is
the opcode followed by either a-16 bit address or a 16-bit data. The second
memory location i.e., N+1 contains the lower order addresses or data and the
third memory location N+2 contains the higher order address or data.
24. Microprocessor: 8085
24
Instruction Set
8085 instruction set is classified into following categories based on the the type of actions
taken by the processor.
1) Data Transfer Instructions
2) Arithmetic Instructions
3) Logic and Bit Manipulation Instructions
4) Branch Instructions
5) Machine Control Instructions
The 8085 microprocessor instruction set has 74 operation code that result in
246 instructions.
25. Microprocessor: 8085
25
Instruction Set
1) Data Transfer Instructions
There are 15 such basic instructions and 86 variations.
This group comprises instructions that move data between internal registers of , between internal
register and external memory location and I/O transfer.
One of the register is always located in the itself; the other may be located in one of the following:
1) An I/o device
2) Memory
3) The microprocessor (internal register)
It means, this group of instructions includes transfer of data from internal register to another
internal register, internal register to memory, memory to internal register, accumulator (A) to output
device, or from input device to accumulator
26. Microprocessor: 8085
26
Instruction Set
1) Data Transfer Instructions
Summary: These type of instructions perform the following six
operations.
Load an 8-bit number in a register Load an 16-bit number in a register pair
Copy from register to register Copy between register and memory
Copy between I/O and accumulator Copy between registers and stack memory
27. This instruction can have 49 variations (7x7), seven combinations for source registers (SSS) and
seven combinations for destination registers (DDD) other than 110.
MOV r1, M
Move the content of the memory location whose address is available into (H,L) pair into the
internal general purpose register r1
M(H,L) is the source register, (r1) is the destination register.
It is a single byte instruction at memory location N. It has 7 variation as DDD can not be 110
because direct memory to memory data transfer is not allowed.
The operation code is,
Instruction Set
1)Data Transfer
Instructions MOV r1, r2
This is a single byte
instruction at memory
location N. The opcode of the
instruction will be
Microprocessor: 8085
27
28. Instruction Set
1)Data Transfer
Instructions MOV M, r1
Move the content of the internal general purpose register r into the memory location whose
address is available in (H,L) register pair.
It is a single byte instruction. The operation code is
It has seven variations. SSS cannot be 110 because direct memory to memory data transfer is
not allowed
Microprocessor: 8085
28
29. Instruction Set
1)Data Transfer
Instructions MVI r1, DATA
DATA is the symbolic name
given to 8-bit data which is
immediately available as
second byte of the
instruction.
Therefore, the source of data
is the 2nd byte of the
instruction itself.
It is a 2 byte instruction (and has 7 variations) at the memory location N & N+1. The opcode
of the instruction is
MVI M, DATA
Move 8-bit data available immediately as a 2nd byte of the instruction to the memory location
whose address is available in memory pointed by (H, L) register pair.
It is a 2 byte instruction (no variation) at the memory location N & N+1. The opcode of the
instruction is
29
Microprocessor: 8085
30. Microprocessor: 8085
30
Instruction Set
2) Arithmetic Instructions
Instructions meant for arithmetic operations that add, subtract, increment or decrement data in a
register are put in this group.
Normally two operands are necessary for any arithmetic operation. One of the operand is always
assumed to be available in accumulator.
The other operand can be made available in one of the three locations:
(a) In an internal general purpose register (r).
(b) In a memory location pointed by M-pointer i.e., (H, L) pair.
(c) Immediately in the instruction itself as a 2nd byte.
The frequently used arithmetic operations are:
Add Subtract
Increment (Add 1) Decrement (Subtract
1)
31. Microprocessor: 8085
Instruction Set
2) Arithmetic Instructions
ADD r
Add the content of
register (r) to the content
of accumulator and store
the result back into the
accumulator.
This is a single byte
instruction.
The opcode of the
instruction is,
It has 7 variations for 7
internal general purpose
registers.
ADD M
This is a single byte instruction and has no
variations.
31
32. Microprocessor: 8085
Instruction Set
2) Arithmetic Instructions
ADD DATA
Add the content available as the second byte of the instruction to the content of accumulation and
store the result back into the accumulator.
This is a single byte instruction and has no variations.
The opcode of the instruction is,
ADC r
Add the content of register (r) to the content of accumulator with carry and store the result
back into accumulator.
This is a single byte instruction and has 7 variations for 7 internal general purpose
registers.
32
33. Microprocessor: 8085
Instruction Set
2) Arithmetic Instructions
INR M
Increment the content of memory location by 1 whose address is available in (H, L) pair and
stores the result back in the same location.
This is a single byte instruction and has no variations.
The opcode of the instruction is,
ADC r
Add the content of register (r) to the content of accumulator with carry and store the result
back into accumulator.
This is a single byte instruction and has 7 variations for 7 internal general purpose
registers.
33
34. Microprocessor: 8085
34
Instruction Set
3) Logic and Bit Manipulation Instructions
Instructions that carry out logic operation, such as AND, OR, EX-OR, compare data in the
accumulator with another internal or external register, complement and rotate data in the
accumulator are considered in this group.
The frequently used operations are:
AND OR
XOR Compare, Rotate
Bits
35. Microprocessor: 8085
Instruction Set
3) Logic and Bit Manipulation Instructions
ANA r
AND bit by bit the content of register (r) to the content of accumulator and store the result back
in the accumulator
This is a single byte instruction.
The opcode of the instruction is,
ANI DATA
AND bit by bit the content available as a second byte of instruction to the content of the
accumulator and store the result back in the accumulator.
This is a two byte instruction and has no variations.
The opcode of the instruction is,
35
36. Microprocessor: 8085
36
Instruction Set
4) Branch Instructions
This group of instructions is used to alter the normal sequential program flow and force the
program to proceed from a different point.
Branch instructions can be of two types: conditional & unconditional.
Unconditional branch instructions simply cause the program to branch to the indicated
instruction whenever these instructions are encountered, i.e., (PC) is loaded with a new address.
Conditional branch instructions examine the status of one of the four processor flags (Z, CY, P,
S) to determine if the specified branch instruction is to be executed. If the condition tested is
TRUE, it causes a branching to occur otherwise not.
Condition flags are not affected by any instruction in this group only program counter (PC) is
affected.
AC is not used for specifying condition. The 8 conditions that are tested are given below:
38. Microprocessor: 8085
Instruction Set
4) Branch
Instructions Jcond
ADDR
There are 8
conditions that can
be checked. They
are JNZ, JZ, JNC, JC,
JPO, JPE, JP, and JM.
So, there are 8
variations for this
instruction.
The I6-bit address in the (PC) just at the end of the instruction depends upon the condition
to be tested. (PC) will be loaded with B3B2 if the given condition is TRUE, otherwise (PC)
will go to (PC)i+3. Figure: Flow chart for conditional jump
instruction
38
Figure: Operation code format of
instruction
39. Microprocessor: 8085
Instruction Set
4) Branch
Instructions JMP
ADDR
ADDR is the
symbolic name
given to the 16- bit
address data
available as the 2nd
and 3rd
bytes of the
instruction.
Load the PC with the 16- bit address data available in the instruction itself as the 2nd
and 3rd bytes of instruction so that the next instruction is fetched from this address in
the succeeding instruction cycle.
This is a three byte instruction. 39
40. Microprocessor: 8085
Instruction Set
5) Machine Control
Instructions EI (Enable
Interrupts)
The interrupt system is
disabled just after RESET
operation.
There is an internal INTE F/F
(interrupt enable flip-flop)
which is reset in RESET
operation.
It is a single byte instruction.
The interrupt system is enabled using EI instruction.
When this instruction is executed, then INTE F/F is set so that all the interrupts are
enabled and 8085A will recognize external interrupt request except those that are
masked.
It has no variation and none of the flags are affected.
40
41. Microprocessor: 8085
Instruction Set
5) Machine Control
Instructions DI (Disable
Interrupts)
It is also a single byte
instruction.
The interrupt system is
disabled just immediately this
instruction, i.e., INTE F/F is
reset.
There is an internal INTE F/F
(interrupt enable flip-flop)
which is reset in RESET
operation.
The interrupt system is enabled using EI instruction.
When this instruction is executed, then INTE F/F is reset so that all the interrupts
are disabled except TRAP
8085A will not recognize any external interrupt request except TRAP.
It has no variation and none of the flags are affected.
41
42. Microprocessor: 8085
Instruction Set
5) Machine Control
Instructions NOP (No operation)
It is a single byte instruction.
The meaning of the
instruction is No operation is
performed.
The registers and flags are
unaffected.
It has no variation and none of the flags are
affected.
42
43. Microprocessor: 8085
43
Instruction Set
5) Machine Control
Instructions HLT (Halt)
It is a single byte instruction.
When this instruction is executed, it stops processor fetching and executing
instructions from the program memory.
The address bus, data bus, and control bus are tri-stated.
It has no variation.
Registers and flags are unaffected.