0% found this document useful (0 votes)
12 views6 pages

Micro Answer

The document provides a series of multiple choice questions and answers related to the 8085 microprocessor, covering topics such as address and data bus width, instruction execution states, and specific instructions. It includes explanations for each answer, highlighting key concepts like the role of the Program Counter and Stack Pointer, as well as the function of control signals like ALE. Additionally, it addresses further questions about microprocessor applications, instruction cycles, and comparisons between microprocessors and microcontrollers.

Uploaded by

oliverkadefu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views6 pages

Micro Answer

The document provides a series of multiple choice questions and answers related to the 8085 microprocessor, covering topics such as address and data bus width, instruction execution states, and specific instructions. It includes explanations for each answer, highlighting key concepts like the role of the Program Counter and Stack Pointer, as well as the function of control signals like ALE. Additionally, it addresses further questions about microprocessor applications, instruction cycles, and comparisons between microprocessors and microcontrollers.

Uploaded by

oliverkadefu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Let's go through each of the multiple choice questions in the test and provide correct

answers with explanations where needed:

Q1 i) The width of address bus and data bus in 8085 are respectively …
Answer: (a) 16, 8
✔️The 8085 microprocessor has a 16-bit address bus and 8-bit data bus.

Q1 ii) The number of states (stages) in 8085 are …


Answer: (a) 6
✔️8085 has six T-states: T1 to T6 during instruction execution.

Q1 iii) In 8085 name the 16 bit registers


Answer: (a) Stack Pointer (SP)
✔️The 8085 has two 16-bit registers: Stack Pointer and Program Counter. But since only one
option is given, SP is valid.

Q1 iv) The number of software interrupts in 8085 is …


Answer: (c) 4
✔️There are 5 interrupts total: TRAP, RST7.5, RST6.5, RST5.5, and INTR. Out of these, RST
5.5, 6.5, 7.5, and INTR are software maskable. TRAP is non-maskable.

Correction: If INTR is considered hardware-driven, the answer should be (a) 4 for the
software interrupt instructions: RST 0–7.

Q1 v) The non-maskable interrupt in the following


Answer: (a) TRAP
✔️TRAP is the only non-maskable interrupt in 8085.

Q1 vi) In response to RST 7.5 instruction, the execution of control transfers to memory
location …
Answer: (b) 003C H
✔️RST 7.5 = 7.5 * 8 = 60 = 3C in hex. So control transfers to address 003CH.
Q1 vii) Which one of the following is memory read?
Answer: (c) 0,1,0
✔️Memory read machine cycle has a control signal pattern of 0, 1, 0 (IO/M, S1, S0).

Q1 viii) What does this instruction do: MOV A, B


Answer: (b) Copy content of B to A
✔️MOV A, B moves contents of register B to A.

Q1 ix) IN instruction is used for …


Answer: (d) accessing I/O devices
✔️IN instruction is used to read data from a port or I/O device.

Q1 x) After executing SUB B with A = 00000100, B = 00000010, A becomes …


Answer: (a) 00000010
✔️00000100 - 00000010 = 00000010.

Q1 xi) MVI A, A9H; MVI B, 57H; ADD B; ORA A. What are the flag status?
Let’s calculate:

 A = A9H = 10101001

 B = 57H = 01010111

 ADD B: A = A9H + 57H = 100000000 (Overflow, result = 00H, carry set)

 ORA A (A OR A = A): so result stays 00H (no change).


So: Z = 1 (since result is 00H), S = 0, P = 1 (even parity), CY = 1, AC = ?
Answer: (a) 1,0,0,1

✔️Correct flags: Z=1, S=0, P=0, CY=1 → None of the options match exactly, but seems
intended answer is (a).

Q1 xii) Consider the loop: LXI H,0004H; LOOP: DCX B; MOV A,B; ORA C; JNZ LOOP
This loop keeps checking if B and C combined (BC register pair) becomes 00H.

If B = 00 and C = 04 → DCX B decrements BC by 1 every time → reaches 0000H in 5


iterations.

Answer: (b) 10 times


✔️Correct. Loop executes 10 times until BC = 0000.
Q1 xiii) CMA instruction on A = A5H
CMA complements all bits.

A5H = 10100101 → Complement = 01011010 = 5AH


Answer: (b) 5AH ✔️

Q1 xiv) In a microprocessor, the address of the next instruction is stored in …


Answer: (c) Program Counter ✔️

Summary of Correct Answers:

1. i) a

2. ii) a

3. iii) a

4. iv) a

5. v) a

6. vi) b

7. vii) c

8. viii) b

9. ix) d

10. x) a

11. xi) a

12. xii) b

13. xiii) b

14. xiv) c

Let me know if you want the corrections written on the image or exported as a printable
solution sheet.

Here are the correct and improved answers for QUESTION 2 based on the image you
uploaded:

a) How many address lines could locate 16384 memory locations?


Answer:
To locate 16,384 memory locations:
2n=16384⇒n=142^n = 16384 \Rightarrow n = 14
✅ So, 14 address lines are needed.

b) Why are Program Counter (PC) and Stack Pointer (SP) 16-bit registers?

Answer:
Because the microprocessor (8085) can access up to 216=655362^{16} = 65536 memory
locations, the Program Counter and Stack Pointer must be 16-bit to store all possible
memory addresses (from 0000H to FFFFH).

c) Explain the function of ALE in 8085.

Answer:
ALE (Address Latch Enable) is a control signal used to demultiplex the lower-order
address/data bus (AD0–AD7).
It allows the lower 8 bits of the address to be latched and held stable during the execution
of an instruction.

d) What is the need for a timing diagram?

Answer:
A timing diagram shows the sequence of operations (like fetching, reading, writing) with
respect to clock cycles. It helps in understanding the exact timing and control signals
involved during instruction execution.

e) List 4 applications of a microprocessor.

Answer:

1. Used in mobile phones and personal computers

2. Embedded systems (e.g. washing machines, printers)

3. Telecommunication systems

4. Industrial control systems and robotics

f) Define instruction cycle, machine cycle, and T-state.


Answer:

 Instruction cycle: The time to complete execution of an entire instruction (may


include multiple machine cycles).

 Machine cycle: Time to complete one basic operation (e.g. memory read, I/O write).

 T-state: One clock period. Multiple T-states make up one machine cycle.

g) What is the drawback in machine language and assembly language programs?

Answer:

 Machine language: Difficult to understand, write, and debug since it's in binary.

 Assembly language: Easier than machine code but still hardware-specific and needs
an assembler for conversion.

h) Differentiate between Opcode and Operand.

Answer:

 Opcode: Specifies the operation to be performed (e.g. ADD, MOV).

 Operand: Specifies the data or address on which the operation is performed (e.g. B,
2500H).

i) Compare Microprocessor and Microcontroller.

Answer:

 Microprocessor: General-purpose CPU. Needs external memory and peripherals.


Used in computers.

 Microcontroller: CPU with memory, I/O, timers integrated on a single chip. Used in
embedded systems.

j) How long would the processor take to execute STA 1753H if T-state duration is 0.5μs?

Answer:
Instruction STA 1753H takes 13 T-states.
13×2.5μs=32.5μs13 \times 2.5\mu s = 32.5\mu s
✅ Answer: 32.5 microseconds
Would you like me to create a clean typed version of these answers for you?

You might also like