Knowledge / Electronics and Communication Engineering / 8085 and 8086 microprocessors

8085 and 8086 microprocessors

Electronics and Communication Engineering (B.E./B.Tech) · Microprocessors and embedded · free study notes for exams, placements and interviews

In short

The Intel 8085 is an 8-bit microprocessor (1976) with a 16-bit address bus, 64 KB memory space and a simple single-bus architecture; the Intel 8086 (1978) is a 16-bit processor with a 20-bit address bus, 1 MB memory space, segmented memory and a pipelined fetch-execute design. Both are studied as the canonical teaching models for how any CPU fetches, decodes and executes instructions, how buses and timing diagrams work, and how peripherals are interfaced. They carry heavy weight in university theory and lab exams, in GATE EC/EE/CS (addressing modes, physical address computation, instruction timing) and in entry-level embedded and VLSI interviews (Bosch, Continental, L&T Technology Services, Tata Elxsi, KPIT, HCL, Cyient, ISRO/DRDO/BEL technical rounds). The concepts — register sets, flags, stack, interrupts, memory mapping, bus cycles — transfer directly to every modern microcontroller and SoC.

Explained

8085 architecture and pins

8085 instruction cycle, machine cycles and timing

Machine cycleIO/M̄S1S0T-states
Opcode fetch0114 (or 6)
Memory read0103
Memory write0013
I/O read1103
I/O write1013
INTR acknowledge1116 (or 12)
Halt / bus idleZ00—

8085 instruction set, stack and interrupts

8086 architecture: BIU, EU and pipelining

8086 segmentation, addressing modes and modes of operation

8086 interrupts and instruction set highlights

Key points

Formulas and examples

Memory capacity = 2number of address lines × (data bus width in bytes); 8085: 2¹⁶ × 1 B = 64 KB; 8086: 2²⁰ × 1 B = 1 MB
T-state duration T = 1 / f_internal; for the 8085, f_internal = f_crystal / 2
Execution time of an instruction = (number of T-states) × T
Physical Address (8086) PA = (Segment register value × 10H) + Effective Offset — 20-bit result, hexadecimal
Effective Address EA = base (BX or BP) + index (SI or DI) + displacement
Software RST vector (8085) = n × 8 (decimal) ; 8086 interrupt vector address = type × 4
Number of chips required = (total memory required) / (capacity of one chip); address lines to the chip = log₂(chip locations), rest go to the decoder

Example 1 — 8085 T-state and delay loop. A 8085 system uses a 6.144 MHz crystal.

Example 2 — 8086 physical address. CS = 1A2BH, IP = 03C4H.

Example 3 — 8085 instruction timing. Count machine cycles and T-states for the sequence MVI A, 32H; LXI H, 2050H; MOV B, M; STA 2060H; HLT.

InstructionMachine cyclesT-states
MVI A, 32H2 (OF + MR)7
LXI H, 2050H3 (OF + MR + MR)10
MOV B, M2 (OF + MR)7
STA 2060H4 (OF + MR + MR + MW)13
HLT25
Total1342

Example 4 — memory interfacing and address decoding. Build 16 KB of RAM for an 8085 using 4 K × 8 chips, starting at 4000H.

Example 5 — 8085 program, sum of a block. Add ten 8-bit numbers from 2050H, storing the 16-bit sum at 2070H–2071H.

      LXI H, 2050H   ; pointer to data
      MVI C, 0AH     ; count = 10
      LXI D, 0000H   ; DE = running sum
NEXT: MOV A, M
      ADD E
      MOV E, A
      JNC SKIP
      INR D          ; propagate carry
SKIP: INX H
      DCR C
      JNZ NEXT
      XCHG           ; HL <- sum
      SHLD 2070H     ; store low byte at 2070H, high at 2071H
      HLT

8085 vs 8086 comparison

80858086
Data / address bus8-bit / 16-bit16-bit / 20-bit
Memory, I/O space64 KB, 256 ports1 MB, 64 K ports
ArchitectureSingle unit, fetch then executeBIU + EU, pipelined (6-byte queue)
Clock3 MHz (crystal ÷ 2, on-chip)5–10 MHz, external 8284
RegistersA, B, C, D, E, H, L, SP, PCAX–DX, SP, BP, SI, DI, IP, CS/DS/SS/ES
Flags59
Interrupts5 pins, fixed vectors256 types, vector table at 00000H
Multiply / divideNot available (routine needed)MUL, IMUL, DIV, IDIV in hardware
ModesOneMinimum and maximum
Transistors~6,500~29,000

Where it is used

Interview questions

Common mistakes

Related topics

8051 microcontroller · ARM and embedded C · Microcontroller peripherals: timers, ADC, PWM and interrupts · Embedded interfaces: UART, SPI and I2C · Digital electronics: combinational and sequential circuits · Computer organisation and architecture

Open in the Knowledge reader →Find jobs →