Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 13

TERM PAPER OF MICROPROCESSOR

ON

COMPUTER,MICROCOMPUTER AND MICROPROCESSOR

PREPARED BY

Shahwaz Ahmad

B.Tech(IT) Final Year

Section-F27E1

Roll No-RF27E1B25

SUBMITTED TO

Mr. Mahinder Singh

ABSTRACT processor chip set. With the


development of advanced processors
Microprocessors have evolved have come improvements and
dramatically in the twelve years of evolution of operating systems and
their development by the processor communications.
implementation of large numbers of Multiprocessing and special-purpose
devices on single chips. Word widths processors have also improved
have increased along with computing technology. The
microprogramming capabilities, processor technologies are
addressing capabilities, and trends illustrated by diagrams and
toward single-chip computers. Only compared in tables. A glossary of
a year after the introduction of 4-bit microprocessor terms is included.
processors came the 8-bit processor.
Three years later, in 1974, 16-bit
processors became the leading INTRODUCTION
technology. The article compares
architectures and operations of the COMPUTER
TI 9900, Intel 8086, Zilog Z8000,
A computer is a programmable
Motorola 68000, and NSC 16032 16-
machine that receives input, stores
bit microprocessors. The 32-bit
and manipulates data, and provides
processor was realized in 1981.
output in a useful format.
General trends in architecture,
technology, principles of operation, While a computer can, in theory, be
register organization, instruction set, made out of almost anything , and
memory organization, and mechanical examples of computers
performance are examined in the have existed through much of
Bellmac-32A chip, the HP 32-bit recorded human history, the first
processor, and the iAPX 432 electronic computers were developed
in the mid-20th century (1940– meet functional, performance and
1945). Originally, they were the size cost goals.
of a large room, consuming as much
power as several hundred modern Computer architecture comprises at
personal computers (PCs). Modern least three main subcategories.
computers based on integrated
• Instruction set architecture,
circuits are millions to billions of
or ISA, is the abstract image
times more capable than the early
of a computing system that is
machines, and occupy a fraction of
seen by a machine language
the space. Simple computers are
(or assembly language)
small enough to fit into mobile
programmer, including the
devices, and can be powered by a
instruction set, word size,
small battery. Personal computers in
memory address modes,
their various forms are icons of the
processor registers, and
Information Age and are what most
address and data formats.
people think of as "computers".
However, the embedded computers • Microarchitecture, also
found in many devices from MP3 known as Computer
players to fighter aircraft and from organization is a lower level,
toys to industrial robots are the most more concrete and detailed,
numerous. description of the system
that involves how the
COMPUTER
constituent parts of the
ARCHITECTURE system are interconnected
In computerscience and computer and how they interoperate in
engineering, computer order to implement the ISA.
architecture or digital computer [2] The size of a computer's
organization is the conceptual design cache for instance, is an
and fundamental operational organizational issue that
structure of acomputer system. It's generally has nothing to do
a blueprint and functional description with the ISA.
of requirements and design
• System Design which
implementations for the various parts
includes all of the other
of a computer, focusing largely on
hardware components within
the way by which thecentral
a computing system such as:
processing unit (CPU) performs
internally and accesses addresses in 1. System interconnects
memory. such as computer buses
and switches
It may also be defined as the science
and art of selecting and 2. Memory controllers
interconnecting hardware and hierarchies
components to create computers that
3. CPU off-load and the wires connecting
mechanisms such as them are routed.
direct memory access
(DMA) For CPUs, the entire implementation
process is often called CPU design.
4. Issues like
multiprocessing.

Once both ISA and microarchitecture


have been specified, the actual
device needs to be designed into
hardware. This design process is
called the implementation.
Implementation is usually not
considered architectural definition,
but rather hardware design
engineering.

Implementation can be further


broken down into three (not fully
distinct) pieces

• Logic Implementation — MICROCOMPUTER


