Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are given the following interrupt service routines. We assume the INT 0 and INT 1 interrupts have already been enabled ( code not shown

You are given the following interrupt service routines. We assume the INT0 and INT1 interrupts have already been enabled (code not shown). The hexadecimal numbers on line 812 and 1518 are the program addresses of the corresponding instructions.
.ORG 0x0002 ; INT0 interrupt vector
RJMP S0
.ORG 0x0004 ; INT1 interrupt vector
RJMP S1
S0: ; interrupt service routine for INT0
0x1000: LDI R21,0xFF
0x1001: OUT DDRC, R21
0x1002: LDI R20,15
0x1003: OUT PORTC, R20
0x1004: RETI
S1: ; interrupt service routine for INT1
0x1005: LDI R21,0xFF
0x1006: OUT DDRD, R21
0x1007: LDI R20,32
0x1008: OUT PORTD, R20
0x1009: RETI
When INT0 first occurs, what is the consequent value in the program counter (PC) right after the interrupt?
Group of answer choices
0x1004
0x0004
0x1005
0x0002
0x1000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago