Transmitter Reciver: Channel
Transmitter Reciver: Channel
Addressing Modes
8237A controller pin diagram
The different ways that a processor can
access data are referred to as its
addressing modes. It is the way by which
the location of the operand is determined.
How an operand is addressed in a program
depends on the types and location of the
data.
There are three general types of addressing
modes:
1.Register Addressing: In register
addressing the operand is placed in one of
the 16-bit or 8-bit general purpose register.
Eg. areMOV AX,CX ADD AL,BL
2.Indirect addressing mode: In indirect
pin details of 8086 microprocessor addressing mode the operand is specified in
The Microprocessor 8086 is a 16-bit the instruction itself. For eg.
CPU available in different clock rates and MOV AL,35H MOV BX,031H
packaged in a 40 pin CERDIP or plastic 3.Direct addressing mode: In direct
package. addressing mode the operand’s off set is
The 8086 operates in single processor given in the instruction as an 8-bit or 16-bit
or multiprocessor configuration to achieve displacement elements. For eg. ADD
high performance. The pins serve a AL[0301] ADD[0301],AX.
particular function in minimum mode 4.Register indirect addressing: the
(single processor mode ) and other Flag Register :A f l ag is a flip-flop which opernad’s off set is placed in any one of the
function in maximum mode configuration indicates some condition produced by the registers BX,BP,SI or DI as specified in the
(multiprocessor mode ). execution of an instruction or controls instruction. For eg. MOV AX,[BX] ADD
The 8086 signals can be categorised in certain operations of the EU. The Flag AL,[SI]
three groups Register is a special register associated with 5.Based addressing : the operand off set is
1.The first are the signal having common the ALU. A 16-bit flag register in the EU the sum of an 8-bit or 16-bit displacement
functions in minimum as well as contains nine active flags. Fig.5 shows the and the content of basic register BX or BP.
maximum mode. location of the nine flags in the flag register. BX id used as a base register for data
2.The second are the signals which have segment,and BP is used as base register for
special functions for minimum mode stack segment. Eg MOV AL,[BX+05]
3.The third are the signals having special 6.Indexed addressing mode : the operand
functions for maximum mode. off set is the sum of the content of an index
The following signal descriptions are register SI or DI.and 8-bit or 16-bit
common for both modes. displacement . For eg:- MOV AX,[SI+05]
AD15-AD0 : These are the time
multiplexed memory I/O address and data
lines.
#.Address remains on the lines during T1
state, while the data is available on the
data bus during T2, T3, Tw and T4. These
lines are active high and float to a tristate
during interrupt acknowledge and local
bus hold acknowledge cycles Six flags are status flags- AF, CF, OF,
#.A19/S6,A18/S5,A17/S4,A16/S3 :
SF, PF and ZF. The remaining three
These are the time multiplexed address
flags are control flags -DF,IF, and TF
and status line.
AF (auxiliary flag). If this flag is set, there
BHE/S7 : The bus high enable is used to
has been a carry out or borrow of the 4
indicate the transfer of data over the
least significant bits. This flag is used
higher order ( D15-D8 ) data bus as shown
during decimal arithmetic instructions.
in table. It goes low for the data transfer
CF(carry flag). If this flag is set, there has
over D15-D8 and is used to derive chip
been a carry out or overflow of the most
selects of odd address memory bank or
significant bit. It is used by instructions that
peripherals.
add and subtract multi byte numbers.
RD – Read : This signal on low indicates
OF (overflow flag). If this flag is set, an
the peripheral that the processor is
arithmetic overflow has occurred; that is , a
performing memory or I/O read operation.
significant digit has been lost because the
RD is active low and shows the state for
size of the result exceeded the capacity of
T2, T3, Tw of any read cycle. The signal
its destination location.
remains tristated during the hold
SF (sign flag). Since negative binary
acknowledge.
numbers are represented in the 8086/8088
READY : This is the acknowledgement
in standard 2s complement notation. SF
from the slow device or memory that they
indicates the sign of the result ( 0 = positive,
have completed the data transfer. The
1 = negative).
signal made available by the devices is
PF (party flag). If this flag is set, the result
synchronized by the 8284A clock
has even parity, an even number of 1s.