design of blocks defined in
the microarchitecture at Microcomputer" is an antiquated
(primarily) the register- term that refers to a computer that
transfer and gate levels. uses a microprocessor (integrated
circuit) for its Central Processing
• Circuit Implementation — Unit, rather than vacuum tubes or
transistor-level design of bipolar junction transistors, which
basic elements (gates, were commonplace before the
multiplexers, latches etc) as microprocessor. In addition, a
well as of some larger blocks microcomputer should be small
(ALUs, caches etc) that may enough to fit on a desk, as
be implemented at this level, microprocessor-based computers
or even (partly) at the larger than that are generally called
physical level, for minicomputers instead.
performance reasons. Microprocessor-based computers are
the backbone of the modern
• Physical Implementation — computer era, often considered "third
physical circuits are drawn generation" computers in contrast to
out, the different circuit the first and second generation of
components are placed in a vacuum tubes and bipolar junction
chip floorplan or on a board
transistors. Today, almost all microcomputers from the mid-1970s
computers are microcomputers. on.

During the 1960s, computer


processors were often constructed
out of small and medium-scale ICs
containing from tens to a few
hundred transistors. The integration
of a whole CPU onto a single chip
greatly reduced the cost of
processing power. From these
humble beginnings, continued
increases in microprocessor capacity
have rendered other forms of
computers almost completely
obsolete (see history of computing
hardware), with one or more
microprocessors used in everything
from the smallest embedded systems
and handheld devices to the largest
mainframes and supercomputers.

MICROPROCESSOR

A microprocessor incorporates most


or all of the functions of a computer's
central processing unit (CPU) on a
single integrated circuit (IC, or
microchip). The first
microprocessors emerged in the early
1970s and were used for electronic
calculators, using binary-coded
decimal (BCD) arithmetic on 4-bit
words. Other embedded uses of 4-bit
and 8-bit microprocessors, such as
terminals, printers, various kinds of
automation etc., followed soon after.
Affordable 8-bit microprocessors
with 16-bit addressing also led to the Difference between
first general-purpose microprocessor and
microcomputer
The Microprocessor and a consequence of Moore's Law,
Microcomputer which suggests that the number of
transistors that can be fitted onto a
The microprocessor is a digital chip doubles every two years.
integrated circuit device that can be Although originally calculated as a
programmed with a series of doubling every year, Moore later
instructions to perform specified refined the period to two years. It is
functions on data. When a often incorrectly quoted as a
microprocessor is connected to a doubling of transistors every 18
memory device and provided with a months.
means of transferring data to and from
the "outside world,"you have a In the late 1990s, and in the high-
microcomputer. In its basic form, a performance microprocessor
microprocessor consists of three segment, heat generation (TDP), due
elements : an arithmetic logic unit to switching losses, static current
(ALU), a register unit, and a control leakage, and other factors, emerged
unit. The basic elements of a as a leading developmental
microprocessor. Arithmetic logic S!Bi| constraint.
t»ia;:a~ unit •U'iiMfc: *xS;a (ALU)
Control unit Arithmetic Logic Unit At present there are many types and
sizes of computers available. These
The ALU performs arithmetic
computers are designed and
operations such as addition and
constructed based on digital and
subtraction and logic operations such Integrated Circuit (IC) fabrication
as NOT, AND, OR, and exclusive-OR. technology.
Register Unit During the execution of A digital computer is a machine that
a program (series of instructions), data can be used to solve problems for
are temporarily stored in any of the people by carrying out the task by
many registers that make up this unit. following the instructions given to it.
Control Unit This unit provides the
A sequence of instructions
describing how to perform a certain
timing and control signals for getting
task or job is called a program.
data into and out of the A personal computer (PC) uses its
microprocessor, for performing memory to store the instructions,
programmed instructions, and for all typically memory size is 32Mb of
other operations. Microprocessor RAM. PCs were used for word
Buses Typically a microprocessor has processing, spreadsheets, and
three buses for information transfer numerous highly interactive
internally and externally. These buses applications where larger computers
could
are the address bus, the data bus, and
the control b

MICROPROCESSOR
AND MICROCOMPUTER

Since the early 1970s, the increase in


