CH 1
CH 1
Microprocessor
A microprocessor is a small chip that acts as the brain of a
computer.
It includes the ALU, control unit, and registers in a single IC.
It works like the CPU, handling all processing tasks.
Examples: Intel 8085, 8086, Core i7
3. Registers
o Small storage areas for quick data or instructions.
4. Cache Memory
o Fast memory that stores data used again and again.
5. Clock
o Sends a timing signal to keep everything in sync.
7. Instruction Decoder
o Reads and decodes what the CPU should do next.
What is the role of the ALU and control unit in the 8085
Microprocessor?(W-24)
Flag Register
A small storage in the CPU.
Shows results like zero, negative, or carry after operations.
1. Sign Flag (S)
Shows if the result is negative.
Checks the MSB (Most Significant Bit) of the result.
If MSB = 1, flag is set (means negative number).
📌 Summary of Flags
Flag Description
Sign (S) Set if result is negative.
Zero (Z) Set if result is zero.
Auxiliary Set if there is a carry between bit 3 and 4
Carry (AC) (used in BCD).
Parity (P) Set if result has even number of 1s (even
parity).
Carry (CY) Set if there is a carry in arithmetic
operations.
Explain the function of the program counter and stack pointer in the 8085
microprocessor.(W-24)
Example:
If PC = 2050H, the microprocessor will fetch the instruction from memory location
2050H and then update the PC to the next address.
Example:
If SP = 3000H and we push a value, the new SP becomes 2FFFH.
System Bus(S-24)
System Bus: A group of wires that helps in communication between
the microprocessor, memory, and I/O devices.
Transfers data, addresses, and control signals.
Essential for executing instructions in a computer system.
. Address Bus
It is 16-bit wide.
Used to carry the address of memory or I/O devices.
It is unidirectional (data flows in one direction — from 8085 to
memory/I/O).
Can address 2^16 = 65536 locations (from 0000H to FFFFH).
2. Data Bus
It is 8-bit wide.
Used to transfer data between the microprocessor and memory/I/O.
It is bidirectional (data can flow both ways).
Carries actual data like instructions, results, etc.
3. Control Bus
Carries control signals.
Controls the use of address and data buses.
Important signals:
o RD’ (Read) – to read data.
o WR’ (Write) – to write data.
o IO/M’ – to select between I/O or memory operation.
o ALE (Address Latch Enable) – to separate address from data.
Summary
Address Bus = 16-bit, unidirectional, for addresses.
Data Bus = 8-bit, bidirectional, for data transfer.
Control Bus = control signals to manage operations.
1. Address Bus
It is 16-bit wide.
Used to carry the address of memory or I/O devices.
It is unidirectional (data flows in one direction — from 8085 to
memory/I/O).
Can address 2^16 = 65536 locations (from 0000H to FFFFH).
2. Data Bus
It is 8-bit wide.
Used to transfer data between the microprocessor and memory/I/O.
It is bidirectional (data can flow both ways).
Carries actual data like instructions, results, etc.
3. Control Bus
Carries control signals.
Controls the use of address and data buses.
Important signals:
o RD’ (Read) – to read data.
o WR’ (Write) – to write data.
o IO/M’ – to select between I/O or memory operation.
o ALE (Address Latch Enable) – to separate address from data.
Summary
Address Bus = 16-bit, unidirectional, for addresses.
Data Bus = 8-bit, bidirectional, for data transfer.
Control Bus = control signals to manage operations.