Analog-to-Digital Converter and Multi-vibrators

40
PHY 202 (Blum) 1 Analog-to-Digital Converter and Multi-vibrators

description

Analog-to-Digital Converter and Multi-vibrators. Analog-to-Digital. We have seen a simple digital-to-analog converter, now we consider the reverse process For this purpose we introduce a new circuit element — the comparator - PowerPoint PPT Presentation

Transcript of Analog-to-Digital Converter and Multi-vibrators

Page 1: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 1

Analog-to-Digital Converter and Multi-vibrators

Page 2: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 2

Analog-to-Digital• We have seen a simple digital-to-analog converter,

now we consider the reverse process• For this purpose we introduce a new circuit element

— the comparator • We have seen considered last semester a digital

comparator, a logic circuit that determined whether the input word A is larger than the input word B

• Now we look at an analog comparator, it determines whether voltage A is larger than voltage B

Page 3: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 3

Comparator (analog)

Page 4: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 4

Comparator (analog)

Page 5: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 5

Almost what we want

• What we want: if the voltage into – input exceeds the voltage into the + input, then the output is low; otherwise it is high

• What we have: if the voltage into – input exceeds the voltage into + input by 0.7, then the output is low; otherwise it is high

Page 6: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 6

1-bit analog-digital converter

That extra 0.7 volts

Voltage here is half reference voltage of 5 volts

Page 7: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 7

1-bit analog-digital converter

Page 8: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 8

Toward a 2-bit analog-digital converter

3/4

1/2

1/4

Page 9: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 9

Toward a 2-bit analog-digital converter

Page 10: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 10

Toward a 2-bit analog-digital converter

Page 11: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 11

Toward a 2-bit analog-digital converter

Page 12: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 12

Integrated circuit version

Page 13: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 13

3.7 / 5

Page 14: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 14

* 2 x^y 8 =

Page 15: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 15

Binary Mode

Page 16: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 16

Compare

Page 17: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 17

Decimal Mode

Page 18: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 18

/ 2 x^y 8 =

Page 19: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 19

Multi-vibrators

http://www.ee.ed.ac.uk/~kap/Hard/555/node1.html

Page 20: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 20

Multi-vibrator

• A multi-vibrator is an electronic circuit that can exist in a number of “states” (voltage and/or current outputs).

• A flip-flop is a bi-stable multi-vibrator, bi-stable means it has two stable states.

• A state is stable if it is robust against the fluctuations (noise) that are always occurring.

Page 21: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 21

Mono-stable multi-vibrator

• A mono-stable multi-vibrator has one stable output (usually zero).

• It also has an unstable state. Certain input will put the circuit into its unstable state, which lasts for a set length of time before returning to the stable state.– Unstable states are still robust to noise but do not last

indefinitely long.

• In wave terminology, this provides one with a single pulse.

Page 22: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 22

Pulse

STABLE UNSTABLESTABLE

Page 23: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 23

One shots• One purpose of a mono-stable multi-vibrator is to

output a signal of a specified duration. • The input (trigger) may be short (or unknown) in

duration, but the output pulse has a predictable duration (can be controlled by the time constant of an RC circuit). = RC– The time constant and duration are not equal but

are proportional.

• Such a circuit is called a “one shot.”

Page 24: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 24

Shapers

• Another purpose of mono-stable multi-vibrators is to “shape” input signals.

• Recall in digital circuits we want signals to be clearly high or low; a mono-stable multi-vibrator can take signals which are not of this form and create signals which are.

Page 25: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 25

Schmitt trigger

Page 26: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 26

Schmitt trigger

• If the voltage is above a certain value (the upper trip point) and rising, the output is high.

• If the voltage is below another value (the lower trip point) and falling, the output is low.

• Otherwise, it remains whatever it was.

Page 27: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 27

Schmitt trigger

The upper trip point

The lower trip point

Above the upper trip and going up

Below the lower trip and going down

Page 28: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 28

A-stable multi-vibrator

• In an a-stable multi-vibrator, there are typically two states, neither of which is stable.

• The circuit repeatedly flips back and forth between the states.

Page 29: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 29

A-stable multi-vibrator

Page 30: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 30

A-stable Multi-vibrator

• Assume a state where the transistor on left is ON and transistor on right is OFF and the capacitor on the left has no charge.

• Since the left transistor is on (hard) it is not dropping much voltage, therefore “all” the voltage is being dropped by the resistors

• The capacitor on the left begins to charge through the 10K resistor on the right

Page 31: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 31

A-stable

ON OFF

low

high

Charge building up

Page 32: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 32

A-stable

• Charge builds up on the left capacitor, “pulling-up” the voltage presented to the base of the transistor on the right.

• When the base reaches about 0.7v the transistor on the right turns on.

• Current now starts to flow through the 1K resistor on the far right, thus dropping the voltage level at the collector.

• That low voltage makes its way to the base of the transistor on the left turning it off.

• The cycle repeats itself.

Page 33: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 33

A-stable

ON

low

Turns off

Page 34: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 34

Duty cycle

• In a square wave (e.g. a computer’s clock), the wave is characterized by its frequency, its amplitude and its duty cycle.

• The duty cycle is the percent of time that the signal is high.

• Duty cycle = thigh/(thigh+tlow)*100%

Page 35: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 35

555 Timer

• A similar circuit uses the 555 chip (Integrated circuit)

• The resistors and capacitors are external to the chip so that the period and duty cycle of the circuit can be controlled.

Page 36: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 36

555

Page 37: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 37

555 as Monostable multivibrator

Page 38: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 38

555 as Astable Multivibrator

Page 39: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 39

555 Timer (WorkBench version)

Page 40: Analog-to-Digital Converter  and Multi-vibrators

PHY 202 (Blum) 40

Crystals

• The very high frequency square wave used for the CPU clocks are not generated in the manner described on the previous slides.

• The high frequency signal is supplied by crystals subjected to an electric field.