capacity of microprocessors has been
tasks within its capability. Today's
microprocessor is designed to
understand and execute many binary
instructions.
Microprocessor is also called Central
Processing Unit (CPU) since it is the
functional centre of the computer
system and it is used to process data.
The first microprocessor was Intel
4004 (early 1970’s) used in
calculators. It was designed by Intel
Corporation and become known as
the 4-bit microprocessor. It was
quickly replaced by the 8-bit
microprocessor (Intel 8008), which
in turn superseded by the Intel 8080.
All types of computers, regardless of In the mid 1970’s, the Intel 8080 was
their size, type and use, consist of at widely used in control applications,
least the following devices:- and small computers also were
a. Microprocessor or Central designed using the 8080 as the CPU.
Processing Unit (CPU) Within a few years after the
b. Storage device (Memory) emergence of the Intel 8080 CPU;
c. Input/Output devices (I/O) the Motorola 6800, the Zilog Z80,
d. Instructions or programs and the Intel 8085
When these devices are connected microprocessors were developed as
and make to work together as a improvements over the 8080.
system, it is called a microcomputer The Zilog Z80 microprocessor came
system. into the market in middle of 1976,
The CPU, memory and I/O are called made up of 8200 transistors on a
hardware since they are physical single IC
devices, whereas the instructions or
programs (non-physical component)
is called software. Memory
Microprocessor or Central Memory is the term used to the
Processing Unit (CPU) various storage devices in which are
used to store the programs and data
A microprocessor is a multipurpose, for the microprocessor. These
programmable logic device (IC) that storage devices are made of
reads binary instructions from a semiconductor devices, and also
storage device called memory, known as Primary Storage Devices.
accepts binary data as input and
processes data according to those The semiconductor memory is of 2
instructions, and provide results as types that is Read Only Memory
output. (ROM) and Read Write Memory
A multipurpose device means it can (RWM). RWM is popularly known
be used to perform various as Random Access Memory
sophisticated computing tasks or (RAM) :-
functions, as well as simple tasks.
A programmable device means that it
can be instructed to perform given 1.Read Only Memory (ROM)
operations under the control of the
It is used to store programs and data CPU. Output devices are LEDs, 7-
that need not to be altered, i.e. segment display unit, speaker, CRT,
permanent storage. printer, digital speedometer, fuel
Programs and data stored in ROMs injectors, etc.
can only be read by the CPU. Special
equipment is used to write programs BASIC LAYOUT OF A
and data into the ROMs and is called MICROCOMPUTER SYSTEM
EPROM Programmer.
The monitor program is normally In order for the microprocessor to
stored in the ROM. Monitor program function as a programmable device,
is actually the ‘resource manager’ of it must work in a complete system
the microcomputer system, similar to comprising of three components :
DOS or Windows in a personal microprocessor, memory and
computer. An example of a EPROM input/output. This system is called
chip is the 2764 (8K X 8). microprocessor-based system or
microcomputer system. These three
components will work together or
2. Read Write Memory (RWM) interact with each other to perform a
given task.
It is used to store user programs and
data, and can be altered at any time,
i.e. temporary storage. The
information stored in RAM or RWM
can be easily read and altered by the
CPU. The contents (data or
programs) stored is lost if power
supply to this chip is turned off. An
example of a RWM chip is the
CMOS 6116 (2K X 8).

Input/Output

The input/output unit allows the


microprocessor to communicate with
the outside world, either to receive or Basic structure of a microprocessor-
to send data. Most of the time, the based system or microcomputer
input/output unit will also act as an system.
interface for the microprocessor, that
is to convert the data into a suitable
format for the microprocessor. Data
can be in the form of parallel (8 bit)
or serial format (single line).
Input devices are devices that input
data or send data to the computer.
Input devices are such as keyboard,
punched card readers, sensors,
switches, etc.
Output devices are devices that
output data or perform various
These instructions are then decoded
by the operation decoder (decode
cycle), which sends control signals to
the relevant parts of the
microcomputer system (via the
system busses) to cause them to
carry out the required operation
(execute cycle)
The timing with which these control
signals are generated is determined
by the clock. The number of T-states
tells the time taken for the CPU to
execute that particular instruction.
The major types of operations
controlled by the control signals
are :-
a. sending of data from one part of
the microcomputer to another (read
Block diagram showing the or write cycle)
connection details of a b. inputting and outputting of data
microcomputer system. The Input to/from the microcomputer (I/O read
and Output units may be or write cycle)
combined as one unit. c. Arithmetic and Logic calculations.
d. Halting of computer instructions.
Microprocessor or CPU e. Jumping to another instruction
during running (execution) of a
The CPU is the functional center of program.
the microcomputer system. Its To visualize these operations clearly,
internal construction can be broadly the timing diagrams below shows the
divided into information on the busses.
three sections :- Control section, Understanding of these timing
Arithmetic and Logic Unit and diagrams will lead to understanding
Register section. the various pins functions of the Z80,
thus enabling to design suitable
circuitry with memory and I/O
(memory and I/O decoding).
Control Section

