Digital logic Flashcards

1
Q

Define ‘Discrete logic’

A

> Physical logical chips are assembled on a single PCB to perform a function

> Often requires a physically large circuit board with lots of ICs.

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

What are the 2 main benefits of using discrete logic?

A

> Discrete logic circuits are useful when simple logic circuits are needed.

> Discrete logic circuits are often cheaper.

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

What are the different practical logic levels?

A

> VIL: Max input voltage considered to be a LOW

> VOL: Max output voltage asserted to be a LOW

> VIH: Min input voltage considered to be a HIGH

> VOH: Min output voltage asserted to be a HIGH

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

What is the noise immunity?

A

> This is the difference between output thresholds

> VIL - VOL = VThreshold

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

What are the features of TTL?

A

> Power supply: 5V

> VIL = 0.8V

> VIH = 2V

> High power consumption

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

What are the features of CMOS?

A

> Power supply: 1.8V ⇒ 5V

> VIL = 1/3 × Vsupply

> VIH = 2/3 × Vsupply

> Power consumption ∝ clock speed

> Susceptible to electro-static discharge ESD damage

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

Define “propagation delay”

A

When inputs to a digital circuit are applied it takes a finite time for the output to respond.

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

How can you physically combat propagation delay?

A

Differing lengths in the PCD traces cause the bits to arrive at different times.

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

What is the problem with propagation delay?

A

It can limit the maximum speed that a digital circuit can operate at.

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

Why do higher clock frequencies require more cooling?

A

Higher frequencies ⇒ more current flowing faster ⇒ because of discharging/charging of capacitances in the circuit

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

What are the two types of IO current? What do they do?

A

> Sink Current: When current flows into an input/output

> Source Current: When current flow out of an input/output

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

What are the current limits for IO?

A

> IIL: The current sourced from an input when it is held LOW

> IIH: The current sunk input an input when it is held HIGH

> IOL: The max current that can be sunk into an output

> IOH: The max current that can be sourced from an output held LOW

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

What happens if the current limits for IO are exceeded?

A

Either damage will occur and/or the device may not maintain the correct levels of VOL or VOH.

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

Define “Fan out limit”

A

The max number of inputs that a single output can be connected to whilst maintaining the correct levels of VOL or VOH.

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

What are the different types of IO?

A

> Input only

> Output only

  • Classic push-pull (totem pole)
  • Open-collector / Open-drain

> Bi-directional

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

What is the circuit for the totem pole IO? What are the components?

A

[Picture42] [Picture43]

> Complementary pair of transistors (p-type/n-type MOSFET)

> Two TTL NPN transistors with a current limiting resistor

17
Q

How does the totem pole operate?

A

> At any time, one of the transistors is conducting.

> The output is either connected to high or low

18
Q

What are the advantages and disadvantages to the totem pole?

A

Advantages:

> Fast

> Can sink and source current

Disadvantage:

> Two or more outputs cannot be connected together to form a shared data bus.

19
Q

What is the circuit for the open-collector / open-drain?

A

[Picture 44]

20
Q

How does the open-collector / open-drain circuit operate?

A

> A pull up resistor forces the output HIGH

> A transistor forces the output LOW by connecting it to ground

> This allows multiple devices on the circuit to control the bus

21
Q

What are the advantages and disadvantages of the open-collector / open-drain circuit?

A

Advantage:

> Allows a bus connection because any digital device connected to the line can force it LOW.

Disadvantage:

> Slower. The reason for this is that due to the external pull up resistor, in order to change the state from LOW to HIGH, the line capacitance must be charged through the resistor creating an RC time constant.

> The circuit can only sink current.

22
Q

How should unused inputs for logic gates be connected? Why?

A

> To ground

> Failing to do this will result in erratic behaviour.

23
Q

What is the impedance of a microcontroller input?

A

Very high input impedance (>100kΩ)

24
Q

What is the rule about the value of pull up resistors?

A

Should not normally be more than 10% of the input impedance or voltage division will cause threshold errors

25
Q

What should happen to unused inputs on a microcontroller?

A

Not be connected to ground or supply

26
Q

What is the circuit for the outputs of a microcontroller?

A

[Picture45]

27
Q

What are 4 methods of shifting a 5V logic output to a 3.3V logic input?

A

> Potential divider

> Connecting the pull up resistor to a lower supply voltage assuming that the output is of the open collector variety.

> Direct connection

> Bi-direction level shifter IC

28
Q

What is the issue with using a potential divider to shift a 5V logic output to a 3.3V logic input?

A

The speed is reduced

29
Q

What are the considerations for direct connection when shifting a 5V logic output to a 3.3V logic input?

A

> Assuming that the low-voltage circuit can handle higher voltage connections

> As long 5V VOL < 3.3V VIH

> Noise margins may be reduced.

30
Q

What are the two methods of shifting a 3.3V logic output to a 5V logic input?

A

> Direct connection

  • Providing that 3.3V VOH > 5V VIH

> Bi-direction level shifting IC

31
Q

How can a microcontroller connects to small loads?

A

> Direct connection because a microcontroller can source/sink a small amount of current.

> Connect one side of the load to ground and supply the current from an output activated HIGH

> Connect one side of the load to supply voltage and sink the current with an output activated LOW

32
Q

What are the problems with a microcontroller using direct connection to control small loads?

A

> It is dependent on the values of IOH and IOL

> Often IOL > IOH so its better to sink current.

> There is also often a limit for the sink/source current for the entire microcontroller

33
Q

How can a microcontroller connects to medium loads?

A

> A transistor is used as a switch operated in its saturated mode.

> Bi-polar transistor requires a current limiting resistor.

> MOSFET requires a pull-down resistor on the gate terminal.

34
Q

Draw the circuit for using a transistor controlled by a microcontroller to control a load?

A

[Picture46]

35
Q

What is an open-collector logic buffer?

A

> Allows a microcontroller to control medium loads

> Different than an op-amp buffer because it is not a linear amplifier

> Single input

> Single output

> Come as inverting or non-inverting types

> IC package

36
Q

How can a microcontroller connects to high loads?

A

> Using a relay

> Provides electrical isolation.

> Allows the use of much higher voltages and/or currents

37
Q

How does a relay work?

A

Uses an electro-magnet to physically open or close switch contacts (called an armature) which is against a return spring.

38
Q

Draw the circuit for a relay

A

[Picture47]

39
Q

Describe cold switching

A

A physical switch is used to control a load, but the load current does not flow through the switch. Instead a relay is controlled by the switch which in turn controls the load current.