General Questions Flashcards

1
Q

What is Memory Mapping?

A

A device is assigned an address.
The address is used as if the device were an item of memory.
Values are written to or read from the device as if it were memory.

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

What are the trade-offs when selecting ADC?

A

The main trade off is between resolution and speed.
High resolution devices tend to be slower.
Very fast devices have poor resolution.
Another trade off is cost.
More expensive forms of ADC tend to be better.

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

What are the main forms of signal by which data can be taken in or out of a computer?

A

Digital Data. For example TTL.
Analogue Data. Varying voltage or current.
Trains of pulses. The rate form of digital data.

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

Describe Line Driver Digital Output.

A

A line driver is used to avoid spikes caused by interference.
Two signals are produced with complimentary lines.
One line goes up and the other goes down.
Both lines pick up the same spike due to common mode interference.
As a result the common mode interference is rejected.

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

What is Jitter?

A

Variation of actual loop cycle time from desired loop cycle time.
Even with real time operating systems, loop cycle time can vary between cycles.

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

What is Latency?

A

The time between input and output.

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

Describe Priority Inversion.

A

Consider three tasks with three varying levels of priority.
Priority inversion occurs when a high priority task is indirectly preempted by a low priority task.
This violates the priority model which states tasks can only be prevented from running by higher priority tasks.

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

What are the purposes of a counter timer?

A

Count based on the comparison of input signals.

To generate pulses based upon inputs and register values.

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

What are the main features of a counter timer?

A

Count register - stores the current count.
Source - Input signal that changes the current count. The active edge of the input signal changes the count.
Gate - Input signal that controls when counting occurs.
Out - Output signal used to generate pulses.

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

Why might a counter timer be used in preference to a simple, software-controlled digital I/O?

A

Timing is purely hardware-controlled and provides real-time response on a non real time system.

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

How can counter-timer circuit create a pulse train signal of frequency specified by software?

A

It requires a frequency divider.
Uses a hardware clock as a source.
Gives a pulse every time a given number of clock pulses has been received.
Output pulse rate is an integer fraction of clock pulse rate.

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

How can counter-timer circuit measure the frequency of a square signal wave?

A

Configure the counter timer as a counter.
Use it to count how many pulses are received in a 1second period.
The pulse would be received from another counter timer.

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

Converting from 5V(TTL) logic to 3.3V logic.

A

The outputs of the output device need to be fed into defined regions in the input device or results will be unpredictable.
If they provide an input voltage above the defined range, damage may occur.
A simple voltage divider and a logic level converter are needed.

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

What is totem-pole gate output?

A

Totem Pole is also known as Push-Pull.

Uses 2 transistor which act as switches to switch the output high or low.

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

What is Open Collector gate output?

A

Open collector only uses 1 transistor, together with a pull-up resistor, to connect to ground or leave it pulled up to some external voltage.

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

Where is Open Collector gate output likely to be used?

A

Where a device is likely to be used with different logic voltage levels.
Output from optical isolation devices.

17
Q

How can a solenoid actuator be switched on and off under the command of a TTL and what precautions need to be made to avoid the components used for providing the switching?

A

A Darlington Pair can be used.
Two transistors in a piggy-back arrangement can be used to amplify current and to act as a solid state switch.
A freewheeling diode is required to be placed in parallel with the solenoid, to prevent back EMF punching a hole in the transistor when the circuit is switched of.

18
Q

Servo Motors.

A

Closed loop control so continuously checks for position.
Needs a position sensor eg an incremental encoder, a quadrature decoder and means of driving the motor - 1 H bridge and a power supply.

19
Q

Stepper Motors.

A

Open loop control so no position feedback needed.
Needs a means of generating the step and direction signals, a circuit to translate these into signals for the driver, a driver circuit (2 H bridges) and a power supply.

20
Q

What problems could be encountered if a standard Windows-based PC is used to run a control program eg a CNC system?

A

General purpose PCs usually have various tasks running simultaneously.
These would prevent the control software running in real time which would result in poor control.

21
Q

Explain the concept of PWM.

A

Trains of pulses of constant frequency but varying width.
Vary the duty cycle of a pulse train to obtain a varying effective voltage.
Veff = Vsupply (ton/ton+toff)

22
Q

What is the function in Arduino Language that can be used to generate a PWM signal.

A

analogWrite(pin, value)

23
Q

Two ways to overcome alias.

A

1) Use a better ADC e.g delta sigma

2) Use a low-pass filter to filter out frequencies above the Nyquist Frequency.