Microprocessor and Computer Architecture · Unit 1
Microprocessor Fundamentals and 8085 Architecture
Exam-focused notes for Microprocessor Fundamentals and 8085 Architecture (Microprocessor and Computer Architecture, BIT151): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.
Microprocessor Fundamentals and 8085 Architecture in short
A microprocessor is the central chip of a small computer. This chapter explains what it does and how the Intel 8085, a classic 8-bit processor, is built inside. The 8085 is the model used to teach microprocessor programming in this subject.
What this unit covers
- Definition and role of microprocessor
- 8085 microprocessor block diagram and components
- Functional units of 8085
- General categories of microprocessor functions
- Microprocessor based system architecture
8085 microprocessor block diagram and components
2081 · 10 marks
Draw the block diagram of 8085 microprocessor and define its components.[10]
2080.1 · 10 marks
What is microprocessor?Draw a well labeled block diagram of 8085 microprocessor and explain its different components.[2+8]
Show solved answerHide answer
Microprocessor and Block Diagram of 8085
(a) What is a Microprocessor?
A microprocessor is a programmable, single-chip VLSI (Very Large Scale Integration) device that functions as the Central Processing Unit (CPU) of a computer system. It integrates the functions of the ALU (Arithmetic and Logic Unit), Control Unit, and registers onto a single integrated circuit.
It performs three fundamental operations:
- Fetch - retrieves instructions from memory
- Decode - interprets the instruction
- Execute - carries out the required operation
Example: Intel 8085 is an 8-bit microprocessor introduced in 1976, operating at 3-5 MHz clock speed, with a 16-bit address bus capable of addressing 64 KB of memory.
(b) Block Diagram of 8085 Microprocessor
Block Diagram
+----------------------------------------------------------+
| 8085 MICROPROCESSOR |
| |
| +----------------+ +-------------------------+ |
| | Interrupt | | Timing & Control Unit | |
| | Control | | (RD', WR', ALE, IO/M')| |
| | TRAP,RST7.5 | +-------------------------+ |
| | RST6.5,RST5.5 | | |
| | INTR | +-------------------------+ |
| +----------------+ | Instruction Register & | |
| | Decoder | |
| +----------------+ +-------------------------+ |
| | Serial I/O | | |
| | Control | +--------------+-----------+ |
| | SID / SOD | | Internal 8-bit Bus | |
| +----------------+ +--------------+-----------+ |
| | |
| +------------+ +--------+ +--------+--------+ |
| | Accumulator| | Flag | | Register Array | |
| | (8-bit) | | Reg. | | B, C, D, E, H,L | |
| +------------+ |S,Z,AC, | | (8-bit each) | |
| | |P, CY | +--------+--------+ |
| v +--------+ | |
| +------------+ | |
| | ALU |<----------------------+ |
| | (Arith & | |
| | Logic) | |
| +------------+ |
| |
| +-------------------+ +---------------------------+ |
| | Program Counter | | Stack Pointer (SP) | |
| | (PC) - 16 bit | | 16-bit | |
| +-------------------+ +---------------------------+ |
| |
| +-------------------+ +---------------------------+ |
| | Address Buffer | | Data/Address Buffer | |
| | A8 - A15 (8-bit) | | AD0 - AD7 (Multiplexed) | |
| +-------------------+ +---------------------------+ |
| | | |
+----------|--------------------------|--------------------+
| |
16-bit Address Bus 8-bit Data Bus
(A0 - A15) (D0 - D7)
Explanation of Each Component
A. Accumulator (A Register)
- An 8-bit special purpose register.
- Stores one operand before an ALU operation and holds the result after the operation.
- It is the most frequently used register in all data processing tasks.
B. ALU (Arithmetic and Logic Unit)
- Performs all arithmetic operations: addition, subtraction, increment, decrement.
- Performs all logical operations: AND, OR, XOR, complement, rotate.
- Receives data from the Accumulator and Temporary Register.
- Result is stored back in the Accumulator.
C. Flag Register (Status Register)
- A 5-bit register containing condition flags set or reset based on ALU results.
| Flag | Symbol | Meaning |
|---|---|---|
| Sign | S | Set if result is negative |
| Zero | Z | Set if result is zero |
| Auxiliary Carry | AC | Set if carry from bit 3 to bit 4 |
| Parity | P | Set if result has even number of 1s |
| Carry | CY | Set if carry out from bit 7 |
D. Register Array (General Purpose Registers)
- Contains six 8-bit registers: B, C, D, E, H, L.
- Can be used individually (8-bit) or as register pairs (BC, DE, HL) for 16-bit operations.
- The HL pair is most commonly used as a memory pointer.
E. Program Counter (PC)
- A 16-bit register that always holds the memory address of the next instruction to be fetched.
- It is automatically incremented after each instruction fetch, ensuring sequential execution.
F. Stack Pointer (SP)
- A 16-bit register that points to the top of the stack in RAM memory.
- Used during PUSH, POP, CALL, and RET operations.
- Stack grows downward in memory (SP decrements on PUSH).
G. Timing and Control Unit
- The brain of the microprocessor that generates all timing and control signals.
- Key signals generated:
| Signal | Function |
|---|---|
| ALE | Address Latch Enable - demultiplexes AD0-AD7 into the lower address byte and the data byte |
| RD (active low) | Read control signal for a memory or an I/O read operation |
| WR (active low) | Write control signal for a memory or an I/O write operation |
| IO/M (M active low) | Tells whether the current operation is on memory or on an I/O port |
| S0, S1 | Status lines that identify the machine cycle in progress |
| READY | Held low by a slow memory or peripheral to insert wait states |
| HOLD, HLDA | DMA request from an external device and the acknowledgement returned to it |
| RESET IN, RESET OUT | Clears the program counter to 0000H and signals the reset to the peripherals |
| CLK OUT | System clock supplied to the rest of the system, half the crystal frequency |
H. Instruction Register and Decoder
- The Instruction Register (IR) is an 8-bit register that holds the opcode fetched from memory.
- The decoder interprets that opcode and informs the timing and control unit which sequence of control signals to generate.
- The IR is not accessible to the programmer.
I. Temporary Register
- An 8-bit register that holds the second operand of an ALU operation.
- It is used internally by the processor only, and is transparent to the programmer.
J. Interrupt Control
- Handles the five hardware interrupts of the 8085: TRAP, RST 7.5, RST 6.5, RST 5.5 and INTR.
- TRAP is non maskable and has the highest priority, INTR has the lowest and is acknowledged through the INTA signal.
- On accepting an interrupt the processor saves the program counter on the stack and branches to the corresponding vector location.
K. Serial Input Output Control
- Provides SID (Serial Input Data) and SOD (Serial Output Data) lines for one-bit serial communication.
- SID is read by the RIM instruction and SOD is written by the SIM instruction.
L. Increment / Decrement Address Latch
- A 16-bit circuit that increments or decrements the contents of the PC or SP.
- It is what advances the program counter after a fetch and adjusts the stack pointer during PUSH and POP.
M. Address Buffer and Address / Data Buffer
- The address buffer drives the higher order address lines A8 to A15.
- The address/data buffer drives the multiplexed lines AD0 to AD7, which carry the lower byte of the address during the first clock state of a machine cycle and the data byte afterwards.
- The ALE signal is used by an external latch (such as the 74LS373) to hold the lower address byte while the same lines are reused for data.
Conclusion
The 8085 is an 8-bit microprocessor with a 16-bit address bus, so it can address 64 KB of memory, and its internal organisation splits neatly into three parts: the arithmetic group (accumulator, ALU, temporary register, flags), the register and address group (B to L, PC, SP, increment/decrement latch, buffers) and the control group (instruction register and decoder, timing and control unit, interrupt and serial control). All three are tied together by the internal 8-bit data bus, and the timing and control unit sequences them so that every instruction is completed as a fetch, decode and execute cycle.
0 · 10 marks
What is Microprocessor? Draw a well labeled block diagram of 8085 microprocessor and explain it.[10]
Show solved answerHide answer
Microprocessor and Block Diagram of 8085 Microprocessor
What is a Microprocessor?
A microprocessor is a programmable, single-chip VLSI (Very Large Scale Integration) device that functions as the Central Processing Unit (CPU) of a computer system. It integrates the functions of the ALU (Arithmetic and Logic Unit), Control Unit, and registers onto a single silicon chip.
It performs the following basic operations:
- Fetch instructions from memory
- Decode the fetched instruction
- Execute the instruction (arithmetic, logical, or control operations)
Intel 8085 is an 8-bit microprocessor introduced by Intel in 1976. It operates at a clock speed of 3 to 5 MHz, has 40 pins, uses a 16-bit address bus (capable of addressing 64 KB of memory), and an 8-bit data bus.
Block Diagram of 8085 Microprocessor
+----------------------------------------------------------+
| 8085 MICROPROCESSOR |
| |
| +----------------+ +-------------------------+ |
| | Interrupt | | Timing & Control Unit | |
| | Control | | (RD', WR', ALE, IO/M') | |
| | TRAP,RST7.5 | +-------------------------+ |
| | RST6.5,RST5.5 | | |
| | INTR | +-------------------------+ |
| +----------------+ | Instruction Register & | |
| | Decoder | |
| +----------------+ +-------------------------+ |
| | Serial I/O | | |
| | Control | +--------------+------------+ |
| | SID / SOD | | Internal Data Bus | |
| +----------------+ +--+------+------+------+---+ |
| | | | | |
| +------+ +---+--+ +-+----+ | |
| | ACC | | Temp | | Flag | | |
| | (8b) | | Reg | | Reg | | |
| +------+ +------+ +------+ | |
| | | |
| +------+--------------------+----+ |
| | ALU | |
| +--------------------------------+ |
| |
| General Purpose Registers |
| +----+----+ +----+----+ +----+----+ |
| | B | C | | D | E | | H | L | |
| +----+----+ +----+----+ +----+----+ |
| |
| +------------------+ +------------------+ |
| | Program Counter | | Stack Pointer | |
| | PC (16-bit) | | SP (16-bit) | |
| +------------------+ +------------------+ |
| |
| +-------------------+ +------------------------+ |
| | Address Buffer | | Data/Address Buffer | |
| | A8-A15 (High Addr)| | AD0-AD7 (Multiplexed) | |
| +-------------------+ +------------------------+ |
| | | |
+------------|--------------------------|------------------+
| |
16-bit Address Bus 8-bit Data Bus
(A0 - A15) (D0 - D7)
Explanation of Each Block
A. Accumulator (A Register)
- An 8-bit register that stores one operand before an ALU operation and holds the result after the operation.
- It is the most frequently used register in all data processing tasks.
B. ALU (Arithmetic and Logic Unit)
- Performs all arithmetic operations: addition, subtraction, increment, decrement.
- Performs all logical operations: AND, OR, XOR, complement, rotate.
- Receives data from the Accumulator and the Temporary Register.
- The result is stored back in the Accumulator.
C. Flag Register (Status Register)
- A special 5-bit register associated with the ALU.
- Contains the following flags:
| Flag | Symbol | Meaning |
|---|---|---|
| Sign | S | Set if result is negative |
| Zero | Z | Set if result is zero |
| Auxiliary Carry | AC | Set if carry from bit 3 to bit 4 |
| Parity | P | Set if result has even number of 1s |
| Carry | CY | Set if carry/borrow from MSB |
D. General Purpose Registers (Register Array)
- Six 8-bit registers: B, C, D, E, H, L
- Can be used as register pairs (BC, DE, HL) to hold 16-bit data or addresses.
- The HL pair is most commonly used as a memory pointer.
E. Program Counter (PC)
- A 16-bit register that always holds the memory address of the next instruction to be fetched.
- It is automatically incremented after each instruction fetch.
F. Stack Pointer (SP)
- A 16-bit register that points to the top of the stack in memory.
- Used during PUSH, POP, CALL, and RET operations.
- The stack grows downward in memory.
G. Timing and Control Unit
- Generates all necessary timing and control signals to synchronize operations.
- Key signals generated:
| Signal | Function |
|---|---|
| ALE | Address Latch Enable - demultiplexes AD0-AD7 into the lower order address byte and the data byte |
| RD (active low) | Read control signal for a memory or an I/O read operation |
| WR (active low) | Write control signal for a memory or an I/O write operation |
| IO/M (M active low) | Tells whether the current operation is on memory or on an I/O port |
| S0, S1 | Status lines that identify the machine cycle in progress |
| READY | Held low by a slow memory or peripheral to insert wait states |
| HOLD, HLDA | DMA request from an external device and the acknowledgement returned to it |
| RESET IN, RESET OUT | Clears the program counter to 0000H and signals the reset to the peripherals |
| CLK OUT | System clock supplied to the rest of the system, half the crystal frequency |
H. Instruction Register and Decoder
- The Instruction Register (IR) is an 8-bit register that holds the opcode fetched from memory.
- The decoder interprets that opcode and informs the timing and control unit which sequence of control signals to generate.
- The IR is not accessible to the programmer.
I. Temporary Register
- An 8-bit register that holds the second operand of an ALU operation.
- It is used internally by the processor only, and is transparent to the programmer.
J. Interrupt Control
- Handles the five hardware interrupts of the 8085: TRAP, RST 7.5, RST 6.5, RST 5.5 and INTR.
- TRAP is non maskable and has the highest priority, INTR has the lowest and is acknowledged through the INTA signal.
- On accepting an interrupt the processor saves the program counter on the stack and branches to the corresponding vector location.
K. Serial Input Output Control
- Provides SID (Serial Input Data) and SOD (Serial Output Data) lines for one-bit serial communication.
- SID is read by the RIM instruction and SOD is written by the SIM instruction.
L. Increment / Decrement Address Latch
- A 16-bit circuit that increments or decrements the contents of the PC or SP.
- It is what advances the program counter after a fetch and adjusts the stack pointer during PUSH and POP.
M. Address Buffer and Address / Data Buffer
- The address buffer drives the higher order address lines A8 to A15.
- The address/data buffer drives the multiplexed lines AD0 to AD7, which carry the lower byte of the address during the first clock state of a machine cycle and the data byte afterwards.
- The ALE signal is used by an external latch (such as the 74LS373) to hold the lower address byte while the same lines are reused for data.
Conclusion
The 8085 is an 8-bit microprocessor with a 16-bit address bus, so it can address 64 KB of memory, and its internal organisation splits neatly into three parts: the arithmetic group (accumulator, ALU, temporary register, flags), the register and address group (B to L, PC, SP, increment/decrement latch, buffers) and the control group (instruction register and decoder, timing and control unit, interrupt and serial control). All three are tied together by the internal 8-bit data bus, and the timing and control unit sequences them so that every instruction is completed as a fetch, decode and execute cycle.
General categories of microprocessor functions
2080 · 5 marks
What is Microprocessor? What are 3 general categories of the function of microprocessor? Explain in brief. [5]
Functional units of 8085
2079
What is 8085 Microprocessor? Explain the Functional Units of 8085 Microprocessor [10]
The 8085 microprocessor is an 8-bit general-purpose microprocessor designed by Intel in 1976. It operates on a single +5V power supply, has 8-bit data bus, 16-bit address bus (can address 64KB of memory), and operates at a maximum clock frequency of 3.2 MHz.
Microprocessor based system architecture
2078 · 5 marks
Explain the basic architecture of microprocessor based system. [5]
Make Unit 1 stick
Practice BIT151 with flashcards & quizzes