Introduction To Microprocessor and Computer Organization
Introduction To Microprocessor and Computer Organization
Lecture: Introduction
Dr. Vishal Kumar Gaur
Books
EE-16102: Microprocessor & Computer Organization
Text Books:
1. Ramesh S. Goankar, “Microprocessor Architecture, Programming and Applications with 8085”, 5th Edition,
Prentice Hall.
2. SSP Rao, “Microprocessors and Interfacing”, 3rd edition, McGraw Hill India Education Private Ltd.
2
Overview of Microprocessor
The word “Microprocessor” comes from the combination of micro and processor.
Processor means a device that processes whatever. In this context, processor means a
device that processes numbers, specifically binary numbers, 0’s and 1’s.
Process means perform certain operations on numbers that depend on the microprocessor
application.
3
Overview of Microprocessor
4
Microprocessor and Basic Computer or Programmable Machine
Programmable: Perform different set operation on the data depending on the sequence of instructions
supplied by the programmer
Clock Driven: Whole task is divided into basic operations, are divided into precise system clock periods
Register-based: Storage element
Electronic device: Fabricated on a chip
5
Microprocessor and Basic Computer or Programmable Machine
Definition: The microprocessor is a programmable device that takes input as numbers, performs
on them arithmetic or logical operations according to the program stored in memory and then
produces other numbers as a result.
6
Microprocessor and Basic Computer or Programmable Machine
CPU Input
Output
Figure: Basic model of computer
7
Microprocessor and Basic Computer or Programmable Machine
8
Components of Microcomputer or Programmable Machine
9
Components of Computer or Programmable Machine
10
Components of Computer or Programmable Machine
11
Components of Computer or Programmable Machine
1A. CPU: In all, the CPU has the following basic functions:
It fetches an instructions word stored in memory.
It decodes the instruction to determine what the instruction is telling it to do.
It executes the instruction. Executing the instruction may include some of the following major
tasks:
i. Transfer of data from one register to another register in the CPU itself.
ii. Transfer of data between a CPU register & specified memory location or input/output device.
iii. Performing arithmetic and logical operations on data from a specific memory location or a designated CPU register.
iv. Directing the CPU to change the sequence of fetching instructions, if processing the data created a specific condition.
It looks for control signal such as interrupts and provides appropriate responses.
After processing the data as per the instruction executed, stores the result in data memory or send
it to an output device.
12
Components of Computer or Programmable Machine
13
Components of Computer or Programmable Machine
2. Memory:
Program Memory and Data Memory
The basic task of a computer system is to ensure that its CPU executes the desired instructions
sequence i.e., the program properly.
The instructions sequence is stored in the program memory.
In typical processor based system, the program to be executed is fixed one which does not change.
Therefore these programmes are stored in non-volatile memory such as ROM.
14
Components of Computer or Programmable Machine
2. Memory:
Program Memory and Data Memory
A computer/CPU/micorprocessor works according to the algorithm given by the instruction in the
program in the program memory.
These instructions may require intermediate results to be stored.
The functional block used for this storage is the data memory.
Microprocessors also have a small amount of memory in the form of internal registers which can also
be used if available for such storage. External data memory is needed if the storage requirement is
more.
15
Components of Computer or Programmable Machine
3. Input/Output Ports:
The input & output ports provide the capability to communicate with the outside world.
The user can enter instruction (i.e. program) and data in memory through input devices such as
keyboard, or simple switches, etc.
Computers are also used to measure and control physical quantities like temperature, pressure, speed
etc.
For these purposes, transducers are used to convent physical quantitise into proportional electrical
signals. A/D converters are used to convert electrical signals into digital signals for input.
The results are sent to the output devices e.g. LED, CRT, D/A converters, printers etc.
These I/O devices are called peripherals.
16
Bussed Architecture of Microprocessor
Bus: This is group of parallel lines that connect two or more devices.
Computer contains three buses which carry all the address, data, and control information
involved in program execution.
These buses connect the microprocessor to other elements- memory and I/O devices so that
transfer of information between the microprocessor and any of the elements can take place.
17
Bussed Architecture of Microprocessor
18
Bussed Architecture of Microprocessor
19
Bussed Architecture of Microprocessor
3. Control Bus:
The control bus is used to send out or receive timing and control signals in order to coordinate and regulate its operation
and to communicate with other devices.
Some of the signals of the control bus are issued by the processor and some of the signals are
received by the processor Therefore, the control bus is called bidirectional control bus (BCB
20
Computer Language
Each machine has its own set of instructions based on the design of its microprocessor.
To communicate with the computer one must give instruction in binary language or machine
language the form in which it is stored in memory, i.e, as patterns of 1s & 0s.
Since it is difficult for most users to write programs in machine language, computers
manufactured have developed English-like words to represent the binary instructions of a
microprocessor. e.g. ADD, SUB or JMP etc.
Users can write programs, called assembly language programs (ALP), using these words called
mnemonics.
Special programs are available for each type of microprocessor that converts their assembly
language programs to the equivalent machine codes. These programs are called assemblers.
21
Computer Language
22
Computer Language
Data Size or Word
Nibble 4 bit
Or Small
Word
Byte 8 bit
Medium 16 bit
Word
23
Computer Language
24
Computer Language
Assembly Language a medium of communication with a computer in which programs are written in
mnemonics An assembly language is specific to a given computer.
Assembler a computer program that translates an assembly language program from mnemonics to the
binary machine code of a computer.
Manual Assembly a procedure of looking up the machine codes manually from the instruction set of a
computer and entering those into the computer through a key board.
25
Thank You
26