1 Microprocessor Fundamentals And 8085 Architecture

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.

Microprocessor Fundamentals and 8085 Architecture: notes

Definition and role of microprocessor

A microprocessor is a single integrated circuit (IC) that holds the CPU of a computer. It contains the arithmetic unit, the control unit and a set of registers. It reads instructions from memory, decodes them and carries them out.

Its main roles are:

  • Fetch instructions and data from memory.
  • Perform arithmetic and logic operations on data.
  • Control memory and input/output devices through control signals.
  • Respond to interrupts from outside devices.

The 8085 is an 8-bit microprocessor. Its data bus is 8 bits wide, so it handles 8 bits of data at a time. It has a 16-bit address bus, so it can address $2^{16} = 65536$ bytes (64 KB) of memory. It works on a single +5 V supply and has an on-chip clock generator.

8085 microprocessor block diagram and components

The 8085 block diagram has these main parts.

  • ALU (Arithmetic Logic Unit): performs addition, subtraction, AND, OR, XOR, compare, rotate and similar operations.
  • Accumulator (A): an 8-bit register that holds one operand and receives the result of most ALU operations.
  • Flag register: five flip-flops that show the result status (S, Z, AC, P, CY).
  • General purpose registers: B, C, D, E, H and L. Each is 8 bits. They can be paired as BC, DE and HL to hold 16-bit data.
  • Temporary registers W and Z: used internally during instruction execution. The programmer cannot use them.
  • Program Counter (PC): a 16-bit register holding the address of the next instruction.
  • Stack Pointer (SP): a 16-bit register holding the address of the top of the stack in memory.
  • Instruction register and decoder: the opcode is held in the instruction register, and the decoder works out what to do.
  • Timing and control unit: produces the control signals and the timing for all operations.
  • Interrupt control: handles TRAP, RST 7.5, RST 6.5, RST 5.5 and INTR.
  • Serial I/O control: sends and receives one bit at a time using the SOD and SID pins.
  • Address buffer and address/data buffer: drive the address bus and the multiplexed lower address/data bus.

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]

A microprocessor is a single VLSI (Very Large Scale Integration) chip that integrates the entire CPU on one chip, including the ALU, control unit, and register array. It fetches instructions from memory, decodes them, and executes them to perform arithmetic, logical, and control operations. The I...

Open this answer on its own page →

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 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.
FlagSymbolMeaning
SignSSet if result is negative
ZeroZSet if result is zero
Auxiliary CarryACSet if carry from bit 3 to bit 4
ParityPSet if result has even number of 1s
CarryCYSet 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:
SignalFunction
ALEAddress 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, S1Status lines that identify the machine cycle in progress
READYHeld low by a slow memory or peripheral to insert wait states
HOLD, HLDADMA request from an external device and the acknowledgement returned to it
RESET IN, RESET OUTClears the program counter to 0000H and signals the reset to the peripherals
CLK OUTSystem 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.

Open this answer on its own page →

0 · 10 marks

What is Microprocessor? Draw a well labeled block diagram of 8085 microprocessor and explain it.[10]

Show solved 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:
FlagSymbolMeaning
SignSSet if result is negative
ZeroZSet if result is zero
Auxiliary CarryACSet if carry from bit 3 to bit 4
ParityPSet if result has even number of 1s
CarryCYSet 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:
SignalFunction
ALEAddress 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, S1Status lines that identify the machine cycle in progress
READYHeld low by a slow memory or peripheral to insert wait states
HOLD, HLDADMA request from an external device and the acknowledgement returned to it
RESET IN, RESET OUTClears the program counter to 0000H and signals the reset to the peripherals
CLK OUTSystem 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.

Open this answer on its own page →

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]

A microprocessor is a programmable, multipurpose, clock-driven, register-based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input, processes data according to those instructions, and provides results as output. It is a single integra...

Open this answer on its own page →

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.

--- The 8085 microprocessor is an 8-bit general-purpose microprocessor developed by Intel Corporation in 1976. Key characteristics include: Feature Specification ------ Data Bus Width 8-bit (bidirectional) Address Bus Width 16-bit (unidirectional) Addressable Memory 2^16 = 64 KB Power Supply Sing...

Open this answer on its own page →

Microprocessor based system architecture

2078 · 5 marks

Explain the basic architecture of microprocessor based system. [5]

A microprocessor based system is a digital system that uses a microprocessor (MPU) as its central processing unit, along with memory and input/output devices, all interconnected through a common bus system. --- --- - The brain of the system that fetches, decodes, and executes instructions. - Cont...

Open this answer on its own page →