The control section/unit is the part of


the microcomputer that controls its
basic operations. It is made up of the
control signal generating circuitry
(clock) and the command
(instruction) decoder.
The control section fetches pre-
programmed instructions from
memory (op-code fetch cycle) as
needed and temporarily stores them
in the command register (also known
as Instruction Register IR).
Z80 Op-code Fetch cycle Z8
0 memory read cycle
1. The op-code fetch cycle is 1. After the completion of op-code
completed in 4 clock periods or T- fetch cycle, the Z80 places the
states. This machine cycle is also address 2001H on the address bus
identified as the M1 cycle. and increment PC to the next address
2. At the beginning of T1, the control 2002H. Observe M1 is inactive.
signal M1 goes low and the contents 2. After the falling edge of T1 of the
of Program Counter (PC) ie. 2002H memory read cycle, the signals
is placed on the address bus. MREQ* and RD* are asserted. This
3. After the falling edge of T1, the indicate read operation for the
Z80 asserts MREQ* and RD* low. memory.
(ie. Read from memory) 3. After the leading edge of T3, the
4. The memory will identify the Z80 reads the data bus and store the
address on the address bus (ie byte (ie. 9FH) into one of its register.
2002H) and after the falling edge of 4. After the falling edge of T3, both
T2, places the data found in address signals MREQ* and RD* are
2002H (ie. 47H) on the data bus. inactive, and at the end of T3, the
5. At the leading edge of T3, the Z80 next machine cycle begins.
will read data on the data bus.
6. During T3 and T4, the instruction
decoder decodes and executes the
op-code. These are internal
operations and cannot be observed
on the data bus. Z80 memory read
cycle
Z80 memory write cycle The register section/array consists
1. At the beginning of the memory completely of circuitry used to
write cycle, Z80 places the address temporarily store data or program
on the address bus (ie. 2350H). At codes until they are sent to the ALU
the falling edge of T1, MREQ* goes or to the control section or to
low and the data from its register (ie. memory. The number of registers are
9FH) is placed on the data bus. different for any particular CPU, and
2. After allowing one T-state (after the more register a CPU have will
MREQ*) to stabilize the address, the result in easier programming tasks.
Z80 asserts the signal write (WR*), The registers in the Z80
which is used to write the data byte microprocessor are of 2 types :-
at the address shown on the address
bus. 1. General Purpose Registers
3. After the falling edge of T3, both
signals MREQ* and WR* become These registers are used to store data
inactive. temporarily, either 8-bit data or 16-
bit data according to their size.
Arithmetic and Logic Unit Registers are given names, normally
(ALU) an alphabet, such as A, B, C, D, E,
H, L and each capable of storing an 8
This section, under the control of bit data.
control section carries out the actual These registers can also work as a
processing of data, normally describe pair, such as BC, DE and HL and
as data manipulation. This consists capable of storing 16 bit data. For all
largely of arithmetic operations 8 bit operations, register A is used as
(ADDition, SUBtraction, the Accumulator, where the result
INCrementing, DECrementing etc) after an ALU operation will be
and logical operations (ANDing, stored automatically here. For 16 bit
ORing, XORing, NOTing etc). operations, register pair HL will be
The ALU carries out these operations used to stored the result.
in the following manner :-
1. stores data fetched from memory
or I/O in the registers
2. fetches this data as needed from
the registers and/or from relevant 2. Special Purpose
accumulators Registers
3. send this data either to its
arithmetic circuitry or logical
These registers have specific use to
circuitry, where necessary, where the
the human user and CPU. Normally
necessary arithmetic or logical
they are used to keep the address or
operations are carried out
status for the use of human or CPU.
4. send results of its arithmetic or
The types of registers are :- Flag
logical operation to relevant
Register (Register F), Index Register
accumulator, to the memory, or to
(IX, IY), Stack Pointer (SP) and
the I/O interfaces.
Program Counter (PC).
Register F is an 8 bit register used to
store the status of CPU, such as
Register Section carry, zero, parity, overflow etc. The
others are 16 bit registers which is
used to store memory addresses.
The Index registers IX and IY are 16
bit wide registers, used to store 16 bit The data bus is 'bi-directional', on
address, and is used in index which data or instruction codes are
addressing mode types of transferred into the microprocessor
instructions. Registers IX and IY is or on which the result of an operation
normally used as pointers, as it or computation is sent out from the
points to memory locations, and microprocessor to the memory or
normally used with a displacement d. input/
The Stack Pointer (PC) is a 16 bit output. Depending on the particular
register, used to store 16 bit address, microprocessor, the data bus can
and is used in special data transfer handle 8 bit or 16 bit data.
instructions (register to memory and
memory to register transfer) by 3. Control Bus
special instructions PUSH rr and
POP rr, where rr are register pair. The control bus is used by the
The Program Counter (PC) is a 16 bit microprocessor to send out or receive
register, used to store the next timing and control signals in order to
address of the operation code to be coordinate and regulate its operation
fetched by the CPU. Not much use in and to communicate with other
programming, but as an indicator to devices, i.e. memory or input/output.
user only. The lines used to control memory
and I/O devices are MEMRQ*,
System Bus IORQ*, RD* and WR*. Others are
general control signals to handle
The three components of the special external requests (interrupts),
microcomputer system is connected special I/O devices (DMA) and
by three busses, also known as special kind of memory (DRAM).
system bus. These busses is used to
transfer information (data) internally
and externally to the microprocessor.

