Predicted Questions
Visitors: 0 Cache: ... Micro-2 Micro-3

Predicted Exam Questions

BGC Trust University Bangladesh | Course: MP 504

Based on Teacher's Question Pattern Analysis

View Mode:
← Back to Main
πŸ“Š

Teacher's Question Pattern Analysis

Question Types by Frequency:

Question TypeMarksFrequency
Architecture Diagram + Functions4-595%
Address Calculation3-595%
Define Term (1-liner)195%
Explain with Example2-395%
Stack PUSH/POP Operation585%
Find Instruction Errors385%
Register Evaluation585%
Compare Instructions375%
Series Sum Program575%
SET 1 - Total: 10 Marks
1a Compare BIU and EU with their functions 4 marks
πŸ“„ Page 4-6 | Pattern: Architecture (95% likely)
FeatureBIUEU
FunctionFetches instructionsExecutes instructions
ComponentsSegment registers, IP, QueueALU, Registers, Flags
Address20-bit physical address16-bit offset address
1b If CS=2000H, IP=1500H, DS=3000H, BX=1000H, calculate physical address for instruction fetch and data access 3 marks
πŸ“„ Page 17-18 | Pattern: Address calc (95% likely)
Instruction: PA = 20000H + 1500H = 21500H
Data: PA = 30000H + 1000H = 31000H
1c Define offset address 1 mark
πŸ“„ Page 17 | Pattern: Define term (95% likely)

Offset Address is the 16-bit displacement within a segment.

1d Explain direct addressing mode with example 2 marks
πŸ“„ Page 29-30 | Pattern: Explain (95% likely)

Direct Addressing: Effective address is given directly in instruction.

MOV AX, [1000H]  ; Load from DS:1000H
SET 2 - Total: 10 Marks
2a Draw flag register of 8086 and explain any 5 flags 5 marks
πŸ“„ Page 10-14 | Pattern: Flags (85% likely)
Flags: OF DF IF TF SF ZF AF PF CF
FlagMeaning
CFCarry out of MSB
ZFResult is zero
SFMSB of result (sign)
OFSigned overflow
DFString direction (0=inc, 1=dec)
2b Find errors: (i) ADD AX, BL (ii) MOV CS, AX (iii) MUL 100H 3 marks
πŸ“„ Page 28, 37 | Pattern: Errors (85% likely)
InstructionError
ADD AX, BLSize mismatch (16 vs 8 bit)
MOV CS, AXCS can't be destination
MUL 100HImmediate not allowed
2c What is the purpose of DS and ES registers? 2 marks
πŸ“„ Page 25 | Pattern: Register (85% likely)

DS: Data segment - holds data address

ES: Extra segment - holds string destination

SET 3 - Total: 10 Marks
3a What is pipelining? How does 8086 achieve it? 2 marks
πŸ“„ Page 16 | Pattern: Queue (85% likely)

Pipelining: Fetching next instruction while current executes.

8086 uses 6-byte FIFO queue in BIU.

3b Evaluate: MOV AX, 1234H / MOV BX, AX / ADD AX, BX / SUB AX, 1111H 5 marks
πŸ“„ Page 8-9 | Pattern: Eval (85% likely)
StepAXBX
MOV AX, 1234H1234H-
MOV BX, AX1234H1234H
ADD AX, BX2468H1234H
SUB AX, 1111H1357H1234H
3c Compare PUSH and POP operations 3 marks
πŸ“„ Page 19-22 | Pattern: Compare (75% likely)
FeaturePUSHPOP
SP ChangeSP - 2SP + 2
Data FlowReg β†’ StackStack β†’ Reg
SET 4 - Micro-3 (Pins & Signals) - Total: 10 Marks
4a Explain the function of AD15-AD0, ALE, BHE/S7, and RD pins of 8086 3 marks
πŸ“„ Micro-3 Page 7-9 | Pattern: Pins (75% likely)
Pin(s)Function
AD15-AD0Multiplexed Address/Data bus (16-bit)
ALEAddress Latch Enable - latches address
BHE/S7Bus High Enable / Status bit 7
RDRead control signal (active low)
4b Compare minimum mode and maximum mode of 8086 2 marks
πŸ“„ Micro-3 Page 2-3, 12-16 | Pattern: Modes (75% likely)
FeatureMinimum ModeMaximum Mode
PinMN/MXΜ„ = 1 (VCC)MN/MXΜ„ = 0 (GND)
Control8086 generates control signals8288 bus controller generates signals
Multi-CPUSingle processorSupports coprocessors
4c Explain the S3/S4 segment decoding table and the RQ/GT DMA mechanism 5 marks
πŸ“„ Micro-3 Page 8, 15 | Pattern: Segments/DMA (70% likely)

S3/S4 Segment Decode Table:

S4S3Segment
00ES
01SS
10CS / IP (prefetch)
11DS

RQ/GT: Request/Grant signals for DMA bus access.

SET 5 - Micro-3 (8254 Timer) - Total: 10 Marks
5a Draw the block diagram of 8254 and explain its components 3 marks
πŸ“„ Micro-3 Page 23-25 | Pattern: 8254 (75% likely)

8254 Components:

  • 3 independent 16-bit down counters (Counter 0, 1, 2)
  • Data Bus Buffer (D7-D0)
  • Read/Write Logic (RDΜ„, WRΜ„, CSΜ„, A1, A0)
  • Control Word Register
5b Compare all six modes of 8254 timer 3 marks
πŸ“„ Micro-3 Page 30-36 | Pattern: 8254 Modes (75% likely)
ModeNameOUT Behavior
0Interrupt on Terminal CountGoes LOW on terminal count
1Programmable One-ShotGoes LOW for one CLK cycle
2Rate GeneratorGoes LOW for one CLK, then HIGH
3Square Wave50% duty cycle square wave
4Software Triggered StrobeGoes LOW for one CLK on count
5Hardware Triggered StrobeGoes LOW on GATE trigger
5c Explain the 8254 control word format and write a program to initialize Counter 0 in Mode 3 (square wave) with count 5000 4 marks
πŸ“„ Micro-3 Page 26 | Pattern: 8254 Control Word (75% likely)

Control Word (SC1 SC0 RL1 RL0 M2 M1 M0 BCD):

Bit7-65-43-10
NameSC (Select)RL (Read/Load)M (Mode)BCD
Values00=C0, 01=C1, 10=C2, 11=Ctrl00=Latch, 01=LSB, 10=MSB, 11=LSB+MSB000-1010=binary, 1=BCD
; Counter 0, Mode 3, 16-bit binary, count=5000
MOV AL, 36H       ; Control word: SC=00, RL=11, M=011, BCD=0
OUT 0E6H, AL      ; Write control word to control register
MOV AX, 5000      ; Count value
OUT 0E0H, AL      ; Write LSB to Counter 0
MOV AL, AH
OUT 0E0H, AL      ; Write MSB to Counter 0