Microprocessors Assignment Refined Short Answers
Microprocessors Assignment Refined Short Answers
1. *First microprocessor:* The Intel 4004, launched by Intel in 1971, was the first commercially
available microprocessor. It was a 4-bit processor.
2. *Evolution:* Microprocessors evolved from Intel 4004 (2,300 transistors) to modern CPUs with
billions. Moore’s Law predicts doubling of transistor count every two years. Plot: Transistor count vs.
years (logarithmic growth).
4. *Applications:* Used in embedded systems, traffic signals, washing machines, medical devices,
and industrial automation.
6. *8085 Buses:* Address Bus (16-bit), Data Bus (8-bit), and Control Bus for coordinating read/write
operations.
7. *RISC vs CISC:* RISC (ARM): Simple instructions, faster; CISC (Intel x86): Complex instructions,
fewer per program. RISC uses more instructions for complex tasks.
8. *8085 Addressing Modes:* Immediate (MVI A, 32H), Register (MOV A, B), Direct (LDA 2050H),
Indirect (MOV A, M), Implicit (CMA).
9. *Accumulator/Flag Registers:* Accumulator stores results. Flag register indicates Zero (Z), Sign (S),
Carry (CY), Parity (P), Auxiliary Carry (AC).
10. *8086 Flag Register:* 16-bit, includes status flags (ZF, CF, SF, OF) and control flags (IF, DF, TF).
Used to control and monitor operations.
11. *Control Unit & ALU:* Control unit directs data flow and instruction execution. ALU performs
arithmetic/logical operations like ADD, SUB, AND, OR.
12. *Types of Instructions in 8085:* Data transfer (MOV, MVI), Arithmetic (ADD, SUB), Logical (ANA,
ORA), Branch (JMP, CALL), Control (NOP, HLT).
13. *Execution Time (20 T-states @4MHz):* T = 1/4MHz = 0.25 µs → 20 T-states × 0.25 = *5 µs*.
15. *Last Mem Address (16KB from 2000H):* 2000H + 3FFFH = *5FFFH*.
16. *Memory Requirement:* 32KB RAM + 16KB ROM = *48KB total memory*.
18. *8086 Architecture:* Split into BIU and EU, supports pipelining. 16-bit processor with 20-bit
address bus (1MB addressable).
19. *Real vs Protected Mode:* Real mode allows 1MB memory, no protection. Protected mode
allows multitasking, memory protection, and >1MB access.
20. *Memory Segmentation:* Divides memory into CS, DS, SS, ES. Logical address = Segment × 10H +
Offset.
21. *General Purpose Registers (8086):* AX (Accumulator), BX (Base), CX (Counter), DX (Data). Used
for arithmetic, loops, and data transfer.
22. *8086 Pin Diagram:* Key pins include AD0–AD15 (address/data), ALE (address latch), RD, WR,
INTR. Used for interfacing.
25. *Exec Time (10 cycles @8MHz):* T = 1/8MHz = 0.125 µs → 10 × 0.125 = *1.25 µs*.
26. *Effective Addr (BP=3000H, DI=0500H, offset=120H):* EA = 3000 + 0500 + 0120 = *3620H*.
27. *Max Address (Real Mode 8086):* 20-bit address bus → 2²⁰ = *1MB (FFFFFH)*.
28. *Loop Time (1000 × 6 cycles @10MHz):* 6000 cycles → 6000 / 10⁶ = *0.6 ms*.
29. *Data Movement Examples:* MOV A, B; LDA addr (8085), MOV AX, BX; PUSH DX (8086).
30. *8085 vs 8086:* 8085 – 8-bit, no segmentation, 74 instructions. 8086 – 16-bit, segmented
memory, 100+ instructions.
31. *Arithmetic vs Logical:* Arithmetic (ADD, SUB) affects carry; Logical (AND, OR) doesn't. Logical
used for bitwise ops.
32. *Branch Control (8086):* JMP, JZ, JNZ, CALL, RET – used for loops, functions.
33. *Add 16-bit (8085):* Use LXI, MOV, DAD, and STORE instructions to add and store result.
34. *Loop Instr. (8086):* LOOP label uses CX as counter. Decrements CX each iteration.
35. *Instr Time (12 cycles @10MHz):* T = 1 / 10M = 0.1 µs → 12 × 0.1 = *1.2 µs*.
40. *Interrupt Concept:* CPU halts current task, executes ISR, resumes later. Used for urgent events.
42. *8259 PIC:* Handles 8 interrupts, prioritizes them, sends to CPU via INTR line.
43. *DMA (8237):* Transfers data from I/O to memory without CPU. Faster data transfer.
44. *Interrupt Vector Table:* Table of ISR addresses. In 8086, starts at 0000:0000H.
45. *Maskable vs Non-Maskable:* Maskable can be disabled (INTR). Non-maskable (TRAP) cannot be
ignored.
51. *Memory Interfacing:* Uses address decoding to map memory to processor’s address bus.
52. *8255 PPI:* 3 ports (A, B, C), used to connect peripherals like LEDs, switches.
53. *8253 PIT:* Has 3 counters, programmable. Mode 3 = square wave generator.
54. *8251 USART:* Serial communication; converts parallel to serial and vice versa.
55. *ADC/DAC:* ADC samples analog signals; DAC reconstructs analog from digital data.
60. *Processor Comparison:* 80286 (16-bit), 80386 (32-bit), 80486 (faster), Pentium (dual pipeline).
61. *8051 Arch:* Includes CPU, RAM, ROM, 4 I/O ports, timers, serial port, interrupt control.
62. *8051 I/O Ports:* P0 to P3, 8-bit, used for digital input/output. Some dual-purpose.
63. *8051 Addressing:* Immediate (#data), Register (A, R0–R7), Direct (addr), Indirect (@R0).
64. *8051 Interrupts:* External, Timer, Serial – used in time-critical embedded apps.
70. *Stepper Motor Ctrl:* 8051 gives pulses to driver in specific sequence to rotate motor.
71. *Temp Control (8086):* Use ADC to read temp, compare with threshold, control fan/heater.
72. *8051 in Real-Time:* Used in embedded systems like smart meters, medical devices, etc.
73. *Automotive Apps:* Speed control, engine management, wipers, display units.
74. *Traffic Light Ctrl:* 8051 uses timers and outputs to control LEDs in a timed loop.
75. *8251 Pins:* TXE = Transmit Buffer Empty, DTR = Data Terminal Ready, RTS = Request To Send.
*BHE/S:* High byte enable/select, *DEN:* Data enable, *HLDA:* Hold Acknowledge, *MN/MX:*
Mode select.
76. *8086 Instruction Format + Examples:*
c) XCHG DX, AX
d) OUT 01H, AL
77. *Microprocessor vs Microcontroller:* µP = CPU only, needs external peripherals. µC = CPU + RAM
+ ROM + I/O in one chip.
a) MUL CL
b) MUL CX
c) PUSH AX
79. *8253 PIT Modes & Freq:* Mode 3 = Square wave, Freq = 1MHz / 5000 = *200 Hz*.