BIT151 ยท 0 ยท 10 marks
What is Microprocessor? Draw a well labeled block diagram of 8085 microprocessor and explain it.
What is Microprocessor? Draw a well labeled block diagram of 8085 microprocessor and explain it.[10]
Quick answer
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.
Microprocessor and Block Diagram of 8085 Microprocessor
What is a Microprocessor?
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.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.