1.Address Bus

The address bus is 'unidirectional', Z80 INTERNAL


over which the microprocessor sends ARCHITECTURE
an address code to the memory or
input/output. The size (width) of the The internal architecture of Z80
address bus is specified by the shows a more detailed picture of
number of bits it can handle. what is inside the CPU. This
The more bits there are in the address processor has an instruction register
bus, the more memory locations a (IR), an instruction decoder and and
microprocessor can access. A 16 bit control logic circuitry in its control
address bus is capable of addressing unit; an ALU, and a register array
65,536 (64K) addresses. (register set or programmer’s model).
Registers W and Z are only used for
internal operations in the processor,
like jump to a new addresses. This is
so since Z80 can only transfer 8-bits
of data at a time, so to transfer a 16-

2. Data Bus
bit address, it will first store it in reg. an expensive computer is built-in the
WZ. device, but because the computer has
enabled us to utilize a technique
which may still require expensive
testing equipment. It would have
been prohibitively expensive to even
consider the design of the instrument
without the advent of the
microcomputer. Microcomputers and
microprocessors have become
"catchwords" of instrument
designers, users and salesmen. Often
people consider that a
microcomputer-based device is better
than a comparable one without such
a device built into it. This is not
necessarily the case. Many hospitals
and laboratories feel the prestige of
owning expensive computer-based
equipment. Instead of pooling
resources, many local hospitals will
purchase their own equipment, thus
forcing them to amortize the
instrument's cost over fewer paitent
tests.
Devices such as "brain scanners" and
"sonic scanners" are typical
examples.
We must always remember that a
computer or other instrument should
never be used to take the place of
good, human judgement. Too often
we are willing to accept an answer as
infallible or exact because it is output
by a computer. Computers are prone
to errors due to faulty circuits, bad
input data or poor programming.
All are possible and when results do
not match what seems reasonable,
further checking will be necessary.
CONCLUSION While we should be pleased that
computers are taking over many
Microcomputers and other advances routine and mundane tasks, we must
in hardware such as semiconductor always keep in mind that they are
sensors and analog/digital converters only a tool and that we must bear the
have made a wide variety of simple, responsibility for their actions.
intelligent instruments available to us
to simplify patient care and medical
testing. Often, however, the cost of a
new instrument is high, not because
ACKNOWLEDGEMEN
T

I take immense pleasure in thanking


Mr MAHINDER SINGH permitted
me to carry out this term paper
work.

.
Importantly, I would like to express
my heartfelt thanks to my beloved
parents for their blessings, my
friends/classmates for their help and
wishes for the successful completion
of this term paper

SHAHWAZ
AHMAD

REFERENCES:-

http://en.wikipedia.org/wiki/Comput
er
en.wikipedia.org/wiki/Microcompute
r
en.wikipedia.org/wiki/Microprocesso
r
www.angelfire.com/ultra/muzir/micr
op/microcomputer.pdf
http://www.faqs.org/
http://books.google.co.in/books
http://www.ncbi.nlm.nih.gov

You might also like