Introduction To Microprocessor
Introduction To Microprocessor
Uses of Microprocessor
In this growing world, none of the sectors are or will be away from the uses of microprocessor.
Some of the fields are listed below:
PC, Machines, Calculator, Car, Bike, Bus etc
Communications Devices like Switch, Routers, Hub, Gateways, Repeater etc
Industrial machines like Robots.
Home Appliances like Bell, Fridge, A.C., Micro-oven etc.
Test Instruments like CRO, Oscilloscope
Computers like Desktops, Laptop, Servers, PDAs, Tablet PC
And more……………
Applications of Microprocessor
The microprocessor has created a significant impact in its various fields. The availability of low
cost, low power and small weight, computing capability allows user to use it in different applications.
Nowadays, a microprocessor based systems are used in automatic testing produ ct, speed control of
motors, traffic light control, light control of furnaces, moving message display etc.
Since microprocessor Applications are unlimited similar like uses. But some vital applications
of microprocessor are illustrated below in following three grouped categories:
1. As a Reprogrammable Systems (General Purpose MPs).
2. As an Embedded systems(Microcontrollers) and
3. As a Special Purpose MPs.
1. Reprogrammable Systems
In reprogrammable systems, the microprocessor is used for computing and data processing. These
systems include General Purpose Microprocessors (GPMPs) capable of handling large data, mass
storage devices (such as disks and CD-ROMs) and peripherals such as keyboard, mouse, monitors,
printer etc.
Desktops, Laptops, PDAs, Tablet PCs and Servers etc are the best typical illustration of this type.
2. Embedded Systems
In embedded systems, the microprocessor is a part of final product and is not available for
reprogramming to end users.
The Embedded Systems are combination of hardware and software sections designed for specific
purpose/Application. It is also called Microcontroller (MC). The Block Diagram of MC is shown
below.
MPU
Memory I/O
Peripheral Devices
Timer
A/D Converter
Serial I/O
Microcontroller (MC) may be called a CPU on chip, since it has basic features of microprocessor
with internal ROM, RAM, Parallel and serial ports, timer, A/D Converter within single chip or we
can say microprocessor with memory, I/O ports and peripheral devices is called as microcontroller.
This is widely used in washing machines, VCD player, microwave oven, and robotics or in
industries and more later on.
Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.
A 8- bit microcontroller means it can read, write and process 8 bit data.
Ex.8051 microcontroller, basically 8 bit specifies the size of data bus. The 8 bit microcontroller
means 8 bit data can travel on the data bus or we can read, write process 8 bit data.
Microcontrollers are used in following sections:
Used in Consumer Electronics:- Toys, Cameras. Camcorders, Multimeter, Robots etc
Used as Consumers Products:-Washing Machines, Micro-Ovan, Bell, Digital Watch etc
Used in Instrumentations:-Oscilloscopes, ECGs, etc
Used in Communication Systems:- Switch, Router Gateway ,Hub , Repeater etc
Used in Office Equipments:- Fax Machines, Printers, Scanners etc.
Used in Emerging Multimedia Applications: Projectors, Cell Phone, PDAs, Answering
Machines, Cordless Phone etc.
Microprocessor
Input Output
Device Device
Memory
Here, the microprocessor based system holds the following discrete sub systems:
1. Input Device,
2. MP (Microprocessor),
3. Memory, and
4. Output Device.
1. Input Device:-
The devices through which binary information (data or instructions) are fed from outside world
into the microprocessor are called Input Devices.
Examples: Keyboard, Switches, A/D Converters, Mouse, Scanner, MIC, etc.
2. MP (Microprocessor):-
It acts as the brain of the microprocessor based system (Ex computer).
It performs arithmetical and logical functions and has decision making capacity.
Each microprocessor has a fixed set of instructions.
Microprocessors can be classified on the basis of their bits processed like 8bit MP, 16bit MP.
A 8- bit microprocessors means it can read, write and process 8 bit data.
Examples:
Intel processors like: 8085, 8086,. 80486,……, I3,I5 , I7 etc.
Texas Instruments (TI) processors are TMS 370, TMS 1000,TMS 7000.
Motorola Processors like M68000, M68030.Power PC 601, PowerPC G5.
Digital Equipment Corporation (DEC) Processors like V-11, Alpha 21064, Alpha 21264.
It includes the following Sub function units: ALU, Register Arrays and Control Units
ALU
CPU Register
Array
Control
Unit
4. Output Device: -
o The Devices through which the final output (data and instruction) of the microprocessor is transferred
or displayed to the outside world is called Output Device.
o Examples: LEDs, Seven-Segment LED (Light Emitting Diode), CRTs, Printer, X-Y Plotter, Magnetic
Tapes, Speaker, Digital to Analog (D/A) Converter etc.
1. Microprocessor:
The microprocessor is a clock driven semiconductor device consists of electronic logic circuits
manufactured by LSI (Large Scale Integration) or VLSI (Very Large Scale Integration) technique.
MP is capable of performing various computing functions and making decision to change the
sequence of program execution.
The microprocessor is in many ways similar to CPU , but includes all logic circuitry, including the control
unit, on one single chip.
Microprocessor
The microprocessor can be divided into three segments for the sake of clarity, as shown in fig 1 above.
a. ALU
b. Register Array
c. Control Unit.
2. 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.
Usually, there is a memory “sub-system” in a microprocessor-based system.
This sub-system includes:
a. The registers inside the microprocessor used to hold data/result temporarily.
b. Read Only Memory (ROM) ; used to store information that does not change.
c. Random Access Memory (RAM) (also known as Read/Write Memory); used to
store information supplied by the user Such as programs and data.
d. The memory map is a picture representation of the address range and shows where the
different memory chips are located within the address range.
To execute a program: the user enters its instructions in binary format into the memory. The
microprocessor then reads these instructions and whatever data is needed from memory, executes
the instructions and places the results either in memory or produces it on an output device.
3. Output Device:
o The Devices through which the final output (data and instruction) of the microprocessor is transferred
or displayed to the outside world is called Output Device.
o Examples: LEDs, Seven-Segment LED (Light Emitting Diode), CRTs, Printer, X-Y Plotter, Speaker,
Digital to Analog (D/A) Converter etc.
4. System Bus:
o The System bus is a communication path n\between the microprocessor and peripherals
o It is nothing but a group of wires to carry binary bits.
All peripherals (and memory) share the same bus; however, the microprocessor communicates with
only peripherals at a time. The timing is provided by the control unit of the microprocessor.
Compiled By Er.Jeet Narayan Yadav Page 8
Unit 1 Introduction of Microprocessor
The system bus connects the CPU with the main memory and, in some systems, with the level 2 (L2) cache. Other
buses, such as the IO buses, branch off from the system bus to provide a communication channel between the CPU
and the other peripherals.
The system bus combines the functions of the three main buses, which are as follows:
The control bus carries the control, timing and coordination signals to manage the various functions across
the system.
The address bus is used to specify memory locations for the data being transferred. It is unidirectional.
The data bus, which is a bidirectional path, carries the actual data between the processor, the memory and
the peripherals.
The design of the system bus varies from system to system and can be specific to a particular computer design or
may be based on an industry standard.
System bus characteristics are dependent on the needs of the processor, the speed, and the word length of the data
and instructions. The size of a bus, also known as its width, determines how much data can be transferred at a time
and indicates the number of available wires. A 32-bit bus, for example, refers to 32 parallel wires or connectors that
can simultaneously transmit 32 bits.
The design and dimensions of the system bus are based on the specific processor technology of the motherboard.
This, in effect, affects the speed of the motherboard, with faster system buses requiring that the other components on
the system be equally fast for the best performance.
Result
Processing
Data Bus
Unit Operands
Status Opcode
Instructions/Data
Control
Data / Program
Unit Memory
Since the program is stored in the memory. So, the CPU fetches an instruction from the memory at a time and executes it.
Thus, the instructions are executed sequentially which is a slow process.
Neumann m/c are called Control flow computer because instruction are executed sequentially as controlled by a program
Counter.
Such a computer implements a universal Turing machine, and the common "referential model" of specifying sequential
architectures.
One shared memory for instructions (program) and data with one data bus and one address bus between processor and
memory. Instructions and data have to be fetched in sequential order (known
as the Von Neumann Bottleneck), limiting the operation bandwidth. Its design is simpler than that of the Harvard
architecture. It is mostly used to interface to external memory.