Railways Exam  >  Railways Questions  >  When TRAP interrupt is triggered in an 8085 m... Start Learning for Free
When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?
  • a)
    003C H
  • b)
    0024 H
  • c)
    0034 H
  • d)
    002C H
Correct answer is option 'B'. Can you explain this answer?
Verified Answer
When TRAP interrupt is triggered in an 8085 microprocessor, the progra...
TRAP is nothing but RST 4.5
Address location of TRAP is given by 4.5 × 8 = 3610 = 0024H
Hence control is transferred to 0024H
Different interrupts and their address are shown in the table:
View all questions of this test
Most Upvoted Answer
When TRAP interrupt is triggered in an 8085 microprocessor, the progra...
Explanation:

When the TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to a fixed memory location known as the TRAP vector. The TRAP vector is a 16-bit address that is stored in the memory location with address 0024H.

Memory Layout:
- The 8085 microprocessor has a 16-bit address bus, which means it can access a maximum of 2^16 = 64KB of memory.
- The memory addresses are divided into different sections:
- 0000H to 3FFFH - ROM (Read-Only Memory)
- 4000H to 7FFFH - RAM (Random Access Memory)
- 8000H to FFFFH - I/O Ports

Interrupts in 8085 Microprocessor:
- The 8085 microprocessor supports five interrupts: TRAP, RST 7.5, RST 6.5, RST 5.5, and INTR.
- When an interrupt is enabled, the microprocessor checks for the interrupt signal during the execution of each instruction.
- If an interrupt is detected, the microprocessor saves the current program counter (PC) onto the stack and jumps to the corresponding interrupt vector address.

TRAP Interrupt:
- The TRAP interrupt is a non-maskable interrupt (NMI) in the 8085 microprocessor.
- It is non-maskable because it cannot be disabled or masked by the program.
- The TRAP interrupt is used for high-priority tasks such as system reset or emergency shutdown.
- When the TRAP interrupt is triggered, the microprocessor jumps to the memory location specified by the TRAP vector and continues execution from there.

TRAP Vector:
- The TRAP vector is a fixed memory location where the microprocessor jumps when the TRAP interrupt is triggered.
- In the case of the 8085 microprocessor, the TRAP vector is stored in the memory location with address 0024H (24 in hexadecimal).
- When the TRAP interrupt is triggered, the program control is transferred to this memory location, and the instructions located there are executed.

Answer:
- In the given options, the correct answer is option B, which represents the memory location 0024H.
- Therefore, when the TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to memory location 0024H.
Explore Courses for Railways exam
When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer?
Question Description
When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer? for Railways 2024 is part of Railways preparation. The Question and answers have been prepared according to the Railways exam syllabus. Information about When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer? covers all topics & solutions for Railways 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer?.
Solutions for When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Railways. Download more important topics, notes, lectures and mock test series for Railways Exam by signing up for free.
Here you can find the meaning of When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer?, a detailed solution for When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer? has been provided alongside types of When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice When TRAP interrupt is triggered in an 8085 microprocessor, the program control is transferred to which one of the following?a)003C Hb)0024 Hc)0034 Hd)002C HCorrect answer is option 'B'. Can you explain this answer? tests, examples and also practice Railways tests.
Explore Courses for Railways exam

Top Courses for Railways

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev