Quiz 2 Topics Flashcards

1
Q

Cooperative Multitasking

A

the threads/tasks decide which tasks to do and for how long (this means potentially one task could run forever and prevent others from ever running)

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

Preemptive Multitasking

A

the OS decides which tasks to do and for how long. Run by the scheduler, based on time and priority

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

Scheduler Issues (timing of tasks and switching between them)

A

must consider the time it takes to switch between tasks.

if time to run tasks is small - waste time switching too often

if time to run tasks is large - slow response

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

Threads

A

a function that runs inside of a program/process that shares memory with that process

every process has at least one thread but it can have multiple threads of different priorities

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

Real Time OS

A

special operating system designed to give reliable timing.

minimizes task switching time

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

Semaphore vs Queue

A

semaphore - thread safe, signals between tasks

queue - thread safe, passes data between tasks

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

using vTaskDelay (or similar) vs dummy loops to burn time

A

vTaskDelay type functions allow the OS to use the ‘dead time’ to do something else, where as dummy loops just waste it.

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

D/A converter

how to calculate its resolution

A

summing op amp

resolution =voltage range/[ (2^number of bits)-1]

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

A/D converter - Single Slope

A

uses an integrator (to integrate reference voltage function), compares the measured value to the integrator output - records the time when those values are equal

very accurate, not as fast
used in multimeters

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

A/D converter - Flash

A

uses big voltage dividers, compares measured value with each node in the voltage divider

very fast, limited resolution

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

A/D converter - Successive Approximations

A

uses output from D/A converter (makes a guess) and compares to measured value. keeps “guessing” until it gets close enough to the input.

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

Digital Input

A

discrete values, typically uses a voltage level of 0 to 5V

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

Digital Input

A

discrete values

source - output a voltage, processor supplies power
sink - ground when switch is closed, requires external power

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

Analog Input

unipolar and bipolar

A

continuous range of values

unipolar = 0 to +V
bipolar = -V to +V

use an opamp to amplify a small signal
use a voltage divider to decrease a large signal

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

Analog Output

A

continuous range of values

also output using pulse width modulation
amplify using a power transistor

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

PWM

A

uses transistor in full on or full off state to minimize the energy dissipated by the transistor

relies on dynamics of the system to smooth out switch effect

duty cycle % is proportional to effective output voltage

17
Q

Digital Encoders - absolute using binary

A

generates a unique code for each shaft position. When powered up, they do not require a reset cycle even if the shaft was rotated while the power was switched-off

18
Q

Digital Encoders - incremental

what is a quadrature

A

sends an A and B pulse output that has to be counted by an external controller. provides incremental counts relative to a “start” or “home” position.

quadrature - two tracks (A and B) that are 90 deg out of phase. this is important for bidirectional position sensing

19
Q

Doppler Radar

A

shoots a beam of radio waves at a moving object to measure speed. this places no load on the measured object, just measures the change in frequency that occurs when the object is hit with the radio waves.

ex: used in police scanners

20
Q

Tachometer

A

measure angular velocity

attach an electric generator to the end of the rotating shaft, the output of which is a voltage that is a function of the shaft’s angular velocity

21
Q

Magnetic Pickup

A

measures angular velocity

small magnet wrapped with a coil of insulated wire and placed in a metal case. when the end of the magnet is placed near a magnetic material (ex: rotating gear) the magnetic field changes and there is a pulse voltage induced in the coil. when the material is removed, there is a pulse of opposite sign. the pulse frequency is proportional to angular velocity.

22
Q

Stroboscopic Tachometer

A

measures shaft speed

produces flashing light at a user controlled frequency that is shined on a rotating shaft or pulley that has a mark on one position. the user adjusts the flash frequency until the mark appears stationary.

read out directly in rpm

23
Q

Piezoelectric Accelorometer

A

measures change in acceleration

consists of a housing mass, a preloading spring sleeve, and a piezoelectric sensing element that can generate charge. when subject to acceleration, the force on the sensing element is altered and it generates charge which is sensed with an amplifier.

24
Q

Strain Gage Accelerometers

A

measures change in acceleration

uses strain gages as the sensing elements. they have low natural frequency limits (way less than that of piezoelectric type), but they are way less expensive.