Unit 1 Microprocessor A
Unit 1 Microprocessor A
and
Computer Architecture
Prepared by:
Er. Binod Kumar Rajbhar
BE-Computer
ME-Computer
Prepared by
Er. Binod Rajbhar
4)Program counter
It is a 16-bit register used to store the memory address location of the next instruction to be executed.
Microprocessor increments the program whenever an instruction is being executed, so that the
program counter points to the memory address of the next instruction that is going to be executed.
7/30/2024 Er. Binod Kumar Rajbhar 21
1) Stack pointer
It is also a 16-bit register works like stack, which is always
incremented/decremented by 2 during push & pop operations.
2) Temporary register
It is an 8-bit register, which holds the temporary data of arithmetic and logical
operations.
3) Flag register
It is an 8-bit register having five 1-bit flip-flops, which holds either 0 or 1
depending upon the result stored in the accumulator.
These are the set of 5 flip-flops –
- Sign (S)
- Zero (Z)
- Auxiliary Carry (AC)
- Parity (P)
- Carry (C)
D7 D6 D5 D4 D3 D2 D1 D0
7/30/2024
S Z AC
Er. Binod Kumar Rajbhar
P CY 22
1) Instruction register and decoder
It is an 8-bit register. When an instruction is fetched from memory then it is
stored in the Instruction register. Instruction decoder decodes the information
present in the Instruction register.
3) Interrupt control
As the name suggests it controls the interrupts during a process. When a
microprocessor is executing a main program and whenever an interrupt occurs,
the microprocessor shifts the control from the main program to process the incoming
request. After the request is completed, the control goes back to the main
program.
There are 5 interrupt signals in 8085 microprocessor: INTR, RST 7.5, RST 6.5, RST 5.5,
7/30/2024 TRAP. When microprocessor receivesEr. Binodinterrupt
Kumar Rajbharsignals, it sends an acknowledgement 23
1) Serial Input/output control
It controls the serial data communication by using these two instructions: SID
(Serial input data) and SOD (Serial output data).
2) Data bus
AD7-AD0, it carries the least significant 8-bit address and data bus.
a) RD − This signal indicates that the selected IO or memory device is to be read and
is ready for accepting data available on the data bus.
b) WR − This signal indicates that the data on the data bus is to be written into a
selected memory or IO location.
7/30/2024 Er. Binod Kumar Rajbhar 26
a) ALE − It is a positive going pulse generated when a new operation is started by the
microprocessor. When the pulse goes high, it indicates address. When the pulse
goes down it indicates data.
IO/M’
This signal is used to differentiate between IO and Memory operations, i.e. when it is
high indicates IO operation and when it is low then it indicates memory operation.
S1&S0
These signals are used to identify the type of current operation.
2) Power supply
There are 2 power supply signals − VCC & VSS. VCC indicates +5v power supply
and VSS indicates ground signal.
3) Clock signals
There are 3 clock signals, i.e. X1, X2, CLK OUT.