Microprocessor Lec No.1
Microprocessor Lec No.1
Microprocessor Lec No.1
Lecture #1
Lecture outline
Block diagram of a computer system
Basic components of a computer system using block diagrams:
Cpu
Memory
Input and output unit
Address bus
6
2. Memory
• physical devices used to store data or programs (sequences of
instructions) on a temporary or permanent basis for use in an
electronic digital computer.
• Computer main memory comes in two principal varieties:
random-access memory (RAM) and read-only memory (ROM).
• RAM can be read and written to anytime the CPU commands it, but
ROM is pre-loaded with data and software that never changes, so the
CPU can only read from it.
• ROM is typically used to store the computer's initial start-up
instructions.
• In general, the contents of RAM are erased when the power to the
computer is turned off, but ROM retains its data indefinitely.
• In a PC, the ROM contains a specialized program called the BIOS that
orchestrates loading the computer's operating system from the hard
disk drive into RAM whenever the computer is turned on .
7
3. I/O Unit
8
Evolution of Microprocessor
9
DATA SIZE
Nibble 4 bit
Byte 8 bit
Word 16 bit
10
Internal structure and basic operation of
microprocessor
Address bus
ALU Register
Section
Data bus
Control unit
Control bus
13
Register Section
• Register is a temporary storage area to store instructions, data and
address of data.
• A number of registers are normally included inside the
microprocessor.
• The most common registers found in a microprocessor are
accumulator , program counter , stack pointer , instruction register.
Types of Registers:-
Z Zero flag Indicates that the result of a mathematical or logical operation was zero.
C Carry flag Indicates that the result of an operation produced an answer greater than the number of available bits. (This flag may
also be set before a mathematical operation as an extra operand to certain instructions, e.g. "add with carry".)
Indicates that the result of a mathematical operation is negative. In some processors, the N and S flags have different
N Negative/ Sign flag meanings: the S flag indicates whether a subtraction or addition has taken place, whereas the N flag indicates whether
the last operation result is positive or negative.
O Overflow Flag Indicates that the result of an operation has overflowed according to the CPU's word representation, similar to the carry
flag but for signed operations.
17
Interface section
• The input and output lines through which microprocessor
communicate with the outside the world is called interface section
• Data bus
• Address bus
• Control bus
Bus system
• a subsystem that transfers data between
computer components inside a computer or
between computers.
19
Bus system connection
20
Data bus
• The data bus is 'bi-directional'
• data or instruction codes from memory or
input/output.are transferred into the microprocessor
• the result of an operation or computation is sent out
from the microprocessor to the memory or
input/output.
• Depending on the particular microprocessor, the
data bus can handle 8 bit or 16 bit data.
21
Address bus
• The address bus is 'unidirectional', over which
the microprocessor sends an address code to the
memory or input/output.
• The size (width) of the address bus is specified
by the number of bits it can handle.
• The more bits there are in the address bus, the
more memory locations a microprocessor can
access.
• A 16 bit address bus is capable of addressing
65,536 (64K) addresses.
22
Control bus
• The control bus is used by the microprocessor to
send out or receive timing and control signals in
order to coordinate and regulate its operation
and to communicate with other devices, i.e.
memory or input/output.
23
Micro processor clock
• Also called clock rate, the speed at which a
microprocessor executes instructions. Every
computer contains an internal clock that regulates
the rate at which instructions are executed and
synchronizes all the various computer components.
• The CPU requires a fixed number of clock ticks (or
clock cycles) to execute each instruction. The faster
the clock, the more instructions the CPU can
execute per second. Clock speeds are expressed in
megahertz (MHz) or gigahertz ((GHz).
• Some microprocessors are superscalar, which
means that they can execute more than one
instruction per clock cycle.
24
8086
The 8086 is a 16-bit microprocessor
chip designed by Intel, which gave
rise to the x86 architecture;
development work on the 8086
design started in the spring of 1976
and the chip was introduced to the
market in the summer of 1978.
The Intel 8088, released in 1979,
was a slightly modified chip with an
external 8-bit data bus (allowing the
use of cheaper and fewer supporting
logic chips and is notable as the
processor used in the original IBM
PC.
25
8085
• The Intel 8085 is an 8-bit An Intel 8085AH processor.
microprocessor introduced by
From 1977 to
Intel in 1977. Produced
1990s
26