Microprocessors Architecture Notes
Microprocessors Architecture Notes
Microprocessor is an electronic device, which can perform basic arithmetic/logical functions such as
and, or, add, subtract upon given input signals. The word 'micro' is used to indicate the physical size
of the components involved. Microprocessor is a VLSI (Very Large Scale Integration) device that
contains thousands of gates in a single chip. It constitutes the heart of a microcomputer and it fetches
microinstructions from memory, decodes the instructions into a series of actions, and carries out these
actions in a sequence of steps.
Microcomputer consists of a microprocessor along with memory and input output ports for
connecting peripherals
Some applications of microprocessors
Measuring instruments. Examples multimeter
Musical instruments. Pianos, electric guitar
Household equipments like microwaves, ovens
Military equipments such as jets, missiles
Transport industry, banks, speed control of motors
Microprocessor architecture
The term architecture in relation to microprocessor refers to the internal design and organization of
the device
a) Carry Flag
Generated when the results of arithmetic operation results in a carry (or borrow) out of the
high order bit the c flag is set to 1 otherwise it remains reset to 0.
b) Parity flag
Parity represents the number of 1s in the accumulator content. Parity flag is set and reset if
the result of an ALU operation has even parity and reset if the result has ODD parity.
c) Auxiliary Carry Flag (Ac)
This flag is used in BCD number system (0-9). If after any arithmetic or logical operation
D(3) generates any carry and passes on to B(4) this flag becomes set i.e. 1, otherwise it
becomes reset i.e. 0. This is the only flag register which is not accessible by the
programmer1-carry out from bit 3 on addition or borrow into bit 3 on subtraction 0-otherwise
d) Zero flag (Z)
If the result of an instruction has a zero value, the Z flag is set to 1 otherwise it is reset to zero
e) Sign flag
After any operation if the MSB (B(7)) of the result is 1, it indicates the number is negative
and the sign flag becomes set, i.e. 1. If the MSB is 0, it indicates the number is positive and
the sign flag becomes reset i.e. 0.
Pin diagram 8085 microprocessor
A8 - A15 (Output):
These are the Address Bus and used for most significant 8 bits of the memory address or the 8 bits of
the I/0 address,
AD0 - AD7 (Input / Output)
Multiplexed Address/Data Bus it serves dual purpose. They are used for Least significant 8 bits of the
memory address (or I/0 address) during the first clock cycle of a machine cycle. Then it becomes the
data bus during the second and third clock cycles.
ALE (Output):
Address Latch Enable signal it goes high during the first clock cycle of a machine cycle and enables
the lower 8-bit address to get latched either into the memory or external latch So when pulse goes
high means ALE=1, it makes address bus enable and when ALE=0, means low pulse makes data bus
enable.
S0, S1 (Output)
̅
𝑰𝑶/𝑴 S1 S2 Action
0 0 0 Halt
0 0 1 Memory Write
0 1 0 Memory Read
0 1 1 Fetch
1 0 1 I/O write
1 1 0 I/O read
1 1 1 Interrupt Acknowledge
Memory read
Memory write