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 = 36
10 = 0024H
Hence control is transferred to 0024H
Different interrupts and their address are shown in the table:
View all questions of this test
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.
To make sure you are not studying endlessly, EduRev has designed Railways study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Railways.