Viva 95
Viva 95
Submitted to
(Approved by AICTE)
and affiliated to
HYDERABAD
BACHELOR OF TECHNOLOGY
submitted by
Hyderabad-500 005
2016-2017
Hyderabad-500 005
CERTIFICATE
In partial fulfillment for the award of Degree of Bachelor of Technology in Electronics and
Communication Engineering to the Mahaveer Institute of Science and Technology, affiliated
to Jawaharlal Nehru Technological University and is a bonafide record of work carried out
by them under our supervision during the academic year 2016-2017.
The satisfaction that accompanies the successfully completion of the task would be put
incomplete without the mention of the people who made it possible, whose constant guidance
and encouragement crown all the efforts with success.
We express deep sense of gratitude to .M.Cheenya, Assistant professor, ECE department. His
valuable guidance, constant encouragement and fruitful suggestions during the entire period
of project.
We would like to thank our professor and project coordinator N.Ravi Kumar in the
department of Electronics and Communication Engineering for his guidance, encouragement
and suggestions in the completion of project.
We heart fully thank our beloved Head of Department Dr.V.Gunashekhar Reddy for his great
encouragement and cooperation throughout the project and for providing lab facilities.
We would like to thank our beloved Principal K.S.S.S.N.Reddy for providing necessary
infrastructure in our college.
We also thank or librarian for providing us the books and other necessary material for this
seminar. I would like to thank the staff and friends who supported me directly and indirectly
for their good wishes and constructive criticism, which lead to sucessful completion of this
report.
2.2 Description
2.3 advantages
2.4 applications
3.2 Description
3.3 Applications
3.4 Limitations
4.2 Description
4.3 Application
4.4 Limitation
3.3 Application
3.4 Limitations
4.1 Introduction
4.2 Maxwell flux
4.3 Maxwell equation
1.1 Introduction
2.2 Working
3.2 Architecture
3.3 Applications
There are many types of antanna, but the basic antenna used are the following
CHAPTER 2
2.1 Introduction
The Yagi antenna design has a dipole as the main radiating or driven
element. Further 'parasitic' elements are added which are not directly connected
to the driven element.
These parasitic elements within the Yagi antenna pick up power from the dipole
and re-radiate it. The phase is in such a manner that it affects the properties of
the RF antenna as a whole, causing power to be focussed in one particular
direction and removed from others.
2.2 DESCRIPTION:
Driven element: The driven element is the Yagi antenna element to which
power is applied. It is normally a half wave dipole or often a folded dipole.
Reflector : The Yagi antenna will generally only have one reflector. This is
behind the main driven element, i.e. the side away from the direction of
maximum sensitivity.
Further reflectors behind the first one add little to the performance. However
many designs use reflectors consisting of a reflecting plate, or a series of
Mahaveer Inst of Science & Tech, ECE Department Page 9
parallel rods simulating a reflecting plate. This gives a slight improvement in
performance, reducing the level of radiation or pick-up from behind the
antenna, i.e.in the backwards direction.
Director: There may be none, one of more reflectors in the Yagi antenna. The
director or directors are placed in front of the driven element, i.e. in the
direction of maximum sensitivity. Typically each director will add around 1 dB
of gain in the forward direction, although this level reduces as the number of
directors increases.
The antenna exhibits a directional pattern consisting of a main forward lobe and
a number of spurious side lobes. The main one of these is the reverse lobe
caused by radiation in the direction of the reflector. The antenna can be
optimised to either reduce this or produce the maximum level of forward gain.
Unfortunately the two do not coincide exactly and a compromise on the
performance has to be made depending upon the application.
2.3 ADVANTAGES
Mahaveer Inst of Science & Tech, ECE Department Page 10
The Yagi antenna offers many advantages for its use. The antenna provides
many advantages in a number of applications:
The different elements of the Yagi antenna react in a complex and interrelated
way to provide the overall performance.
HORN ANTENNA
3.1 INTRODUCTION
A horn antenna is used to transmit radio waves from a waveguide (a
metal pipe used to carry radio waves) out into space, or collect radio
waves into a waveguide for reception. It typically consists of a short
length of rectangular or cylindrical metal tube (the waveguide), closed at
one end, flaring into an open-ended conical or pyramidal shaped horn on
the other end. The radio waves are usually introduced into the waveguide
by a coaxial cable attached to the side, with the central conductor
projecting into the waveguide to form aquarter-wave monopole antenna.
The waves then radiate out the horn end in a narrow beam. In some
equipment the radio waves are conducted between
3.2 DESCRIPTION
The waves travel down a horn as spherical wavefronts, with their origin at
the apex of the horn, a point called the phase center. The pattern
of electric and magnetic fields at the aperture plane at the mouth of the horn,
which determines the radiation pattern, is a scaled-up reproduction of the fields
in the waveguide. Because the wavefronts are spherical, the phase increases
smoothly from the edges of the aperture plane to the center, because of the
difference in length of the center point and the edge points from the apex point.
The difference in phase between the center point and the edges is called
the phase error. This phase error, which increases with the flare angle, reduces
the gain and increases the beamwidth, giving horns wider beamwidths than
similar-sized plane-wave antennas such as parabolic dishes.
At the flare angle, the radiation of the beam lobe is down about -20 dB from its
maximum value.
Because the wavefronts are spherical, the phase increases smoothly from the
edges of the aperture plane to the center, because of the difference in length of
the center point and the edge points from the apex point. The difference in phase
between the center point and the edges is called the phase error. This phase
error, which increases with the flare angle, reduces the gain and increases the
beamwidth, giving horns wider beamwidths than similar-sized plane-wave
antennas such as parabolic dishes.
This list contains both the common types of horn antenna as well as more
specialist types. Horns can have different flare angles as well as different
expansion curves (elliptic, hyperbolic, etc.) in the E-field and H-field directions,
making possible a wide variety of different beam profiles.
Pyramidal horn (a, right) a horn antenna with the horn in the shape of a
four-sided pyramid, with a rectangular cross section. They are a common type,
used with rectangular waveguides, and radiate linearly polarized radio waves.
Sectoral horn A pyramidal horn with only one pair of sides flared and the
other pair parallel. It produces a fan-shaped beam, which is narrow in the plane
of the flared sides, but wide in the plane of the narrow sides. These types are
often used as feed horns for wide search radar antennas.
E-plane horn (b) A sectoral horn flared in the direction of the electric or E-
field in the waveguide.
H-plane horn (c) A sectoral horn flared in the direction of the magnetic or H-
field in the waveguide.
Conical horn (d) A horn in the shape of a cone, with a circular cross section.
They are used with cylindrical waveguides.
Exponential horn (e) A horn with curved sides, in which the separation of the
sides increases as an exponential function of length. Also called a scalar horn,
they can have pyramidal or conical cross sections. Exponential horns have
minimum internal reflections, and almost constant impedance and other
characteristics over a wide frequency range. They are used in applications
Corrugated horn A horn with parallel slots or grooves, small compared with
a wavelength, covering the inside surface of the horn, transverse to the axis.
Corrugated horns have wider bandwidth and smaller side lobes and cross-
polarization, and are widely used as feed horns for satellite dishes and radio
telescopes.
Dual-mode conical horn (The Potter horn ) This horn can be used to
replace the corrugated horn for use at sub-mm wavelengths where the
corrugated horn is lossy and difficult to fabricate.
Diagonal horn This simple dual-mode horn superficially looks like a
pyramidal horn with a square output aperture. On closer inspection, however,
the square output aperture is seen to be rotated 45 relative to the waveguide.
These horns are typically machined into split blocks and used at sub-mm
wavelengths.
Ridged horn A pyramidal horn with ridges or fins attached to the inside of the
horn, extending down the center of the sides. The fins lower the cutoff
frequency, increasing the antenna's bandwidth.
Aperture-limited horn a long narrow horn, long enough so the phase error is
a negligible fraction of a wavelength so it essentially radiates a plane wave. It
has an aperture efficiency of 1.0 so it gives the maximum gain and
minimum beamwidth for a given aperture size. The gain is not affected by the
Corrugated horn A horn with parallel slots or grooves, small compared with
a wavelength, covering the inside surface of the horn, transverse to the axis.
Corrugated horns have wider bandwidth and smaller side lobes and cross-
polarization, and are widely used as feed horns for satellite dishes and radio
telescopes.
CHAPTER 4
4.1 INTRODUCTION
In the normal mode or broadside helix, the dimensions of the helix (the diameter
and the pitch) are small compared with the wavelength. The antenna acts
similarly to an electrically short dipole or monopole, and the radiation pattern,
similar to these antennas isomnidirectional, with maximum radiation at right
angles to the helix axis. The radiation is linearly polarised parallel to the helix
axis. These are used for compact antennas for portable and mobile two-way
radios, and for UHF television broadcasting antennas.
In the axial mode or end-fire helix, the dimensions of the helix are comparable
to a wavelength. The antenna functions as a directional antenna radiating a
beam off the ends of the helix, along the antenna's axis. It radiates circularly
polarised radio waves. These are used for satellite communication.
3.2 DESCRIPTION
An effect of using a helical conductor rather than a straight one is that the
matching impedance is changed from the nominal 50 ohms to between 25 to
35 ohms base impedance. This does not seem to be adverse to operation or
matching with a normal 50 ohm transmission line, provided the connecting feed
is the electrical equivalent of a 1/2 wavelength at the frequency of operation.
Many examples of this type have been used extensively for 27 MHz CB
radio with a wide variety of designs originating in the US and Australia in the
late 1960s. Multi-frequency versions with plug-in taps have become the
mainstay for multi-band Single-sideband modulation (SSB) HF
communications.
These popular designs are still in common use as of 2010 and have been
universally adapted as standard FM receiving antennas for many factory
produced motor vehicles as well as the existing basic style of aftermarket HF
and VHF mobile helical. The most common use for broadside helixes is in the
"rubber ducky antenna" found on most portable VHF and UHF radios
When the helix diameter and pitch are at or above the wavelength of
operation, the antenna operates in the axial mode. This is anonresonant traveling
wave mode, in which instead of standing waves, the waves of current and
voltage travel in one direction, up the helix. Instead of radiating linearly
polarized waves normal to the antenna's axis , it radiates a beam of radio waves
with circular polarisation along the axis, off the ends of the antenna. The main
lobes of the radiation pattern are along the axis of the helix, off both ends. Since
in a directional antenna only radiation in one direction is wanted, the other end
of the helix is terminated in a flat metal sheet or screen reflector to reflect the
waves forward.
The helix in the antenna can twist in two possible directions: right-handed or
left-handed, as defined by the right hand rule. In an axial-mode helical antenna
the direction of twist of the helix determines the polarisation of the radio waves:
a left-handed helix radiates left-circularly-polarised radio waves, a right-handed
helix radiates right-circularly-polarised radio waves. Helical antennas can
receive signals with any type of linear polarisation, such as horizontal or
vertical polarisation, but when receiving circularly polarised signals the
handedness of the receiving antenna must be the same as the transmitting
antenna; left-hand polarised antennas suffer a severe loss ofgain when receiving
right-circularly-polarised signals, and vice versa.
The dimensions of the helix are determined by the wavelength of the radio
waves used, which depends on the frequency. In axial-mode operation, the
spacing between the coils should be approximately one-quarter of the
wavelength (/4), and the diameter of the coils should be approximately the
wavelength divided by pi (/). The length of the coil determines
how directional the antenna will be as well as its gain; longer antennas will be
more sensitive in the direction in which they point.
Terminal impedance in axial mode ranges between 100 and 200 ohms. The
resistive part is approximated by:
The loop can be used for improving the performance of a poorly designed
broadcast receiver . Depending on the type of antenna that is in the receiver
determines how the loop can be attached.
CHAPTER 1
INTRODUCTION:
COULUMBS LAW
and
respectively,
Units:
Coulomb's law and Coulomb's constant can also be interpreted in various terms:
An electric field is a vector field that associates to each point in space the
Coulomb force experienced by a test charge. In the simplest case, the field is
considered to be generated solely by a single source point charge. The strength
and direction of the Coulomb force on a test charge depends on the electric
field that it finds itself in, such that . If the field is generated by a
positive source point charge , the direction of the electric field points along
lines directed radially outwards from it, i.e. in the direction that a positive point
test charge would move if placed in the field. For a negative point source
charge, the direction is radially inwards.
The magnitude of the electric field can be derived from Coulomb's law. By
choosing one of the point charges to be the source, and the other to be the test
charge, it follows from Coulomb's law that the magnitude of the electric field
created by a single source point charge at a certain distance from it in
vacuum is given by:
There are three conditions to be fulfilled for the validity of Coulombs law:
CHATER 3
GAUSS LAW
The net electric flux through any closed surface is equal to 1 times the
net electric charge enclosed within that closed surface.
Gauss's law can be stated using either the electric field E or the electric
displacement field D. This section shows some of the forms with E; the form
with D is below, as are other forms with E.
Integral form
Differential form
CHAPTER 4
This relation is known as Gauss' law for electric field in its integral form and it
is one of the four Maxwell's equations.
While the electric flux is not affected by charges that are not within the closed
surface, the net electric field, E, in the Gauss' Law equation, can be affected by
charges that lie outside the closed surface. While Gauss' Law holds for all
situations, it is only useful for "by hand" calculations when high degrees of
symmetry exist in the electric field. Examples include spherical and cylindrical
symmetry.
Electrical flux has SI units of volt metres (V m), or, equivalently, newton metres
squared per coulomb (N m2 C1). Thus, the SI base units of electric flux
are kgm3s3A1.
where B is the magnitude of the magnetic field (the magnetic flux density)
having the unit of Wb/m2 (tesla), S is the area of the surface, and is the
angle between the magnetic field lines and the normal (perpendicular) to S.
For a varying magnetic field, we first consider the magnetic flux through an
A generic surface, S, can then be broken into infinitesimal elements and the
total magnetic flux through the surface is then thesurface integral
From the definition of the magnetic vector potential A and the fundamental
theorem of the curl the magnetic flux may also be defined as:
where the line integral is taken over the boundary of the surface S, which is
denoted S.
Gauss's law for magnetism, which is one of the four Maxwell's equations, states
that the total magnetic flux through a closed surface is equal to zero. (A "closed
surface" is a surface that completely encloses a volume(s) with no holes.) This
law is a consequence of the empirical observation that magnetic
monopoles have never been found.
FIG: For an open surface , the electromotive force along the surface
boundary, , is a combination of the boundary's motion, with velocity v,
through a magnetic field B(illustrated by the generic F field in the diagram)
and the induced electric field caused by the changing magnetic field.
While the magnetic flux through a closed surface is always zero, the
magnetic flux through an open surface need not be zero and is an important
quantity in electromagnetism. For example, a change in the magnetic flux
passing through a loop of conductive wire will cause an electromotive force,
and therefore an electric current, in the loop. The relationship is given
by Faraday's law:
where
The two equations for the EMF are, firstly, the work per unit charge
done against the Lorentz force in moving a test charge around the (possibly
moving) surface boundary and, secondly, as the change of magnetic flux
through the open surface . This equation is the principle behind an electrical
generator.
Note that the flux of E through a closed surface is not always zero; this indicates
the presence of "electric monopoles", that is, free positive or negative charges.
MAXWELL EQUATIONS:
The term "Maxwell's equations" is often used for other forms of Maxwell's
equations. For example, space-time formulations are commonly used in high
energy and gravitational physics. These formulations, defined on space-
time rather than space and time separately, are manifestly[note 1] compatible
with special and general relativity. In quantum mechanics and analytical
mechanics, versions of Maxwell's equations based on the electric and magnetic
potentials are preferred.
Since the mid-20th century, it has been understood that Maxwell's equations are
not exact but are a classical field theoryapproximation to the more accurate and
fundamental theory of quantum electrodynamics. In many situations, though,
deviations from Maxwell's equations are immeasurably small. Exceptions
include nonclassical light, photon-photon scattering, quantum optics, and many
other phenomena related to photons or virtual photons.
is a line integral around the curve (the circle indicates the curve is
closed).
The volume integral of the total charge density over any fixed
volume is the total electric charge contained in :
the net electric current is the surface integral of the electric current
density J, passing through any open fixed surface :
microprocessor has:
processor
Let's assume that both the address and data buses are
our example:
Mahaveer Inst of Science & Tech, ECE Department Page 51
LOADA mem - Load register A from memory address
Microprocessor/Microcontroller
Microprocessor/Microcontroller
Microprocessor/Microcontroller
CHAPTER 2
8086 MICROPROCESSOR
2.1 Introduction
Mahaveer Inst of Science & Tech, ECE Department Page 53
In 1968, Intel Corporation was founded to exploit the
semiconductor memory market, which uniquely fulfilled these criteria. Early
semiconductor RAMs, ROMs, and shift registers were welcomed wherever
small memories were needed, especially in calculators and CRT terminals, In
1969, Intel engineers began to study ways of integrating and partitioning the
control logic functions of these systems into LSI chips.
8086 pin diagram description8086 Pin diagram And Explanation The 8086 can
operate in two modes these are the minimum mode and maximum mode .For
minimum mode, a unique processor system with asingle 8086 and for
Mahaveer Inst of Science & Tech, ECE Department Page 55
Maximum mode a multiprocessor system with more than one 8086.MN/MX- is
an input pin used to select one of this mode .
when MN/MX is high the 8086 operates in minimum mode .In this mode
the 8086 is configured to support small single processor
System using a few devices that the system bus. when MN/MX is low 8086 is
configured to support multiprocessor system. The AD0-AD15 lines are a 16bit
multiplexed addressed or data bus. During the 1st clock cycle
AD0-AD15 are the low order 16Bit adders. The8086 has a total of 20 address
line ,the upper 4lines are multiplexed with the state signal that is A16/S3 ,
A17/S4 , A18/S5 , A19 /S6.Duringthe first clock period of a best cycle the entire
20bitaddress is available on these line. During all other clock cycles for memory
and i/o operations AD15-AD0 contain the 16 bit dataands3,S4,S5,S6 become
the status line .S3 and s4are decoded as follows
BHE/S7 is used as best high enable during the1st click cycle of an instruction
execution .the bhe can be used in conjunction with AD0 to select the memory
TEST is an input pin and is only used by the wait instruction .the 8086 enter a
wait state after execution of the wait instruction until a low is Sean on the test
pin.
RESET is the system set reset input signal it terminates all the activities it clear
PSW,IP,DS,SS,ES and the instruction queue.
DT/R(Data Transmit or receive ):is an o/p signal required in system that uses
the data bus transceiverale is an address latch enable . Is an o/p signal provided
by the 8086 and can be used to demultiplexed AD0 to AD15 in to A10 toA15
andD0 to D15.M/IO is an 8086 output signal to distinguish a memory access
and i/o access.
WR is used by the 8086 for performing write memory or write i/o operation .
HOLD and HOLD a high on the HOLD pin indicates that another master is
required to take over the S/M bus.
CLK clock provides the basic timing signals for the8086 and bus controls
CHAPTER 3
ARCHITECTURE
3.1 Introduction
The BIU performs all bus operations such as instruction fetching, reading and
writing operands for memory and calculating the addresses of the memory
operands. The instruction bytes are transferred to the instruction queue.
In the case of SP and BP the default reference to form a physical address is the
Stack Segment (SS-will be discussed under the BIU)
3.2 Architecture
The BIU handles all transactions of data and addresses on the buses for EU.
The BIU performs all bus operations such as instruction fetching, reading and
writing operands for memory and calculating the addresses of the memory
operands. The instruction bytes are transferred to the instruction queue.
EU contains :
Control circuitry,
Instruction decoder,
ALU,
Flag register.
The expanded I/O instructions permit transferring the contents of any one of
256 8-bit ports either to or from the accumulator. The port number is explicitly
contained in the instruction; hence, the instruction is two bytes long. The
equivalent 8008 instruction is only one byte long. This is the only instance in
which an 8080 instruction requires a different number of bytes than its 8008
counterpart. The motivation for doing this was more to free up 32 opcodes than
to increase the number of I/O ports.
The 8080 has the identical interrupt mechanism the 8008 has, but in addition, it
has instructions for enabling or disabling the interrupt mechanism. This feature,
along with the ability to push and pop the processor flags, made the interrupt
mechanism practical.
The instruction set supports a wide range of addressing modes and provides
operations for data transfer, signed and unsigned 8- and 16-bit arithmetic,
logicals, string manipulations, control transfer, and processor control. The
external interface includes a reset sequence, interrupts, and a multiprocessor-
synchronization and resource-sharing facility.
A. Memory Structure
The 8086 memory structure consists of two components-the memory space and
the input/output space. All instruction code and operands reside in the memory
space. Peripheral and I/O devices ordinarily reside in the I/O space, except in
the case of memory-mapped devices.
Since the 8086 processor performs 16-bit arithmetic, the address objects it
manipulates are 16 bits in length. Since a 16-bit quantity can address only 64K
bytes, additional mechanisms are required to build addresses in a megabyte
memory space. The 8086 memory may be conceived of as an arbitrary number
of segments, each at most 64K bytes in size. Each segment begins at an address
which is evenly divisible by 16 (i.e., the low-order 4 bits of a segment's address
are zero). At any given moment the contents of four of these segments are
immediately addressable. These four segments, called the current code segment,
the current data segment, the current stack segment, and the current extra
segment, need not be unique and may overlap. The high-order 16 bits of the
address of each current segment are held in a dedicated 16-bit segment register.
In the degenerate case where all four segments start at the same address, namely
address 0, we have an 8080 memory structure.
Bytes or words within a segment are addressed by using 16-bit offset addresses
within the 64K byte segment. A 20-bit physical address is constructed by adding
the 16-bit offset address to the contents of a 16-bit segment register with 4 low-
order zero bits appended, as illustrated in Figure 3.
Various alternatives for extending the 8080 address space were considered. One
such alternative consisted of appending 8 rather than 4 low-order zero bits to the
contents of a segment register, thereby providing a 24-bit physical address
The 4 additional pins that would he required on the chip were not
available.
2. Input/Output Space. In contrast to the 256 I/O ports in the 8080, the 8086
provides 64K addressable input or output ports. Unlike the memory, the I/O
space is addressed as if it were a single segment, without the use of segment
registers. Input/output physical addresses are in fact 20 bits in length, but the
high-order 4 bits are always zero. The first 256 ports are directly addressable
(address in the instruction), whereas all 64K ports are indirectly addressable
(address in register). Such indirect addressing was provided to permit
consecutive ports to he accessed in a program loop. Ports may be 8 or 16 bits in
size, and 16-bit ports may he located at odd or even addresses.
B. Register Structure
The 8086 processor contains three files of four 16-bit registers and a file of nine
1-bit flags. The three files of registers are the general-register file, the pointer-
2. Pointer- and Index-Register File. The SP-BP-SI-DI register set is called the
pointer- and index-register file, or the P and I groups. The registers in this file
generally contain offset addresses used for addressing within a segment. Like
the general registers, the pointer and index registers can participate
interchangeably in the 16-bit arithmetic and logical operations of the 8086,
thereby providing a means to perform address computations. These registers
play a major role in effective address computations, as described in the section
on Operand Addressing below (Sec. VIII. C. 1.).
There is one main difference between the registers in this file, which results in
dividing the file into two subfiles, the P or pointer group (SP,BP) and the I or
index group (SI,DI). The difference is that the pointers are by default assumed
to contain offset addresses within the current stack segment, and the indexes are
by default generally assumed to contain offset addresses within the current data
segment. The mnemonic phrases "stack pointer," "base pointer," "source index,"
The contents of the CS register define the current code segment. All instruction
fetches are taken to be relative to CS, using the instruction pointer (IP) as an
offset. The contents of the DS register define the current data segment.
Generally, all data references except those involving BP or SP are taken by
default to be relative to DS. The contents of the SS register define the current
stack segment. All data references which explicitly or implicitly involve SP or
BP are taken by default to be relative to SS. This includes all push and pop
operations, interrupts, and return operations. The contents of the ES register
define the current extra segment. The extra segment has no specific use,
although it is usually treated as an additional data segment which can be
specified in an instruction by using a special default-segment-override prefix.
In general, the default segment register for the two types of data references (DS
and SS) can be overriden. By preceding the instruction with a special one-byte
prefix, the reference can be forced to be relative to one of the other three
Programs which do not load or manipulate the segment registers are said to be
dynamically relocatable. Such a program may be interrupted, moved in memory
to a new location, and restarted with new segment-register values.
At first a set of eight segment registers was proposed along with a field in a
program-status word specifying which segment register was currently CS,
which was currently DS, and which was currently SS. The other five all served
as extra segment registers.
AF Auxiliary carry
CF Carry
DF Direction
IF Interrupt enable
OF Overflow
PF Parity
SF Sign
TF Trap
ZF Zero
The AF, CF, PE, SF, and ZF flags retain their familiar 8080 semantics, generally
reflecting the status of the latest arithmetic or logical operation. The OF flag
joins this group, reflecting the signed arithmetic overflow condition. The DF, IF,
and TF flags are used to control certain aspects of the processor. The DF flag
controls the direction of the string manipulations (auto-incrementing or auto-
decrementing). The IF flag enables or disables external interrupts. The TF flag
puts the processor into a single-step mode for program debugging. More detail
is given on each of these three flags later in the chapter.
The 8086 instruction set-while including most of the 8080 set as a subset-has
more ways to address operands and more power in every area. It is designed to
implement block-structured languages efficiently. Nearly all instructions operate
on either 8- or 16-bit operands. There are four classes of data transfer. All four
arithmetic operations are available. An additional logic instruction, test, is
included. Also new are byte- and word-string manipulations and intersegment
transfers.
1. Operand Addressing. The 8086 instruction set provides many more ways to
address
The general register, BX, and the pointer register, BP, may serve as base
registers. When the base register EX is used without an index register, the
operand by default resides in the current data segment. When the base register
BP is used without an index register, the operand by default resides in the
current stack segment. When both base and index registers are used, the operand
by default resides in the segment determined by the base register. When an
index register alone is used, the operand by default resides in the current data
segment.
Simple variables and arrays: A simple variable is accessed with the direct
address mode. An array element is accessed with the indirect address
mode utilizing the sum of the register SI (where SI contains the index into
the array) and displacement (where displacement is the offset of the array
in its segment).
mod specifies how disp-lo and disp-hi are used to define a displacement as
follows:
r/m specifies which base and index register contents are to be added to the
displacement to form the operand offset address as follows:
interrupts. The 8080 interrupt mechanism was general enough to permit the
interrupting device to supply any operation to be executed out of sequence when
an interrupt occurs. However, the only operation that had any utility for
interrupt processing was the 1-byte subroutine call. This byte consists of 5 bits
of opcode and 3 bits identifying one of eight interrupt subroutines residing at
eight fixed locations in memory. If the unnecessary generalization was removed,
the interrupting device would not have to provide the opcode and all 8 bits
could be used to identify the interrupt subroutine. Furthermore, if the 8 bits
were used to index a table of subroutine addresses, the actual subroutine could
reside anywhere in memory. This is the evolutionary process that led to the
design of the 8086 interrupt mechanism.
"The 8008 begat the 8080, and the 8080 begat the 8085, and the 8085 begat the
8086."
During the six years in which the 8008 evolved into the 8086, the processor
underwent changes in many areas, as depicted by the conceptual diagram of
Figure 10. Comparisons in performance and technology are shown in Tables 5
and 6.
The era of the 8008 through the 8086 is architecturally notable for its role in
exploiting technology and capabilities, thereby lowering computing costs by
over three orders of magnitude. By removing a dominant hurdle that has
inhibited the computer industry the necessity to conserve expensive
processors the new era has permitted system designers to concentrate on
solving the fundamental problems of the applications themselves.
3.3 Applications
Faggin, F., M. Shima, M. E. Hoff, Jr., H. Feeney, and S. Mazor, "The MCS-4:
An LSI Micro Computer System," IEEE Region 6 Conf. 1972, pp. 8-11.
Hoff, M. E., Jr., "The New LSI Components," 6th Annual IEEE Comp. Soc. Jut.
Conf, 1972.
Morse, S. P: "The 8086 Primer," Hayden Book Co., New York, 1980.
Shima, M., F. Faggin, and S. Mazor, "An N-Channel 8-Bit Single Chip
Microprocessor," IEEE Int. Solid-State Circuits Conf, February 1974, pp. 56-57.