6. Hardware Flashcards

1
Q

What is the power supply for modern mCs?

A

They don’t care too much about the precise voltage, nor do they draw much current, so batteries are ideal. Most current designs work at 3V, which you can easily get from 2 cells in series (2xAA for example).

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

What are Vss and Vdd?

A

Vss - ground - negative

Vdd - supply - positive

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

Why is it good practise to connect a decoupling capacitor and where do we connect it? What is the usual value for the capacitor?

A

Because all digital circuits produce electrical noise as they switch. The capacitor ‘shorts this out’ and prevents it affecting other components. Connect between pins for Vss and Vdd as close to the mC as possible. Usually about 10^(-7) F.

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

What are LEDs?

A

Light-emitting diodes are the simplest type of output that can be driven by a mC. They are diodes (p-n junctions in a semiconductor) that emit light.

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

What is an important feature of LEDs?

A

They are diodes, which means they pass current in only one direction. Almost no current flows if they are connected the other way around.

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

Can you draw an LED showing it connected the correct way and label the anode and cathode? Can you then draw it the wrong way around showing what happens?

A

DRAW DIAGRAM.

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

What colours of LED can you get?

A

For many years they were red, yellow or green but now blue and white LEDs are available.

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

Can you draw an LED and label the parts?

A

DRAW DIAGRAM

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

How do we connect the LED if we want it to illuminate when the logical value of the output is high (1) - active high.

A

The LED should light when the pin is at Vdd (supply, positive, logic 1) but not when the pin is at Vss (ground, negative, logic 0). We therefore connect the LED between the pin and Vss. Conventional current flows from the pin to Vss. DRAW DIAGRAM.

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

How do we connect the LED to illuminate when the logical value of the output is low (0) - active low?

A

The LED should light when the pin is at Vss (ground, negative, logic 0) but not when the pin is at Vdd (supply, positive, logic 1). We therefore connect the LED between the pin and Vdd. Concntional current flows from Vdd to the pin. DRAW DIAGRAM.

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

Can you draw operation of active high led in detail? (showing the pins inside the mC?)

A

DRAW DIAGRAM

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

Why is a resistor usually needed in series with LEDs?

A

To limit the current through the LED.

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

What current can each pin provide/ receive?

A

Provide (source) - 3mA or 15mA or receive (sink) - 6mA or 9mA, depending on the pin.

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

What is the total drive current?

A

All pins combined limited to 130mA. This is plenty for a small LED, but clearly won’t drive the motor or heater in a washing machine.

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

What does each I/O line embed?

A

An ODT (On-Die Termination).

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

What does ODT consist of?

A

An internal series resistor termination scheme for impedance matching between the driver output and the PCB track impedance preventing signal reflection. DRAW DIAGRAM.

17
Q

Why is an on/off switch or pushbutton input not connected as Vdd for logic 1 and Vss for logic 0? How would this look?

A
  1. It needs an expensive switch (3 terminals instead of 2)
  2. It needs 2 or 3 wires
  3. What happens while the switch is being operated?
18
Q

Why must digital circuits never be left with their inputs floating?

A

This leads to unpredictable behaviour and possibly severe problems.

19
Q

What is the correct way to connect a switch?

A

DRAW DIAGRAM

20
Q

What are the advantages of the correct way to connect a switch circuit?

A
  1. Needs only a simple switch or pushbutton
  2. Only one wire to the switch is usually needed, because a ground connection can usually be found nearby.
  3. The input is always connected to something.
21
Q

How does the correct switch connection circuit work?

A

DRAW DIAGRAMS

22
Q

What is switch bounce?

A

The contacts of a switch are mechanical. When the switch is operated they do not open or close cleanly but vibrate for a while. This causes the contacts to open and close several times, each time the switch is operated.

23
Q

Can you draw the graphs for ideal input signal and input signal with bounce?

A

DRAW DIAGRAM