Professional Documents
Culture Documents
Module–I: Introduction
• Between these processes, the register stores the temporarily data and
ALU performs the computing functions.
Features of a Microprocessor
• Cost-effective − The microprocessor chips are available at low prices and results its
low cost.
• Versatility − The microprocessors are versatile as we can use the same chip in a
number of applications by configuring the software program.
• Using RISC processors, each instruction requires only one clock cycle to
execute results in uniform execution time.
• This reduces the efficiency as there are more lines of code, hence more RAM is
needed to store the instructions.
• The compiler also has to work more to convert high-level language instructions
into machine code.
Example of RISC Processor
• The compiler has to do very little work to translate a high-level language into
assembly level language/machine code because the length of the code is
relatively short, so very little RAM is required to store the instructions.
Some of the CISC Processors are −
• IBM 370/168
• VAX 11/780
• Intel 80486
Special Processors
• These are the processors which are designed for some special purposes. Few of the
special processors are briefly discussed −
Coprocessor
• Example
• Microprocessor : silicon chip which includes ALU, register circuits & control circuits
• Microcontroller : silicon chip which includes microprocessor, memory & I/O in a single
package.
Evolution of Microprocessors
• It was a processor on a single chip. It could perform simple arithmetic and logical
operations such as addition, subtraction, Boolean OR and Boolean AND.
• It had a control unit capable of performing control functions like fetching an instruction
from storage memory, decoding it, and then generating control pulses to execute it.
Second Generation (8 - bit Microprocessor)
• The second generation microprocessors were introduced in 1973 again by Intel.
• It was a first 8 - bit microprocessor which could perform arithmetic and logic
operations on 8-bit words.
• It was Intel 8008, and another improved version was Intel 8088.
80386 1985 32-bit 4GB real, 64TB 132 14X14 PGA 20-33 MHz
virtual
80486 1989 32-bit 4GB real, 64TB 168 17X17 PGA 25-100 MHz
virtual
Pentium 1993 32-bit 4GB real,32-bit 237 PGA 60-200
address,64-bit data
bus
Pentium Pro 1995 32-bit 64GB real, 36-bit 387 PGA 150-200 MHz
address bus
Pentium II 1997 32-bit - - 233-400 MHz
Pentium III 1999 32-bit 64GB 370 PGA 600-1.3 MHz
Pentium 4 2000 32-bit 64GB 423 PGA 600-1.3 GHz
Itanium 2001 64-bit 64 address lines 423 PGA 733 MHz-1.3 GHz
Basic Terms used in Microprocessor
• Instruction Set - The group of commands that the microprocessor can understand is
called Instruction set. It is an interface between hardware and software.
• Data Types - The microprocessor supports multiple data type formats like binary,
ASCII, signed and unsigned numbers.
• Clock Speed - It is the number of operations per second the processor can
perform. It can be expressed in megahertz (MHz) or gigahertz (GHz). It is also
called the Clock Rate.
• Word Length - The number of bits the processor can process at a time is called
the word length of the processor. 8-bit Microprocessor may process 8 -bit data at a
time. The range of word length is from 4 bits to 64 bits depending upon the type
of the microcomputer.
Working of Microprocessor
• Initially, the instructions are stored in the storage memory of the computer in
sequential order.
• The microprocessor fetches those instructions from the stored area (memory),
then decodes it and executes those instructions till STOP instruction is met.
• Then, it sends the result in binary form to the output port. Between these
processes, the register stores the temporary data and ALU (Arithmetic and Logic
Unit) performs the computing functions.
Features of Microprocessor
• High Speed - Due to the technology involved in it, the microprocessor can work
at very high speed. It can execute millions of instructions per second.
• Versatile - The same chip can be used for several applications, therefore,
microprocessors are versatile.
• Low Power Consumption - Microprocessors are using metal oxide
semiconductor technology, which consumes less power.
• Portable - Due to the small size and low power consumption microprocessors are
portable.
Types of Microprocessors
Vector Processors
• A vector processor adds all the elements of vector A and Vector B using a single vector
instruction with hardware approach.
Examples of vector processors are:
• DEC's VAX 9000,
• IBM 390/VF,
• CRAY Research Y-MP family,
• Hitachi's S-810/20, etc
Array Processors or SIMD Processors
• An array processor contains multiple numbers of ALUs. Each ALU is provided with the
local memory.
• The ALU together with the local memory is called a Processing Element (PE).
• Thus using a single instruction, the same operation can be performed on an array of
data which makes it suitable for vector computations.
Basic Microprocessor Unit
Memory
• Memory stores information such as instructions and data in binary format (0 and 1). It
provides this information to the microprocessor whenever it is needed.
• used to store information supplied by the user. Such as programs and data.
Execution
To execute a program:
• the user enters its instructions in binary format into the memory.
• To use the right names for the cycles: – The microprocessor fetches each
instruction, – decodes it, – Then executes it. This sequence is continued until all
instructions are performed/
Machine Language
• The number of bits that form the “word” of a microprocessor is fixed for that
particular processor. – These bits define a maximum number of combinations.
• The 8085 uses a total of 246 bit patterns to form its instruction set.
• These 246 patterns represent only 74 instructions. • The reason for the difference is
that some (actually most) instructions have multiple different formats.
• Because it is very difficult to enter the bit patterns correctly, they are usually entered
in hexadecimal instead of binary.
• For example, the combination 0011 1100 which translates into “increment the number
in the register called the accumulator”, is usually entered as 3C.
Assembly Language
• Entering the instructions using hexadecimal is quite easier than entering the binary
combinations. – However, it still is difficult to understand what a program written in
hexadecimal does
• These codes are called “mnemonics”. – The mnemonic for each instruction is usually a group of
letters that suggest the operation performed.
• Using the same example from before, – 00111100 translates to 3C in hexadecimal (OPCODE) –
Its mnemonic is: “INR A”. – INR stands for “increment register” and A is short for accumulator.
• Another example is: 1000 0000, – Which translates to 80 in hexadecimal. – Its mnemonic is
“ADD B”. – “Add register B to the accumulator and keep the result in the accumulator”.
• Another example is: 1000 0000, – Which translates to 80 in hexadecimal. – Its mnemonic
is “ADD B”. – “Add register B to the accumulator and keep the result in the
accumulator”.
• It is important to remember that a machine language and its associated assembly language
are completely machine dependent.
• In other words, they are not transferable from one microprocessor to a different one.
• For example, Motorolla has an 8-bit microprocessor called the 6800. – The 8085 machine
language is very different from that of the 6800.
• So is the assembly language. A program written for the 8085 cannot be executed on the
6800 and vice versa
How does assembly language get translated into machine language?
Digits
• Before numbers are converted from one number base to another, the digits of a number system must
be under
• For example, a base 8 (octal) number contains 8 digits: 0 through 7; a base 2 (binary) number
contains 2 digits: 0 and 1.
• If the base of a number exceeds 10, the additional digits use the letters of the alphabet, beginning
with an A.
• For example, a base 12 number contains 10 digits: 0 through 9, followed by A for
10 and B for 11.
• Note that a base 10 number does contain a 10 digit, just as a base 8 number does
not contain an 8 digit.
• The most common numbering systems used with computers are decimal, binary,
and hexadecimal (base 16).
Decimal Number System
• Decimal number system is a base 10 number system having 10
digits from 0 to 9.
• This means that the value of digits will depend on its position.
Example
• Say we have three numbers – 734, 971 and 207. The value of 7 in all three
numbers is different−
• The number system having just these two digits – 0 and 1 – is called binary
number system.
• Each binary digit is also called a bit.
• Binary number system is also positional value system, where each digit
has a value expressed in powers of 2, as displayed here.
• = 16 + 8 + 0 + 2 + 0
• = 2610
• 128 64 32 16 8 4 2 1
• 1 byte (B) = 8 bits
• 1 Kilobytes (KB) = 1024 bytes
• 1 Megabyte (MB) = 1024 KB
• 1 Gigabyte (GB) = 1024 MB
• 1 Terabyte (TB) = 1024 GB
• 1 Exabyte (EB) = 1024 TB
• 1 Zettabyte = 1024 EB
• 1 Yottabyte (YB) = 1024 ZB
Octal Number System
• = 448 + 16 + 6
• = 47010
Hexadecimal Number System
• Hexadecimal number system has 16 symbols – 0 to 9 and A
to F where A is equal to 10, B is equal to 11 and so on till F.
• The complete set of characters or symbols are called alphanumeric codes. The complete
alphanumeric code typically includes −
• 26 upper case letters
• 26 lower case letters
• 10 digits
• 7 punctuation marks
• 20 to 40 special characters
• Now a computer understands only numeric values, whatever
the number system used.
• So all characters must have a numeric equivalent called the
alphanumeric code.
• The most widely used alphanumeric code is American Standard
Code for Information Interchange (ASCII).
• ASCII is a 7-bit code that has 128 (27) possible codes.
ISCII
• ISCII stands for Indian Script Code for Information
Interchange.
• IISCII was developed to support Indian languages on computer.
• Language supported by IISCI include Devanagari, Tamil,
Bangla, Gujarati, Gurmukhi, Tamil, Telugu, etc.
• IISCI is mostly used by government departments and before it
could catch on, a new universal encoding standard
called Unicode was introduced.
Unicode
• Unicode is an international coding system designed to be used with
different language scripts.
• Earlier, each script had its own encoding system, which could conflict with
each other.
4310 = 1010112
Decimal to Octal
47310 = 7318
Decimal to Hexadecimal
42310 = 1A716