Lesson 6 Flashcards

1
Q

Implementing time measurement in embedded systems requires the use of a _____________________ to measure
the time.

A

Timer or Counter

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

a digital waveform characterized by alternating between two voltage
levels, typically high (logic 1) and low (logic 0).

A

Square Wave

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

timers that are of low resolution
These are mainly used to generate time in a readable format for humans.
It functions as a digital watch, used to tell the time to the user.

A

Real-Time Clock (RTC)

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

is an indication that a device needs attention. As long as it needs
attention, the line is asserted.

A

Level triggered interrupt

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

This kind of timer is a programmable one. It provides an output signal when it starts and ends in a programmable count. The output signal might cause an interrupt to occur.

It is programmed with intervals that are fixed. This interval helps in finding the amount of
time it will take to provide the necessary signal.

A

Interval Timer

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

the microcontroller completes the execution of the current instruction and
starts the execution of an __________________

A

ISR (Interrupt Service Routine)

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

a technique used to generate analog-like signals using digital output pins. It involves rapidly switching a signal on and off at a fixed frequency.

is commonly used to control the speed of motors and the brightness of
LEDs by varying the duty cycle of a square wave signal.

A

Pulse-Width Modulation (PWM)

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

are low level programming concept, extremely important, and irreplaceable.

A

Interrupts

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

plays the role of time elapsed measurement. It starts it counting from zero and goes
upward in a gradual manner.

A

Stopwatch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
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
11
Q

These interrupts are more reliable and accurate, as they are not affected by execution time.

A

Hardware Interrupts

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

After every clock period, the timer is incremented by 1 (or reset to 0 in case it is at maximum value). Before incrementing, the value of the timer is compared to OCR. This interrupt is called _____________

A

Compare Match Interrupt

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

Simple method of obtaining analog output of any value between 0 and 5V.

A

PWM (Pulse Width Modulation) Mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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 Mode

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

These can only be used for operating in a single mode (periodic and decrementing).These are then used in multitasking and context switching. It can easily provide time delays.

A

Systick Timer

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

is an event notification. When some particular thing happens, the
device generates an active edge on the interrupt line.

A

Edge triggered interrupt

17
Q

A device, which counts the input at regular interval (δT) using clock pulses at its input.

A

Timer

18
Q

an analog waveform that smoothly varies between positive and negative
voltage levels.

A

Sine Wave

19
Q

Timer starts at 0, goes to maximum value and then resets itself. OVERFLOW and
COMPARE MATCH interrupts generated as normal.

A

Normal Mode

20
Q

The table of memory locations set aside to hold the addresses of ISRs

A

Interrupt Vector Table

21
Q

a high-priority interrupt can interrupt a low-priority interrupt. This is known as ______________

A

interrupt inside interrupt.

22
Q

the process of measuring the time it takes for a specific event to occur in an
embedded system. Its purpose is to ensure that the system is operating within the required time constraints.

A

Time measurement

23
Q

a device that is present in the embedded systems. If the system detects
any malfunction while it is operating in its normal manner, the timer immediately works on solving the problem.

can detect errors like program errors, code crashes, the software hang, and even power surges. It can immediately detect system malfunctions.

A

Watchdog Timer

24
Q

The process of generating analog signals in an embedded system. The purpose of this is to produce a specific signal that meets the requirements of the
device being controlled.

A

Waveform Generation

25
Q

In response to the interrupt, a routine or program (called _____________), which is running presently interrupts and an interrupt service routine (ISR)
executes.

A

foreground program

26
Q

The microcontroller keeps checking the status
of other devices; and while doing so, it does no other operation and consumes all its processing time for monitoring.

A

Polling

27
Q

register is responsible for enabling and disabling the interrupt.

A

IE (interrupt enable)

28
Q

A device, which counts the input due to the events at irregular or regular intervals.

A

Counter

29
Q

When an interrupt gets active, the microcontroller goes through the following steps.

A
  1. The microcontroller closes the currently executing instruction and saves the address of the next instruction (PC) on the stack.
  2. It also saves the current status of all the interrupts internally (i.e., not on the stack).
  3. It jumps to the memory location of the interrupt vector table that holds the address of the interrupts service routine.
  4. The microcontroller gets the address of the ISR from the interrupt vector table and jumps to it. It starts to execute the interrupt service subroutine, which is RETI (return from interrupt).
  5. Upon executing the RETI instruction, the microcontroller returns to the location where it was interrupted. First, it gets the program counter (PC) address from the stack by popping the top bytes of the stack into the PC. Then, it start to execute from that address.
30
Q

are signals generated by a timer or a counter that occur at regular intervals. These
interrupts are used to trigger specific actions in an embedded system, such as updating a display or reading
a sensor.

A

Periodic interrupts

31
Q

involves accurately measuring time intervals, often in
microseconds or nanoseconds, depending on the application’s requirements.

A

Time Measurement

32
Q

These are basic timers that you can use for various purposes, including starting a device or measuring the time duration.

In the case of robots assembling, this timer is very helpful in getting the work done
successfully.

A

General Purpose Timer

33
Q

Interrupt means _________

A

event

34
Q

is generated when a timer tries to exceed its maximum value and resets to 0. The name is derived from the fact that the timer has “overflowed” its limit.

A

Overflow/Overflow Interrupt