Interrupts Flashcards

1
Q

define overflow

A

when there are not enough bits for a large number so it appears as 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the interrupt enable register?

A

this register is respobsible for enabling/disabling the interrupt.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of interrupts?

A

A method of communication to request an action

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is used to implement an interrupt?

A

-Interrupt vector table IVT
-Interrupt service routine ISR
-Interrupt enable/mask

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is an interrupt enabled?

A

Enable an interrupt
-low on one of the interrupt ports
-go to address in IVT
-execute code at address (RETI - return from interrupt)
-retrieve the stored address for next instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do timer/counter interrupts work?

A

-When timer is enabled, clock cycles are counted and sends an interrupt when specific value or overflow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 3 main stages of interrupts?

A

-Find interrupt in IVT
-write interrupt service routine in the vector
-enable interrupt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the 3 actions when an interrupt occurs?

A

-Program state is saved
-Microcontroller jumps to ISR in the IVT
-RETI

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define polling

A

-microcontroller continuously checks to the status checks the status of another device to determine if it needs attention
-easy to implement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the difference between polling and interrupts?

A

-Polling continuosly checks for status updates which is inefficient
-Interrupts are signals sent to the microcontroller to indicate it needs attention which is efficient but complex to implement (we need ISR, IVT etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are advantages of interrupts?

A

-interrupts solve problems quickly
-improve systems robustness and reliability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are disadvantages of interrupts?

A

-The number of interrupts is limited by external input pins
-response time to an interrupt might affect real-time applications where reliable response times are essential
(i.e having to repsond to an interrupt in the middle of doing a task)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Define the interrupt vector table (IVT)

A

The addresses of different interrupt service routines (ISRs) are stored in the IVT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What do the memory addresses in the IVT signify?

A

-the memory addresses of each ISR points to the program memory linked to each ISR start

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly