PERIODIC INTERRUPTS, WAVEFORM GENERATION, TIME MEASUREMENT Flashcards

1
Q

A signal to the processor emitted by hardware or software indicating an event that needs immediate attention.

A

INTERRUPTS

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

INTERRUPTS
* ______ programming concept
* E_I_
* I

A
  1. Low level
  2. Extremely important
  3. Irreplaceable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

ORIGIN OF INTERRUPTS
* Normal view of a computer program: sequence of instructions executed _____ , jumps are allowed

A

serially

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

ORIGIN OF INTERRUPTS
* This view ______ for the real world.

A

isn’t good enough

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

ORIGIN OF INTERRUPTS
* Programs for embedded systems usually service
_______

A

real-life demands

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

ORIGIN OF INTERRUPTS
* Real-life demands _____ for anything.

A

don’t wait

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

ORIGIN OF INTERRUPTS
* Consider a typical embedded system program: it usually consists of an infinite loop, called the _________

A

“program loop”

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

ORIGIN OF INTERRUPTS
* In each iteration, the program checks whether
_________ (i), gives _______ (ii) and
performs ___________ (iii).

A

i. events have occurred
ii. suitable responses
iii. periodic tasks

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

ORIGIN OF INTERRUPTS
* This model is sufficient if processor is __________ with respect to real world

A

extremely fast

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

Why Interrupts?
* We need a method to ______ the moment they occur, and not after some delayed time.

A

handle events

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

Why Interrupts?
* ______ are special events that can “interrupt” the normal flow of a program.

A

Interrupts

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

Why Interrupts?
* The ______ stops the normal program, handles the interrupt, and then resumes its normal work.

A

processor

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

An electronic alerting signal sent from the processor from an external device, like a disk controller or an external peripheral

A

Hardware Interrupts

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

Caused either by an exceptional condition or a special instruction in the instruction set which causes an interrupt when it is executed by the processor.

A

Software Interrupts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • The state of continuous monitoring
  • The microcontroller keeps checking the status of other devices
A

Polling

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

For every interrupt, there must be an ________,
or interrupt handler. When an interrupt occurs, the microcontroller runs the __________

A

interrupt service routine (ISR)

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

The table of memory locations set aside to hold the addresses of ISRs is called as the ______

A

Interrupt Vector Table

18
Q

Two types of Interrupt modules

A
  • LEVEL TRIGGERED
  • EDGE TRIGGERED
19
Q

Enabling and Disabling an Interrupt
* Upon _____, all the interrupts are disabled even if they are activated. The interrupts must be enabled using software in order for the microcontroller to respond to those interrupts.

A

Reset

20
Q

Enabling and Disabling an Interrupt
* ______ is responsible for enabling and disabling the interrupt.
* _______ is a bitaddressable register.

A

IE (interrupt enable) register

21
Q

Types of Interrupt Enable Register

A
  • EA
  • -
  • ET2
  • ES
  • ET1
  • EX1
  • ET0
  • EX0
22
Q

Interrupt Enable Register
* Global enable/disable

A

EA

23
Q

Interrupt Enable Register
* Undefined

A

-

24
Q

Interrupt Enable Register
* Enable Timer 2 interrupt

A

ET2

25
Q

Interrupt Enable Register
* Enable Serial port interrupt.

A

ES

26
Q

Interrupt Enable Register
* Enable Timer 1 interrupt.

A

ET1

27
Q

Interrupt Enable Register
* Enable External 1 interrupt

A

EX1

28
Q

Interrupt Enable Register
*Enable Timer 0 interrupt.

A

ET0

29
Q

Interrupt Enable Register
* Enable External 0 interrupt.

A

EX0

30
Q

What happens if the 8051 is executing an ISR that
belongs to an interrupt and another one gets
active?

A

In such cases, a high-priority interrupt can interrupt a low-priority interrupt. This is known as interrupt inside interrupt. In 8051, a low-priority interrupt can be interrupted by a high-priority interrupt, but not by any another low-priority interrupt

31
Q

______ is a register. Recall that registers are special, fixed-size variables with hardware implications

A

Timer

32
Q

The timer, when started,
begins at __ (i) . After every time t, its value increases by ___ (ii).

A

i. 0
ii. 1

33
Q

When the timer reaches its maximum value, in the next cycle, its value becomes __ again and the process repeats itself

A

0

34
Q

TIMERS CAN GENERATE CERTAIN INTERRUPTS:

A

Two

35
Q

is generated when a timer tries to exceed its maximum value and resets to 0.

A

OVERFLOW

36
Q

There is a register called as _________, whose value we can set

A

OCR (Output Compare Register)

37
Q

A timer works in
three modes:

A

Normal, CTC and
PWM.

38
Q

Timer starts at 0, goes to
maximum value and
then resets itself.

A

Standard mode

39
Q

Timer starts at 0 as usual, but instead of resetting
after maximum value, it resets after reaching
value specified in OCR register

A

CTC (Clear Timer on Compare) Mode

40
Q
  • Simple method of obtaining analog output of any value between 0 and 5V.
  • This “analog” value is obtained using timers.
A

PWM (Phase Width Modulation) Mode