Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
)
MICROPROCESSOR : GATE / EC/EE/IN
MICROPROCESSOR - 8085 PERSONAL REMARK :
, Microprocessor is a programmable integrated device that has computing
and decision making capability (similar to that of the central processing
unit, CPU) of a computer.
, A Microprocessor is a semiconductor device which is manufactured
by using LSI or VLSI technology, which includes ALU, Control Unit
and a group of Registers in a single Integrated circuit.
, A device / machine / system that includes all the components (i.e.
microprocessor, memory, input, output) on one chip (fabricated using
VLSI or ULSI technology)is called microcontroller. For example:
Washing machine, traffic light controller, automatic testing instruments,
dishwashers, automobile dashboard controls are the typical examples
of microcontroller based product. Finally we can say microcontroller is
essentially a entire computer on a single chip.
, A Microprocessor is a multipurpose, programmable, register based clock
driven electronic device that reads binary instructions from the storage
device called memory, accepts binary data as input and processes data
according to instructions and provides results as output.
, Thus, we can say Microprocessor can be embedded in a larger system
using only one controlling unit i.e. CPU, called Microcomputer.
, Microcomputer is a device which is application specific.
, The microprocessor communicates and operates in binary numbers 0
and 1, called bits.
, Some times microcontroller is called microcomputer. The term
microprocessor and microprocessor unit (MPU) are often used
synonymously. Microprocessor unit means a complete processing unit
with the desired / necessary control signals.
, Bit : Binary digit. (i.e. 0 or 1).
, Nibble : A group of four bits is called a nibble.
, Byte : A group of eight bits is called a byte.
, Word : A group of bits the computer recognizes and processes at a
time, 1 word = 2 byte.
, Machine Language: The microprocessor and microcomputer
communicates and operates in the binary number 0 and 1 called bits.
Each microprocessor / microcomputer has a fixed set of instructions in
the form of binary pattern called a machine language.
, A typical programmable Machine / Device / System can be represented
with five components namely -
Microprocessor Memory
Input Output
System Bus
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
1
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
Figure 1 shows the block diagram of a programmable device/machine/ PERSONAL REMARK :
system.
Output
Devices
Fig.1
, Instruction : A command in binary that is recognized and executed by
the computer to accomplish a task.
, A set of instructions written for the microprocessor to perform a task
is called program, and a group of program is called software.
, Mnemonic Instruction : A meaningful combination of letters used to
suggest the operation of an instruction. For ex. MOV, ADD, SUB etc.
, Bus : A group of wires or lines used to transfer bits between the
microprocessor and other components of the computer system or a
path used to carry signals, such as connection between memory and
the CPU in a digital computer.
A MICROPROCESSOR AS A PROGRAMMABLE DEVICE
, Microprocessor : The programmable means it can be instructed to
perform given tasks within its capability Ex. A piano is a programmable
machine.
, Memory : Memory is like the pages of a note book with space for a
fixed number of binary numbers on each line. However these pages
are generally made of semiconductor material. Typically, each line is
an 8 bit register that can store eight binary digits (bits) and several of
these register are arranged in a sequence called memory.
There are two types of memory ROM and RAM
The ROM memory is used to store programs that do not need
alterations. It means programs stored in the ROM can only be
read, they cannot be altered.
The RAM (Read/write memory)is also known as user memory.
It means it is used to store user programs and data. The
information stored in the RAM can be easily read and altered.
, The function of each and every component of a Machine / Device /
System is shown below in the form of tree structure.
Machine / Device / System
CPU
Arithmetic/
Logic Unit (ALU) Input Microprocessor Output
as CPU
Input Control Unit Output
Memory
Memory
Memory, Input, output and the central processing unit, which consists
of the arithmetic/logic unit (ALU) and control unit. The CPU contains
various registers to store data. The ALU performs arithmetic and logical
operation by using instruction from decoders, counters and control lines.
The CPU reads instructions from the memory and communicates with
devices such as memory, input, and output. The timing of the
communication process is controlled by the group of circuits called
the control unit.
Control
ROM RAM
Memory
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
3
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
(i) ALU : This is the area of the Microprocessor where various
computing functions are performed on data. The ALU unit PERSONAL REMARK :
performs such arithmetic operation as addition and subtraction
and such logic operations as AND, OR and EX-OR Results are
stored either in register or memory.
(ii) Register array : These registers are primarily used to store
data temporarily during the execution of a program.
(iii) Control unit : The control unit provides the necessary timing
and control signal to control the flow of data between the
microprocessor memory and peripherals.
, Low Level Language : A medium of communication that is machine
dependent or specific to a given computer. The machine and the
assembly languages of a computer are considered low-level language.
, High Level Language : A medium of communication that is
independent of a given computer programs are written in english like
words and they can be executed on machine using a translator (a
compiler or an interpreter).
, Compiler : A program that translates english-like words of a high-
level language in the machine language of a computer.
, Monitor Program : A program that interprets the input from a
keyboard and converts the input into its binary equivalent.This is stored
in EPROM of a microcomputer.
Microprocessor Architecture and Micro Computer System : A
Microprocessor system consists of four components. The
Microprocessor, memory, input, and output.
The Microprocessor manipulates data and communicates with such
peripheral devices such as memory and I/O. The internal logic design
of the microprocessor called its architecture.
, Architecture : The process of data manipulation and communication
is determined by the logic design of the microprocessor called the
architecture. The various functions performed by the microprocessor
can be classified in three general categories :
(1) Microprocessor-initiated operations.
(2) Internal data operations
(3) Peripheral (Externally) initiated Operations.
To perform these functions, the microprocessor requires a group of
logic circuits and a set of signals called control signals.
The Microprocessor functions listed above are explained here in relation
to the 8085 or 8080(A).
, Microprocessor - initiated operations and 8085 BUS organization :
A0 to Address Bus
A15
Write
8085 word
MEMORY INPUT
p-unit
OUTPUT Real
word
Data bus
D0 to D7 Control bus
8 lines 16 lines
(D 0 D7) (A 0 A15)
Bidirectional Unidirectional
Internal Architecture of 8085 microprocessor
, 8085 has 6 general purpose registers to store 8-bit data as B, C, D, E,
H and L. They can be combined as register pairs - BC, DE, & HL to
perform some 16 bit operations.
, Register Array : Two additional registers called termporary registers
W and Z are included in the register array.
These register are used to hold 8-bit data during the execultion of some
inrtructions. Howerver, because they are used internally. They are not
available to the programmer.
, Accumulator : The Accumulator is an 8-bit register that is part of the
ALU. This register is used to store 8-bit data and to perform
Arithmetic and logical operations. The result of an operation is stored
in accumulator.
, Flags : The ALU includes 5 flip-flops that are set or reset according to
data conditions in the accumulator. For Example : After an addition
of two numbers if the sum in the accumulator is larger than eight bits,
the flip-flop that is used to indicate a carry called the carry flag (CY)
becomes set.
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
7
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
for unsigned number even if bit D7 of a result is 1 and the flag is set, it PERSONAL REMARK :
does not mean the result is negative.
, Z (Zero flag) : The zero flag is set if the ALU operation results in zero,
and the flag is reset if the result is not zero.
, PROGRAM COUNTER (PC) : Is a 16-bit register used to hold
memory addresses.
The size of this register is 16 bits because the memory addresses are
16 bits.
Program counter is used to sequence execution of a program. It
always holds the address of the next memory location to be
accessed.
, It keeps the track of memory addresses of the instructions in a program
while they are being executed.
, When a byte (machine code) is being fethed the program counter is
increment by one point to the next memory location.
, STACK POINTER(SP) : The stack pointer is also a 16-bit register.
Basically stack is a group of memory locations in the R/W memory
that is used for temporary storage of binary information during the
execution of a program.
, Stack pointer works on the principle of LIFO (Last-in-first-out)
, The stack pointer holds the address of the top element of data stored in
the stack.
, The stack pointer is initialized by the programmer at the beginning of a
program which needs stack operation.
, Stack Pointer (SP) stores the contents of Program Counter (PC) when
it jumps to a subroutine using CALL instruction.
, Some times stack memory is called rough memory.
, The stack is shared by the programmer and the microprocessor.
, The beginning of the stack is defined in the program by using the
instruction LXI SP, or SPHL.
, The programmer can store and retrieve the contents of a register pair
by using PUSH and POP instructions.
PERIPHERAL OR EXTERNALLY INITIATED OPERATIONS
, Reset : When this pin is activated by an external key , all the internal
operations are suspended and the program counter is cleared (it hold
0000H).
, Interrupt : The microprocessor can be interrupted from the normal
execution and asked to execute some other instructions called service
routine.
, Ready : When this pin is LOW, the microprocessor enteres the wait
state. This signal is used primarily to synchronize slower peripherals
with the microprocessor.
, Hold : When this pin is activated, the microprocessor relinquishes
control of buses and allows the external peripherals to use them. for
example, the HOLD signal is used in Direct memory Access (DMA)
data transfer.
Classroom Study Course
LUCKNOW Classroom & Online Test Series Regular & Weekend Batches
LUCK NOW
Correspondance
0522-6563566 Study Material Foundation Batches also for 2nd & 3rd Year sturdents Interview Guidance 8
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
Some commonly used components are given below. PERSONAL REMARK :
Tri-State devices : Tri state logic devices have three stages; logic 1,
logic 0 and high impedance. A tri-state logic devices has a third line
called enable, as shown below in figure (1).
Fig. 1(a) shows a tri-state inverter when the enable is high this circuit
functions as an ordinary inverter, when the enable is low, The inverter
stays in the high impedance state. fig. 1(b) also shows a tristate inverter
with active low Enable line.
Enable
Enable
1 (a) Active high 1 (b) Active Low
Figure 1 : Tri-state inverter with active high
and active low enable lines
2 (a) Enable
Active low
2 (b)
A7 to A0
I/O
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
9
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
In order to activate the chip, we have to ON the CS (Chip select) pin PERSONAL REMARK :
which is active low. The output of NAND gate is low when input (A15
to A8) is low. Once the chip is selected combination from 00 to FF.
8 1024 8
Number of memory chips = 64chips
1024
+ 5V GND
2 40 20
Serial I/O SID 54 X1 X2 Vcc Vss
ports A15 28
SOD
6 21 Address Bus
7 A8
8
9
Signals 10 19 MultiplexedAddress
35 Ad7 /Data Bus
39 8085 12
36 Ad0 30
29 ALE
S0
33 S1
External signal INTA 11 34 IO/M Status Control and
signals
Ack nowledgement HLDA 38 32 RD
31 WR
3 37
RESETCLK
OUT OUT
Pin Configuration of 8085 P
, Control and status signals : This group of signals includes two
control signals (RD and WR). Three status signals (IO/ M , S1, and S0)
and ALE.
ALE ( Address Latch Enable) This is a psitive going pulse generated
every time the 8085 begins an operation (Machine cycle). This signal
is used primarily to latch the low-order address from the multiplexed
data bus and generate a separate set of eight address lines, A7 A0.
RD (Read) : This is a Read control signal. This signal indicates that
the selected I/O or memory device is to be read and data are available
on the data bus.
WR (Write) : This is a write control signal. This signal indicates that
the data on the data bus are to be written in to a selected memory or I/
O and memory operation.
IO/ M , S0, S1 are status signals and, are the control signals available
in 8085.
IO/ M : This is a status signal used to differentiate between I/O and
memory operation. When it is low it indicates a memory operation.
S1 and S0 : These status signals similar to IO/ M can identify
various operations as given right n and side. S1 S0 Operation
, 8085 INTERRUPTS AND EXTERNALLY INITIATED 0 0 Halt
SIGNALS
INTR (Input) Interrupts Request : This is used as a general purpose. 0 1 Write
INT A (OUTPUT) : (Interrupt acknowledge) : This is used to 1 0 Read
acknowledge an interrupt.
RST 7.5 1 1 Fetch
RST 6.5
RST 5.5
Restart Interrupts : These are vectored interrupts and transfer the
program control to specific memory locations. They cause an internal
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
11
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
restart to be automatically inserted. They have higher priorities than
INTR interrupt. Among these three the priority order is 7.5, 6.5, 5.5. PERSONAL REMARK :
, 8085 have five hardware interrupts : TRAP (Highest priority) RST
7.5, RST 6.5, RST 5.5 and INTR (Lowest priority).
, RST 7.5 is positive edge triggered while RST 6.5 and RST 5.5 is level
triggered interrupt.
, TRAP is both edge and level triggered interrupt.
, Except TRAP all other interrupts are called maskable interrupts.
*TRAP (INPUT) : This is a nonmaskable interrupt and the
highest priority and INTR is least priority.
*Nonmaskable means we cannot disable this interrupt.
, HLDA : (HOLD Acknowledge) This signal acknowledges the hold
request.
, HOLD (Input):- This singal indicates that a peripheral such as a DMA
controller is requesting the use of the address and data BUS.
, Ready (Input) : Ready pin in 8085 is used to synchronize slower
peripherals with the microprocessor This signal is used to delay the
microprocessor read or write cycles with a slow-responding peripheral
The microprocessor is ready to send or accept data, when this signal
goes low. The microprocessor waits for an integral number of clock
cycles until it goes high.
, ALU : The arithmetic / logic circuit performs the computing
functions,includes the accumulator, the temporary register, the
arithmetic and logic circuits and five flags. The result is stored in
accumulator.
NOTE :
(1) In the memory write cycle, the 8085 writes (stores) data in memory
using the control signal and the status signal IO/M.
(2) In the memory read cycle, the 8085 asserts the RD signal to
memory and than 8085 places the data byte on the data bus and
then asserts the signal to write into the addressed memory.
, POINTS TO REMEMBER
(1) The data bus and the low order address bus are multiplexed
they can be demultiplexed by using the ALE (Address Latch
Enable) signal and a latch.
(2) The IO/ M is a status signal. When it is high it indicates an I/O
operation. When it is low, it indicates a memory operation.
(3) The RD and WR are control signals, the RD is asserted to read
from an external device and the WR is asserted to write into an
external device.
(4) The RD and WR signal are logically ANDed with IO/ M signal
to generate four active low control signals; MEMR, MEMW,
IOR and IOW.
(5) To interface a memory chip with the 8085, it is necessary that
low order address lines of the 8085 address bus are connected
to the address lines of the memory chip. The higher order address
lines are decoded to generate signal to enable the chip.
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
13
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
subsequent machine cycle consist of 3T-states only. PERSONAL REMARK :
, The First Machine cycle of each instruction cycle is always OP-code
fetch machine cycle. Other machine cycles are Memory read and
Memory write, I/O read and I/O write.
, The opcode fetch and the memory read are operationally similar except
that the memory read cycle has three T-states The 8085 reads opcode
during the opcode fetch cycle, and it reads 8-bit data during the memory
read cycle.
, In 8085, CALL instruction is the lengthy instruction which takes 18T
states and the shortest instruction takes only 4T states. (Ex. MOV A,
B).
, Example of Arithmetic Instructions : ADD, SUB, ADI, SUI, ADC,
SBB, ADI, SBI, INR, DCR, INX, DCX etc.
, Example of Data Transfer Instructions : LDA, STA, MOV, MVI
etc.
, Example of Logical Instructions : ORA, ANA, XRA, ORI, ANI,
XRI, RLC, RRC, RAL etc.
, Example of Branch Instructions : JMP, CALL, RC, RNC, JC, JNC,
CC, CNC etc.
TYPES OF INSTRUCTION
, Example of Stack, I/O and Machine control Instruction : IN,
OUT, PUSH, POP, HLT, NOP, SIM, RIM etc.
, According to the length of instruction, the 8085 instructions can be
classified into three groups :
(i) One byte instructions : This type of instruction requires one
memory location to store in memory. The one byte instructions
include both opcode and operand in the same byte. Eg : MOV A,
B, ADD B, CMA etc.
(ii) Two byte instructions : This type of instruction requires two
memory locations to store in memory. In a two byte instruction, the
first byte specifies the operation code and the second byte specifies
the operand. Eg : MVI A 45 H; ADI 36 H, SUI 78 H, ORI 67 H,
XRI 9A H etc.
(iii) Three byte instructions : This type of instruction requires three
memory locations to store in the memory. In three byte instruction,
the first byte specifies the Opcode and the following two bytes
specify the 16-bit address or data.
Ex. : JMP 2500 H, STA 4509 H, LDA 3456 H, LXI, 2345 H etc.
NOTE :
1. One-Byte instructions can be recognized as follows :
(a) Data transfer instructions that copy the contents from one
register (or memory) into another register (or memory) are one-
byte instruction. Ex. : MOV.
(b) Arithmetic/logical instructions without the ending letter I
are one byte.
Ex. : ADD, SUB, ORA.
2. Two byte instructions can be recognized as follows :
(a) Instructions that load or manipulate 8-bit data directly are 2-
byte instructions.
Ex. : MVI, ADI, SUI, SBI, IN, OUT, ORI, XRI, ANI etc.
(b) All three letter instructions with ending letter I (except LXI)
are two byte instructions.
The instructions PUSH and POP are similar to the instructions CALL
and RETURN respectively. The similarities and differences are as
follows :
PUSH and POP
1. The programmer uses the instructions PUSH to save the contents
of register specified in the register pair on the stack.
2. When PUSH is executed, the stack pointer register is
decremented by two.
3. The instruction POP transfers the contents of the top two locations
of the stack to the specified register pair.
4. When the instruction POP is executed the stack pointer is
incremented by two.
5. There are no conditional PUSH and POP instructions.
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
15
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
CALL and RETURN PERSONAL REMARK :
1. When CALL is executed, the microprocessor automatically
stores the 16-bit address of the instruction next to CALL on the
stack.
2. When CALL is executed, the stack pointer register is
decremented by two.
3. The instruction RET transfers the contents of the top two
locations of the stack to program counter.
4. When the instruction RET is executed, the stack pointer is
incremented by two.
5. In addition to the unconditional CALL and RET instructions,
there are eight conditional CALL and RETURN instructions.
, MAPPING
Assigning addresses to I/O devices or memory locations is called
mapping.
, Memory mapping : Assigning address to memory locations is called
memory mapping.
(i) Changing the hardware logic used for the chip selection can change
memory mapping.
(ii) To interface a memory chip with the 8085, the necessary low-
order address lines of the 8085 address bus are connected to the
address lines of the memory chip.
(iii) The high-order address lines are decoded to generate CS (chip
select signal to enable the chip).
, Absolute decoding : In this decoding all the address lines which are
not used for memory chip to identify a memory register must be decoded.
Thus, chip select can be asserted by only one address.
, Linear decoding : In this decoding technique, one address line is used
for CS, and others are left dont care. This technique reduces hardware,
but generates multiple addresses resulting in fold back memory space.
, I/O devices can be connected to microprocessor in two different
techniques.
(i) Memory mapped I/O technique and
(ii) I/O mapped or Peripheral mapped I/O technique.
(i) Memory mapped I/O technique :
* In memory mapped I/O, the I/O devices are also treated as
memory locations, under that assumption they will be given 16-
bit address.
* In memory mapped I/O, microprocessor uses memory related
instructions to communicate with I/O devices.
Ex. : STA, LDA, MOV A, M; MOV M, A etc.
* In memory mapped I/O, MEMR and MEMW control signals
are used to activate I/O devices.
* In memory mapped I/O, the entire memory map is shared by
memory locations and I/O devices. One address can be used
only once. This technique is used in a system where the number
of I/O devices are more.
* The maximum number of I/O devices that can be connected to
microprocessor in this technique are 65536.
(ii) I/O mapped I/O Technique / pheripheral Mapped I/O
Technique.
* In this technique the I/O devices are identified by the
microprocessor with separate 8-bit port address.
Classroom Study Course
LUCKNOW Classroom & Online Test Series Regular & Weekend Batches
LUCK NOW
Correspondance
0522-6563566 Study Material Foundation Batches also for 2nd & 3rd Year sturdents Interview Guidance 16
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
* This technique uses separate control signals (IOR and IOW) to
activate I/O devices and separate instructions (IN and OUT) to PERSONAL REMARK :
communicate with I/O devices.
* In this technique I/O mapping is independent of memory
mapping. Same address can be used to identify input and output
devices.
* This technique is used in a system where number of I/O devices
are less. By using this method a maximum of 256 input devices
and 256 output devices can be connected to the processor (total
of 512 I/O devices).
* The input and output devices are differential by control signals.
* The MPU communicates with only one peripherals at a time by
enabling the peripherals through its control signals
, Interfacing : Designing hardware circuit and writing software
instructions to enable the microprocessor to communicate with
peripheral devices is called interfacing. And the hardware circuit
is called the interfacing device.
, There are two basic types of interfacing devices are available.
(i) Non-programmable interfacing devices and
(ii) Programmable interfacing devices.
(i) Non-programmable interfacing devices : Once the
microprocessor based system is designed it is not possible to
program such type of devices. Examples : 8212-Non-programmable
I/O port, 74LS245-bi-directional buffers, 74LS373 transparent
latches etc.
(ii) Programmable interfacing devices : Writing a specific word,
called the control word, according to the internal logic, can program
a programmable interfacing device.
* 8155 : Programmable peripheral interfacing (PPI) device
with 256 bytes RAM and 16-bit timer/counter. It is a general
purpose interfacing device i.e. it can be used to interface variety
of I/O devices to the microprocessor.
* 8255 : PPI is also called Programmable Interface Adapter
(PIA). It consists of three 8-bit ports.
Summary of logical instructions / operations
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
17
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
, Summary of data transfer (Copy) instructions/operations PERSONAL REMARK :
S. No. Instruction Meaning Type of Addressing
1. MOV A, B Copy B (source Register Direct
register) into A
2. MVI R, 8-bit Load register R with Immediate
the 8-bit data
3. IN 8-bit port Read data from the Direct
address input port
4. OUT 8-bit port Write data in the Direct
address output port
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
21
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
Note : In order to find the Restart address do the following procedure. PERSONAL REMARK :
For RST3, multiplying 3 by 8 we get 24. The hex equivalent of 24 is
18 H which is the required restart address.
For RST 7.5, 7.5 * 8 = 60. The hex equivalent of 60 is 3C H.
Register contents
after instruction B 32 57 C SP 2097
NEW DELHI LUCKNOW AGRA ALLAHABAD PATNA NOIDA BHOPAL JAIPUR GORAKHPUR KANPUR
8860637779 9919526958 9793424360 9919751941 9534284412 8860637779 9838004479 9793424360 9838004494 9838004497
23
TECHGURU PUBLICATIONS (A Unit of TECHGURU EDUCATIONALS Pvt. Ltd.)
MICROPROCESSOR : GATE / EC/EE/IN
Example : The contents of various registers and stack locations are PERSONAL REMARK :
as shown. Stacks
H A2 57 L 2095 38
SP 2095 2096 67
Register contents
Important Features
This is 3-type instruction
The secons bute is loaded in the low order register of the register
pair and third in the high-order register pair.