58.1k views
5 votes
Which vector has a higher interrupt priority: Timer0_A’s A0 or A1 vector? Give the word address for each of these vectors.

a) A0; 0xFFE0
b) A1; 0xFFE2
c) A1; 0xFFE0

1 Answer

2 votes

Final answer:

The interrupt priority of Timer0_A's A0 and A1 vectors is determined by their vector addresses.

Step-by-step explanation:

The interrupt priority of the Timer0_A's A0 and A1 vectors is determined by their vector addresses. The vector address is the starting address of the interrupt service routine (ISR) associated with each vector. In this case, the vector address for A1 is 0xFFE2.

A0 has a higher interrupt priority because its vector address is lower than A1's. The vector address for A0 is 0xFFE0 and for A1 it is 0xFFE2. When two interrupts are triggered simultaneously, the CPU looks at the vector addresses to determine which one has a higher priority.

The vector with the lower address has the higher priority. Therefore, since 0xFFE0 is a lower address than 0xFFE2, A0 has a higher interrupt priority than A1.

User Ziftech
by
8.0k points